Skip to content

web: Fix externalURL not using https with TLS - #17272

Closed
kianelbo wants to merge 2 commits into
prometheus:mainfrom
kianelbo:main
Closed

kianelbo wants to merge 2 commits into
prometheus:mainfrom
kianelbo:main

Conversation

@kianelbo

@kianelbo kianelbo commented Oct 2, 2025

Copy link
Copy Markdown

Which issue(s) does the PR fix:

Fixes #17236

Does this PR introduce a user-facing change?

NONE

@bboreham

bboreham commented Oct 7, 2025

Copy link
Copy Markdown
Member

Thanks for this. The docstring for webConfig is "Path to configuration file that can enable TLS or authentication", i.e. it suggests that TLS is not always enabled. Can you clarify whether this is correct, and either improve the docstring or improve the logic in this PR.

Would you consider adding a test?

@kianelbo

kianelbo commented Oct 8, 2025

Copy link
Copy Markdown
Author

@bboreham I assumed when webConfig is passed TLS is enabled, but I guess it might not be the case for example when there's no tls_server_config in the file. So I've changed the logic. Also added tests.
However, I'm not sure is this what you meant or how the doc can be improved.

@github-actions github-actions Bot added the stale label Dec 15, 2025
@bboreham bboreham self-assigned this Jan 6, 2026
@github-actions github-actions Bot removed the stale label Jan 10, 2026
@beorn7

beorn7 commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Hello from the bug scrub!

@bboreham you wanted to review this back in January. Are you still up for it?

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.

externalURL should not default to http when prometheus is configured to listen on TLS

3 participants