Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Public MSK (Production) docs to use SASL/SCRAM #96

Closed
jfallows opened this issue Aug 29, 2023 · 0 comments · Fixed by #97
Closed

Update Public MSK (Production) docs to use SASL/SCRAM #96

jfallows opened this issue Aug 29, 2023 · 0 comments · Fixed by #97
Labels
enhancement New feature or request

Comments

@jfallows
Copy link
Contributor

We have 3 different how-tos for Zilla Plus (Public MSK Proxy)

  • Development
  • Production
  • Production (Mutual Trust)

The Production (Mutual Trust) how-to illustrates using TLS client certificates for client authentication, but the Production how-to illustrates unauthenticated access via TLS.

Let's modify the Production how-to to use SASL/SCRAM authentication end-to-end via Zilla Plus (Public MSK Proxy) as this is a common use case when the Kafka client is not using TLS client certificates for authentication.

Changes needed include

  • Configure MSK cluster for SASL/SCRAM authentication
    • note: uses port 9096 (sasl), not port 9094 (tls)
    • applies to all ports in how-to, including command line to test via Kafka client
  • Create AmazonMSK_alice secret with value alice-secret using non-default encryption key
  • Associate AmazonMSK_alice secret with MSK cluster (requires secret uses non-default encryption key)
  • Configure Kafka client client.properties to use SASL/SCRAM and authenticate as alice

AmazonMSK_alice secret value (plaintext)

{
  "username": "alice",
  "password": "alice-secret"
}

client.properties

sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="alice" password="alice-secret";
security.protocol=SASL_SSL
sasl.mechanism=SCRAM-SHA-512
@jfallows jfallows added the enhancement New feature or request label Aug 29, 2023
@vordimous vordimous linked a pull request Aug 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant