Skip to content

Add mTLS support for remote write#192

Open
CharlieTLe wants to merge 1 commit into
prometheus-community:mainfrom
CharlieTLe:worktree-rosy-napping-thacker
Open

Add mTLS support for remote write#192
CharlieTLe wants to merge 1 commit into
prometheus-community:mainfrom
CharlieTLe:worktree-rosy-napping-thacker

Conversation

@CharlieTLe

Copy link
Copy Markdown
Contributor

Adds --tls-client-cert-file, --tls-client-key-file, and --tls-ca-cert-file flags so avalanche can authenticate to remote-write endpoints that require mTLS or a custom CA. ConfigWrite.TLSClientConfig now holds *tls.Config to avoid copying the embedded sync.RWMutex. A warning is logged when --tls-client-insecure is combined with --tls-ca-cert-file since the CA is silently bypassed in that case.

Includes tests covering each flag combination and README documentation.

Adds --tls-client-cert-file, --tls-client-key-file, and --tls-ca-cert-file
flags so avalanche can authenticate to remote-write endpoints that require
mTLS or a custom CA. ConfigWrite.TLSClientConfig now holds *tls.Config to
avoid copying the embedded sync.RWMutex. A warning is logged when
--tls-client-insecure is combined with --tls-ca-cert-file since the CA is
silently bypassed in that case.

Includes tests covering each flag combination and README documentation.

Signed-off-by: Charlie Le <charlie_le@apple.com>
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.

1 participant