@@ -68,82 +68,11 @@ jobs:
68
68
working_directory : ./sasl/aws_msk_iam
69
69
command : go test -race -cover ./...
70
70
71
- kafka-011 :
72
- working_directory : *working_directory
73
- environment :
74
- KAFKA_VERSION : " 0.11.0"
75
- docker :
76
- - image : circleci/golang
77
- - image : bitnami/zookeeper:latest
78
- ports :
79
- - 2181:2181
80
- environment :
81
- ALLOW_ANONYMOUS_LOGIN : yes
82
- - image : bitnami/kafka:0.11.0-1-r1
83
- ports :
84
- - 9092:9092
85
- - 9093:9093
86
- environment :
87
- KAFKA_BROKER_ID : 1
88
- KAFKA_DELETE_TOPIC_ENABLE : ' true'
89
- KAFKA_ADVERTISED_HOST_NAME : ' localhost'
90
- KAFKA_ADVERTISED_PORT : ' 9092'
91
- KAFKA_ZOOKEEPER_CONNECT : localhost:2181
92
- KAFKA_LISTENERS : ' PLAINTEXT://:9092,SASL_PLAINTEXT://:9093'
93
- KAFKA_ADVERTISED_LISTENERS : ' PLAINTEXT://localhost:9092,SASL_PLAINTEXT://localhost:9093'
94
- KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
95
- KAFKA_OPTS : " -Djava.security.auth.login.config=/opt/bitnami/kafka/config/kafka_server_jaas.conf"
96
- ALLOW_PLAINTEXT_LISTENER : " yes"
97
- entrypoint :
98
- - " /bin/bash"
99
- - " -c"
100
- # 0.11.0 image is not honoring some configs required in server.properties
101
- - echo -e '\nsasl.enabled.mechanisms=PLAIN,SCRAM-SHA-256,SCRAM-SHA-512\nmessage.max.bytes=200000000\nauto.create.topics.enable=true\nport=9092' >> /opt/bitnami/kafka/config/server.properties; 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/bitnami/kafka/config/kafka_server_jaas.conf; /opt/bitnami/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; exec /app-entrypoint.sh /run.sh
102
- steps : *steps
103
-
104
- kafka-231 :
105
- working_directory : *working_directory
106
- environment :
107
- KAFKA_VERSION : " 2.3.1"
108
- docker :
109
- - image : circleci/golang
110
- - image : bitnami/zookeeper:latest
111
- ports :
112
- - 2181:2181
113
- environment :
114
- ALLOW_ANONYMOUS_LOGIN : yes
115
- - image : bitnami/kafka:2.3.1-ol-7-r61
116
- ports :
117
- - 9092:9092
118
- - 9093:9093
119
- environment :
120
- KAFKA_CFG_BROKER_ID : 1
121
- KAFKA_CFG_DELETE_TOPIC_ENABLE : ' true'
122
- KAFKA_CFG_ADVERTISED_HOST_NAME : ' localhost'
123
- KAFKA_CFG_ADVERTISED_PORT : ' 9092'
124
- KAFKA_CFG_ZOOKEEPER_CONNECT : localhost:2181
125
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE : ' true'
126
- KAFKA_CFG_MESSAGE_MAX_BYTES : ' 200000000'
127
- KAFKA_CFG_LISTENERS : ' PLAINTEXT://:9092,SASL_PLAINTEXT://:9093'
128
- KAFKA_CFG_ADVERTISED_LISTENERS : ' PLAINTEXT://localhost:9092,SASL_PLAINTEXT://localhost:9093'
129
- KAFKA_CFG_SASL_ENABLED_MECHANISMS : ' PLAIN,SCRAM-SHA-256,SCRAM-SHA-512'
130
- KAFKA_CFG_AUTHORIZER_CLASS_NAME : ' kafka.security.auth.SimpleAclAuthorizer'
131
- KAFKA_CFG_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
132
- KAFKA_INTER_BROKER_USER : adminplain
133
- KAFKA_INTER_BROKER_PASSWORD : admin-secret
134
- KAFKA_BROKER_USER : adminplain
135
- KAFKA_BROKER_PASSWORD : admin-secret
136
- ALLOW_PLAINTEXT_LISTENER : yes
137
- entrypoint :
138
- - " /bin/bash"
139
- - " -c"
140
- - /opt/bitnami/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; exec /entrypoint.sh /run.sh
141
- steps : *steps
142
-
143
- kafka-241 :
71
+ # NOTE: Bitnami does not have suport for kafka version 2.7.1. Hence we use 2.7.0
72
+ kafka-270 :
144
73
working_directory : *working_directory
145
74
environment :
146
- KAFKA_VERSION : " 2.4.1 "
75
+ KAFKA_VERSION : " 2.7.0 "
147
76
148
77
# Need to skip nettest to avoid these kinds of errors:
149
78
# --- FAIL: TestConn/nettest (17.56s)
162
91
- 2181:2181
163
92
environment :
164
93
ALLOW_ANONYMOUS_LOGIN : yes
165
- - image : bitnami/kafka:2.4.1
94
+ - image : bitnami/kafka:2.7.0
166
95
ports :
167
96
- 9092:9092
168
97
- 9093:9093
@@ -187,10 +116,10 @@ jobs:
187
116
- 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/bitnami/kafka/config/kafka_jaas.conf; /opt/bitnami/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; exec /entrypoint.sh /run.sh
188
117
steps : *steps
189
118
190
- kafka-260 :
119
+ kafka-281 :
191
120
working_directory : *working_directory
192
121
environment :
193
- KAFKA_VERSION : " 2.6.0 "
122
+ KAFKA_VERSION : " 2.8.1 "
194
123
195
124
# Need to skip nettest to avoid these kinds of errors:
196
125
# --- FAIL: TestConn/nettest (17.56s)
@@ -209,19 +138,18 @@ jobs:
209
138
- 2181:2181
210
139
environment :
211
140
ALLOW_ANONYMOUS_LOGIN : yes
212
- - image : bitnami/kafka:2.6.0
141
+ - image : bitnami/kafka:2.8.1
213
142
ports :
214
143
- 9092:9092
215
144
- 9093:9093
216
145
environment : *environment
217
146
entrypoint : *entrypoint
218
147
steps : *steps
219
148
220
- # NOTE: Bitnami does not have suport for kafka version 2.7.1. Hence we use 2.7.0
221
- kafka-270 :
149
+ kafka-370 :
222
150
working_directory : *working_directory
223
151
environment :
224
- KAFKA_VERSION : " 2 .7.0"
152
+ KAFKA_VERSION : " 3 .7.0"
225
153
226
154
# Need to skip nettest to avoid these kinds of errors:
227
155
# --- FAIL: TestConn/nettest (17.56s)
@@ -240,41 +168,13 @@ jobs:
240
168
- 2181:2181
241
169
environment :
242
170
ALLOW_ANONYMOUS_LOGIN : yes
243
- - image : bitnami/kafka:2.7.0
244
- ports :
245
- - 9092:9092
246
- - 9093:9093
247
- environment : *environment
248
- entrypoint : *entrypoint
249
- steps : *steps
250
-
251
- kafka-281 :
252
- working_directory : *working_directory
253
- environment :
254
- KAFKA_VERSION : " 2.8.1"
255
-
256
- # Need to skip nettest to avoid these kinds of errors:
257
- # --- FAIL: TestConn/nettest (17.56s)
258
- # --- FAIL: TestConn/nettest/PingPong (7.40s)
259
- # conntest.go:112: unexpected Read error: [7] Request Timed Out: the request exceeded the user-specified time limit in the request
260
- # conntest.go:118: mismatching value: got 77, want 78
261
- # conntest.go:118: mismatching value: got 78, want 79
262
- # ...
263
- #
264
- # TODO: Figure out why these are happening and fix them (they don't appear to be new).
265
- KAFKA_SKIP_NETTEST : " 1"
266
- docker :
267
- - image : circleci/golang
268
- - image : bitnami/zookeeper:latest
171
+ - image : bitnami/kafka:3.7.0
269
172
ports :
270
- - 2181:2181
173
+ - 9092:9092
174
+ - 9093:9093
271
175
environment :
272
- ALLOW_ANONYMOUS_LOGIN : yes
273
- - image : bitnami/kafka:2.8.1
274
- ports :
275
- - 9092:9092
276
- - 9093:9093
277
- environment : *environment
176
+ << : *environment
177
+ KAFKA_CFG_AUTHORIZER_CLASS_NAME : ' kafka.security.authorizer.AclAuthorizer'
278
178
entrypoint : *entrypoint
279
179
steps : *steps
280
180
@@ -284,14 +184,6 @@ workflows:
284
184
jobs :
285
185
- lint
286
186
- kafka-010
287
- - kafka-011
288
- # - kafka-101 # Bitnami image fails for SCRAM. refer kafka-do/docker_compose_versions/README.md
289
- # - kafka-111 # Bitnami image fails for SCRAM. refer kafka-do/docker_compose_versions/README.md
290
- # - kafka-201 # Bitnami image fails for SCRAM. refer kafka-do/docker_compose_versions/README.md
291
- # - kafka-211 # Bitnami image fails for SCRAM. refer kafka-do/docker_compose_versions/README.md
292
- # - kafka-222 # Bitnami v222 not found. v221 Bitnami image fails for SCRAM. refer kafka-do/docker_compose_versions/README.md
293
- - kafka-231
294
- - kafka-241
295
- - kafka-260
296
187
- kafka-270
297
188
- kafka-281
189
+ - kafka-370
0 commit comments