Skip to content

Fix panic in tlsRoundTripper when CA file is absent #792

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

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

Conversation

ndk
Copy link

@ndk ndk commented Jun 3, 2025

prometheus/prometheus#16622 (comment)

Prevents a nil-pointer panic in tlsRoundTripper that occurred when cert_file/key_file were set but no ca_file, and the CA reload failed. The code now returns a descriptive error instead of crashing.

Signed-off-by: Andrey Karpov <ndk@users.noreply.github.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