feat(pubsub): support kafka tls and sasl/plain auth#7046
Merged
spacewander merged 23 commits intoapache:masterfrom May 17, 2022
Merged
feat(pubsub): support kafka tls and sasl/plain auth#7046spacewander merged 23 commits intoapache:masterfrom
spacewander merged 23 commits intoapache:masterfrom
Conversation
5 tasks
Contributor
Author
soulbird
reviewed
May 16, 2022
| - name: Run other docker containers for test | ||
| run: | | ||
| # generating SSL certificates for Kafka | ||
| keytool -genkeypair -keyalg RSA -dname "CN=127.0.0.1" -alias 127.0.0.1 -keystore ./ci/pod/kafka/kafka-server/selfsigned.jks -validity 365 -keysize 2048 -storepass changeit |
Contributor
There was a problem hiding this comment.
Is it more appropriate to put it in the linux-ci-init-service.sh script ?
Contributor
Author
soulbird
reviewed
May 16, 2022
|
|
||
| # generating SSL certificates for Kafka | ||
| keytool -genkeypair -keyalg RSA -dname "CN=127.0.0.1" -alias 127.0.0.1 -keystore ./ci/pod/kafka/kafka-server/selfsigned.jks -validity 365 -keysize 2048 -storepass changeit | ||
|
|
Contributor
There was a problem hiding this comment.
so, add this to linux-ci-init-service.sh script ?
Member
|
LGTM |
soulbird
previously approved these changes
May 17, 2022
tzssangglass
previously approved these changes
May 17, 2022
spacewander
reviewed
May 17, 2022
apisix/upstream.lua
Outdated
| end | ||
|
|
||
| if conf.tls then | ||
| if conf.tls and conf.tls.client_cert and conf.tls.client_key then |
Member
There was a problem hiding this comment.
Suggested change
| if conf.tls and conf.tls.client_cert and conf.tls.client_key then | |
| if conf.tls and conf.tls.client_cert then |
is enough?
Contributor
Author
There was a problem hiding this comment.
Yes, it's enough, we ensure client_cert and client_key both exist by jsonschema's dependencies. Any one of them separate exist is forbidden.
Lines 416 to 419 in 99bced1
spacewander
reviewed
May 17, 2022
Member
spacewander
left a comment
There was a problem hiding this comment.
Let's provide a doc about the kafka-proxy plugin.
apisix/plugins/kafka-proxy.lua
Outdated
| }, | ||
| password = { | ||
| type = "string", | ||
| default = "", |
Member
There was a problem hiding this comment.
We can remove the default if these fields are required?
spacewander
approved these changes
May 17, 2022
tzssangglass
approved these changes
May 17, 2022
Liu-Junlin
pushed a commit
to Liu-Junlin/apisix
that referenced
this pull request
May 20, 2022
spacewander
pushed a commit
that referenced
this pull request
Jun 30, 2022
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Part of #6995 to implement TLS and SASL/PLAIN authentication support for kafka.
Checklist