File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,17 @@ jobs:
148
148
ports :
149
149
- 9092:9092
150
150
- 9093:9093
151
- environment :
151
+ # recently, the base image for some newer versions of kafka switched from
152
+ # alpine to debian, which causes the "apk add ..." line to fail. The env
153
+ # map should be used for any versions that fail due to being part of this
154
+ # migration.
155
+ environment : &environmentDebian
152
156
<< : *environment
153
157
KAFKA_AUTHORIZER_CLASS_NAME : ' kafka.security.auth.SimpleAclAuthorizer'
154
158
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
159
+ CUSTOM_INIT_SCRIPT : |-
160
+ echo -e 'KafkaServer {\norg.apache.kafka.common.security.scram.ScramLoginModule required\n username="adminscram"\n password="admin-secret";\n org.apache.kafka.common.security.plain.PlainLoginModule required\n username="adminplain"\n password="admin-secret"\n user_adminplain="admin-secret";\n };' > /opt/kafka/config/kafka_server_jaas.conf;
161
+ /opt/kafka/bin/kafka-configs.sh --zookeeper localhost:2181 --alter --add-config 'SCRAM-SHA-256=[password=admin-secret-256],SCRAM-SHA-512=[password=admin-secret-512]' --entity-type users --entity-name adminscram
155
162
steps : *steps
156
163
157
164
kafka-222 :
@@ -168,9 +175,7 @@ jobs:
168
175
- 9092:9092
169
176
- 9093:9093
170
177
environment :
171
- << : *environment
172
- KAFKA_AUTHORIZER_CLASS_NAME : ' kafka.security.auth.SimpleAclAuthorizer'
173
- KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
178
+ << : *environmentDebian
174
179
steps : *steps
175
180
176
181
kafka-231 :
@@ -187,9 +192,7 @@ jobs:
187
192
- 9092:9092
188
193
- 9093:9093
189
194
environment :
190
- << : *environment
191
- KAFKA_AUTHORIZER_CLASS_NAME : ' kafka.security.auth.SimpleAclAuthorizer'
192
- KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
195
+ << : *environmentDebian
193
196
steps : *steps
194
197
195
198
kafka-241 :
@@ -217,9 +220,7 @@ jobs:
217
220
- 9092:9092
218
221
- 9093:9093
219
222
environment :
220
- << : *environment
221
- KAFKA_AUTHORIZER_CLASS_NAME : ' kafka.security.authorizer.AclAuthorizer'
222
- KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
223
+ << : *environmentDebian
223
224
steps : *steps
224
225
225
226
kafka-260 :
You can’t perform that action at this time.
0 commit comments