From 6aebb06db04764122e9e671c705c9845d6a90a20 Mon Sep 17 00:00:00 2001 From: moremagic Date: Tue, 14 Dec 2021 14:00:51 +0900 Subject: [PATCH] add lib for aws-msk-iam-auth (#810) --- build.gradle | 3 +++ .../authentifications/aws-iam-auth.md | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 docs/docs/configuration/authentifications/aws-iam-auth.md diff --git a/build.gradle b/build.gradle index fba206b09..fe8e91397 100644 --- a/build.gradle +++ b/build.gradle @@ -124,6 +124,9 @@ dependencies { // client implementation project(":client") + + //AWS MSK IAM Auth + implementation group: 'software.amazon.msk', name: 'aws-msk-iam-auth', version: '1.1.1' } /**********************************************************************************************************************\ diff --git a/docs/docs/configuration/authentifications/aws-iam-auth.md b/docs/docs/configuration/authentifications/aws-iam-auth.md new file mode 100644 index 000000000..da46f1d41 --- /dev/null +++ b/docs/docs/configuration/authentifications/aws-iam-auth.md @@ -0,0 +1,23 @@ +# AWS MSK IAM Auth + +* The libraries required for IAM authentication have already been loaded. + +Configure aws-msk-iam-auth connection in AKHQ + +```yaml +akhq: + connections: + docker-kafka-server: + properties: + bootstrap.servers: msk-broker:9098 + security.protocol: SASL_SSL + sasl.mechanism: AWS_MSK_IAM + sasl.jaas.config: software.amazon.msk.auth.iam.IAMLoginModule required awsDebugCreds=true; + sasl.client.callback.handler.class: software.amazon.msk.auth.iam.IAMClientCallbackHandler + ssl.truststore.location: ${JAVA_HOME}/lib/security/cacerts + ssl.truststore.password: changeit +``` + +## References +https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html +https://github.com/aws/aws-msk-iam-auth/blob/main/README.md