Skip to content

Conversation

@mimaison
Copy link
Member

@mimaison mimaison commented Oct 22, 2025

Implements KIP-1188

@mimaison mimaison marked this pull request as ready for review October 24, 2025 09:48
@mimaison
Copy link
Member Author

cc @C0urante @AndrewJSchofield @showuon as you voted on the KIP. Thanks

Copy link
Contributor

@C0urante C0urante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Mickael, only comment is about making the upgrade path clearer for users currently on the principal policy. Everything else looks good to me

* {@code Principal}. This allows to set a principal per connector.
* @deprecated Use {@link AllowlistConnectorClientConfigOverridePolicy} instead.
*/
@Deprecated(since = " 4.2", forRemoval = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a warning log message when this class is instantiated to notify users about its deprecation and what steps they should take to prepare for its removal?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done

Copy link
Member

@AndrewJSchofield AndrewJSchofield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. A couple of nits only. Looks good to me.

public static final String CONNECTOR_CLIENT_POLICY_CLASS_CONFIG = "connector.client.config.override.policy";
public static final String CONNECTOR_CLIENT_POLICY_CLASS_DOC =
"Class name or alias of implementation of <code>ConnectorClientConfigOverridePolicy</code>. Defines what client configurations can be "
+ "overridden by the connector. The default implementation is <code>All</code>, meaning connector configurations can override all client properties. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "The default policy" reads a little better than "The default implementation" given that the others are described as policies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, updated. Thanks

ConfigInfos result = herder.validateConnectorConfig(config, s -> null, false);
assertEquals(ConnectorType.SOURCE, herder.connectorType(config));

// We expect there to be errors due to sasl.jaas.config not being allowed Note that these assertions depend heavily on
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Missing "." before "Note"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@C0urante C0urante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants