E544 Allow socks5 proxy URLs by jonkerj · Pull Request #7460 · prometheus-operator/prometheus-operator · GitHub
[go: up one dir, main page]

Skip to content

Conversation

jonkerj
Copy link
Contributor
@jonkerj jonkerj commented Apr 15, 2025

This enhances the regex(es) used to validate proxy URLs in various CRDs.

Fixes #7458

Description

This is a (small) fix to the regex URLs that validate proxyURL. Before the change, only http(s)?://.*$ was allowed, which ruled out the usage of socks5 (which prometheus is fine with).

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

I manually applied the resulting CRDs to see if http://, https:// and socks5:// URLs are accepted (which is the case).

Changelog entry

- Fix ProxyURL validation regex

This enhances the regex used to validate proxy URLs in various CRDs.

Fixes #7458

Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
@jonkerj jonkerj requested a review from a team as a code owner April 15, 2025 15:01
Copy link
Contributor
@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Thanks!

@simonpasquier simonpasquier merged commit f56d0f5 into prometheus-operator:main Apr 15, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrapeconfig proxyUrl validator does not allow socks5
2 participants
0