File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ E.g. `WithSuperusers("superuser-1", "superuser-2")`.
9999
100100- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.20.0"><span class="tc-version">:material-tag: v0.20.0</span></a>
101101
102- The `WithEnableSASL()` option enables SASL scram sha authentication. By default, no authentication (plaintext) is used.
102+ The `WithEnableSASL()` option enables SASL scram sha 256 authentication. By default, no authentication (plaintext) is used.
103103When setting an authentication method, make sure to add users as well and authorize them using the `WithSuperusers()` option.
104104
105105#### WithEnableKafkaAuthorization
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type options struct {
1515 KafkaEnableAuthorization bool
1616
1717 // KafkaAuthenticationMethod is either "none" for plaintext or "sasl"
18- // for SASL (scram) authentication.
18+ // for SASL (scram sha 256 ) authentication.
1919 KafkaAuthenticationMethod string
2020
2121 // SchemaRegistryAuthenticationMethod is either "none" for no authentication
@@ -78,6 +78,9 @@ func (o Option) Customize(*testcontainers.GenericContainerRequest) error {
7878 return nil
7979}
8080
81+ // WithNewServiceAccount includes a new user with username (key) and password (value)
82+ // that shall be created, so that you can use these to authenticate against
83+ // Redpanda (either for the Kafka API or Schema Registry HTTP access).
8184func WithNewServiceAccount (username , password string ) Option {
8285 return func (o * options ) {
8386 o .ServiceAccounts [username ] = password
@@ -92,7 +95,7 @@ func WithSuperusers(superusers ...string) Option {
9295 }
9396}
9497
95- // WithEnableSASL enables SASL scram sha authentication.
98+ // WithEnableSASL enables SASL scram sha 256 authentication.
9699// By default, no authentication (plaintext) is used.
97100// When setting an authentication method, make sure to add users
98101// as well as authorize them using the WithSuperusers() option.
You can’t perform that action at this time.
0 commit comments