이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 84. KafkaClientAuthenticationScramSha256 schema reference
Used in: KafkaBridgeSpec, KafkaConnectSpec, KafkaMirrorMaker2ClusterSpec, KafkaMirrorMakerConsumerSpec, KafkaMirrorMakerProducerSpec
Full list of KafkaClientAuthenticationScramSha256 schema properties
To configure SASL-based SCRAM-SHA-256 authentication, set the type property to scram-sha-256. The SCRAM-SHA-256 authentication mechanism requires a username and password.
Example SASL-based SCRAM-SHA-256 client authentication configuration for Kafka Connect
In the passwordSecret property, specify a link to a Secret containing the password.
You can use the secrets created by the User Operator.
If required, you can create a text file that contains the password, in cleartext, to use for authentication:
echo -n <password> > <my_password>.txt
echo -n <password> > <my_password>.txt
You can then create a Secret from the text file, setting your own field name (key) for the password:
oc create secret generic <my-connect-secret-name> --from-file=<my_password_field_name>=./<my_password>.txt
oc create secret generic <my-connect-secret-name> --from-file=<my_password_field_name>=./<my_password>.txt
Example secret for SCRAM-SHA-256 client authentication for Kafka Connect
The secretName property contains the name of the Secret, and the password property contains the name of the key under which the password is stored inside the Secret.
Do not specify the actual password in the password property.
84.1. KafkaClientAuthenticationScramSha256 schema properties 링크 복사링크가 클립보드에 복사되었습니다!
| Property | Property type | Description |
|---|---|---|
| type | string |
Must be |
| username | string | Username used for the authentication. |
| passwordSecret |
Reference to the |