Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Add some basic TLS support via environment variable. #2

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

mattmoyer
Copy link
Contributor

Somewhat of a work in progress, not working in my testing quite yet.

I'm not sure if Sarama's TLS configuration support lines up 100% with the official Kafka 0.9 implementation (IBM/sarama#581).

This code reads in some environment variables and configures either server-authenticated TLS (if you point SSL_CA_BUNDLE_PATH at a PEM bundle of CA certs) or mutually-authenticated TLS with client certificates (if you also set SSL_CRT_PATH and SSL_KEY_PATH to PEM formatted client certificate and private key).

cc @xstevens @tomwans

@tomwans
Copy link

tomwans commented Jan 26, 2016

LGTM

xstevens added a commit that referenced this pull request Jan 26, 2016
Add some basic TLS support via environment variable.
@xstevens xstevens merged commit 7a960ad into xstevens:master Jan 26, 2016
@mattmoyer mattmoyer deleted the tls branch January 27, 2016 14:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants