feat(kafka-logger): support sasl config in brokers#8050
feat(kafka-logger): support sasl config in brokers#8050spacewander merged 45 commits intoapache:masterfrom
Conversation
|
I think it is not good to put |
|
I'm glad you continue this feat PR |
Hi, @biubiue .I think we can put the Then we can add |
apisix/plugins/kafka-logger.lua
Outdated
| properties = { | ||
| mechanism = { | ||
| type = "string", | ||
| default = "PLAIN" |
There was a problem hiding this comment.
We can use enum to make sure the passing mechanism is legal? Although only PLAIN is currently supported.
There was a problem hiding this comment.
Good suggestion. Let me add the enum and add a test case to cover it.
|
LGTM |
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
ci/pod/docker-compose.plugin.yml
Outdated
| volumes: | ||
| - ./ci/pod/kafka/kafka-server/kafka_jaas.conf:/opt/bitnami/kafka/config/kafka_jaas.conf:ro | ||
| - ./ci/pod/kafka/kafka-server/selfsigned.jks:/opt/bitnami/kafka/config/certs/kafka.keystore.jks:ro | ||
| - ./ci/pod/kafka/kafka-server/selfsigned.jks:/opt/bitnami/kafka/config/certs/kafka.truststore.jks:ro |
There was a problem hiding this comment.
The selfsigned.jks file is only generated when the last test is executed, look: https://github.com/apache/apisix/blob/master/.github/workflows/build.yml#L117-L120, and should not exist when the plugin test is executed. Why can CI still pass, very puzzled.....
There was a problem hiding this comment.
Sorry.My fault.
Why can CI still pass, very puzzled....
The file or directory does not need to exist on the Docker host already. It is created on demand if it does not yet exist.
So it wouldn't influence the CI.
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com> Co-authored-by: biubiue <hichuanbiao@gmail.com>
Description
Fixes #8046
Thanks to @biubiue and the original PR #7782.
Checklist