You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "johnny94 (via GitHub)" <gi...@apache.org> on 2025/03/05 07:12:52 UTC
[PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
johnny94 opened a new pull request, #19104:
URL: https://github.com/apache/kafka/pull/19104
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #19104:
URL: https://github.com/apache/kafka/pull/19104#issuecomment-2700919321

check the web site. LGTM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "m1a2st (via GitHub)" <gi...@apache.org>.
m1a2st commented on code in PR #19104:
URL: https://github.com/apache/kafka/pull/19104#discussion_r1980945000
##########
clients/src/main/java/org/apache/kafka/common/config/internals/BrokerSecurityConfigs.java:
##########
@@ -79,7 +79,9 @@ public class BrokerSecurityConfigs {
"name from the client certificate if one is provided; otherwise, if client authentication is not required, " +
"the principal name will be ANONYMOUS. For SASL authentication, the principal will be derived using the " +
"rules defined by <code>" + SASL_KERBEROS_PRINCIPAL_TO_LOCAL_RULES_CONFIG + "</code> if GSSAPI is in use, " +
- "and the SASL authentication ID for other mechanisms. For PLAINTEXT, the principal will be ANONYMOUS.";
+ "and the SASL authentication ID for other mechanisms. For PLAINTEXT, the principal will be ANONYMOUS. " +
+ "Note that custom implementations of KafkaPrincipalBuilder is required to implement KafkaPrincipalSerde " +
Review Comment:
I think it's better to wrap class names with a code block for improved readability.
- `<code> KafkaPrincipalBuilder </code>`
- `<code> KafkaPrincipalSerde </code>`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "frankvicky (via GitHub)" <gi...@apache.org>.
frankvicky commented on code in PR #19104:
URL: https://github.com/apache/kafka/pull/19104#discussion_r1980828950
##########
clients/src/main/java/org/apache/kafka/common/security/auth/KafkaPrincipalBuilder.java:
##########
@@ -23,6 +23,10 @@
* Note that the {@link org.apache.kafka.common.Configurable} and {@link java.io.Closeable}
* interfaces are respected if implemented. Additionally, implementations must provide a
* default no-arg constructor.
+ *
+ * Note that when running in KRaft mode, custom implementations of {@code KafkaPrincipalBuilder}
Review Comment:
We could use `@link` here.
##########
clients/src/main/java/org/apache/kafka/common/security/auth/KafkaPrincipalBuilder.java:
##########
@@ -23,6 +23,10 @@
* Note that the {@link org.apache.kafka.common.Configurable} and {@link java.io.Closeable}
* interfaces are respected if implemented. Additionally, implementations must provide a
* default no-arg constructor.
+ *
+ * Note that when running in KRaft mode, custom implementations of {@code KafkaPrincipalBuilder}
Review Comment:
We don't have zk now, so emphasizing kraft is not necessary
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "frankvicky (via GitHub)" <gi...@apache.org>.
frankvicky commented on code in PR #19104:
URL: https://github.com/apache/kafka/pull/19104#discussion_r1980828950
##########
clients/src/main/java/org/apache/kafka/common/security/auth/KafkaPrincipalBuilder.java:
##########
@@ -23,6 +23,10 @@
* Note that the {@link org.apache.kafka.common.Configurable} and {@link java.io.Closeable}
* interfaces are respected if implemented. Additionally, implementations must provide a
* default no-arg constructor.
+ *
+ * Note that when running in KRaft mode, custom implementations of {@code KafkaPrincipalBuilder}
Review Comment:
nit: We could use `@link` here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #19104:
URL: https://github.com/apache/kafka/pull/19104#issuecomment-2700934771
cherry-pick to 4.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #19104:
URL: https://github.com/apache/kafka/pull/19104
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-18919 Clarify that KafkaPrincipalBuilder classes must also implement KafkaPrincipalSerde [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on code in PR #19104:
URL: https://github.com/apache/kafka/pull/19104#discussion_r1980994112
##########
docs/zk2kraft.html:
##########
@@ -57,7 +57,7 @@ <h3 class="anchor-heading">Configurations</h3>
<p>
In KRaft mode, Kafka eliminates its dependency on ZooKeeper, and the control plane functionality is
fully integrated into Kafka itself. The process roles are clearly separated: brokers handle data-related
- requests, while the controllers (a.k.a., quorum controller) manages metadata-related requests. The controllers
+ requests, while the controllers (a.k.a., quorum controller) manages metadata-related requests. The controllers
Review Comment:
ditto
##########
docs/zk2kraft.html:
##########
@@ -32,8 +32,8 @@ <h3 class="anchor-heading">Configurations</h3>
<li>
<p>
Removed password encoder-related configurations. These configurations were used in
- ZooKeeper mode to define the key and backup key for encrypting sensitive data (e.g., passwords),
- specify the algorithm and key generation method for password encryption (e.g., AES, RSA), and control
+ ZooKeeper mode to define the key and backup key for encrypting sensitive data (e.g., passwords),
Review Comment:
please revert those unrelated change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org