Skip to content

Conversation

@ndk
Copy link
Contributor

@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.

@frebib
Copy link

frebib commented Jun 15, 2025

Change here seems plausible. I'm frequently being plagued by this crash. Any chance this could be reviewed/merged?

@cxdy
Copy link

cxdy commented Aug 11, 2025

We got around this by setting the ca_cert in our remote_write.tls_config and in our scrape jobs, but this would be really nice to have!

Signed-off-by: Andrey Karpov <ndk@users.noreply.github.com>
Copy link
Member

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

Hello from the bug scrub. Seems like a straightforward guard statement. Merging.

@krajorama krajorama merged commit 8230d3b into prometheus:main Oct 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants