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

Fix SASL_SCRAM authentication #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

heldertsantos
Copy link

SASL_SCRAM authentication is not working, it's necessary to also add the KAFKA_SSL_CA_CERT_FILE line to the kafkaSaslMechanism if.

@@ -57,6 +57,7 @@ func main() {
}

kafkaConfig["security.protocol"] = kafkaSecurityProtocol
kafkaConfig["ssl.ca.location"] = kafkaSslCACertFile // CA certificate file for verifying the broker's certificate.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @heldertsantos. Are you sure this works? I think you should also include this new environment var in config.go, here https://github.com/Telefonica/prometheus-kafka-adapter/blob/d1cbd70c213248b3597adbdd4d2ddbf6173b47bd/config.go#L111-L113= so the var kafkaSslCACertFile gets populated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants