Skip to content

Commit 19b5853

Browse files
authored
MINOR: Improve the description of principal under different mechanisms of sasl (#11947)
Reviewers: Mickael Maison <[email protected]>
1 parent 77cd827 commit 19b5853

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/security.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ <h3 class="anchor-heading"><a id="security_sasl" class="anchor-link"></a><a href
643643
<li><h4><a id="security_sasl_plain" href="#security_sasl_plain">Authentication using SASL/PLAIN</a></h4>
644644
<p>SASL/PLAIN is a simple username/password authentication mechanism that is typically used with TLS for encryption to implement secure authentication.
645645
Kafka supports a default implementation for SASL/PLAIN which can be extended for production use as described <a href="#security_sasl_plain_production">here</a>.</p>
646-
The username is used as the authenticated <code>Principal</code> for configuration of ACLs etc.
646+
Under the default implementation of <code>principal.builder.class</code>, the username is used as the authenticated <code>Principal</code> for configuration of ACLs etc.
647647
<ol>
648648
<li><h5 class="anchor-heading"><a id="security_sasl_plain_brokerconfig" class="anchor-link"></a><a href="#security_sasl_plain_brokerconfig">Configuring Kafka Brokers</a></h5>
649649
<ol>
@@ -712,7 +712,7 @@ <h3 class="anchor-heading"><a id="security_sasl" class="anchor-link"></a><a href
712712
addresses the security concerns with traditional mechanisms that perform username/password authentication
713713
like PLAIN and DIGEST-MD5. The mechanism is defined in <a href="https://tools.ietf.org/html/rfc5802">RFC 5802</a>.
714714
Kafka supports <a href="https://tools.ietf.org/html/rfc7677">SCRAM-SHA-256</a> and SCRAM-SHA-512 which
715-
can be used with TLS to perform secure authentication. The username is used as the authenticated
715+
can be used with TLS to perform secure authentication. Under the default implementation of <code>principal.builder.class</code>, the username is used as the authenticated
716716
<code>Principal</code> for configuration of ACLs etc. The default SCRAM implementation in Kafka
717717
stores SCRAM credentials in Zookeeper and is suitable for use in Kafka installations where Zookeeper
718718
is on a private network. Refer to <a href="#security_sasl_scram_security">Security Considerations</a>
@@ -806,6 +806,7 @@ <h3 class="anchor-heading"><a id="security_sasl" class="anchor-link"></a><a href
806806
The default OAUTHBEARER implementation in Kafka creates and validates <a href="https://tools.ietf.org/html/rfc7515#appendix-A.5">Unsecured JSON Web Tokens</a>
807807
and is only suitable for use in non-production Kafka installations. Refer to <a href="#security_sasl_oauthbearer_security">Security Considerations</a>
808808
for more details.</p>
809+
Under the default implementation of <code>principal.builder.class</code>, the principalName of OAuthBearerToken is used as the authenticated <code>Principal</code> for configuration of ACLs etc.
809810
<ol>
810811
<li><h5 class="anchor-heading"><a id="security_sasl_oauthbearer_brokerconfig" class="anchor-link"></a><a href="#security_sasl_oauthbearer_brokerconfig">Configuring Kafka Brokers</a></h5>
811812
<ol>
@@ -1047,6 +1048,7 @@ <h3 class="anchor-heading"><a id="security_sasl" class="anchor-link"></a><a href
10471048
frameworks to distribute the workload to available workers in a secure environment without the added cost of distributing
10481049
Kerberos TGT/keytabs or keystores when 2-way SSL is used. See <a href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-48+Delegation+token+support+for+Kafka">KIP-48</a>
10491050
for more details.</p>
1051+
Under the default implementation of <code>principal.builder.class</code>, the owner of delegation token is used as the authenticated <code>Principal</code> for configuration of ACLs etc.
10501052

10511053
<p>Typical steps for delegation token usage are:</p>
10521054
<ol>

0 commit comments

Comments
 (0)