Skip to content

Conversation

@cappyzawa
Copy link
Member

Add validation to ProxyURLFromSecret to ensure proxy URLs use
supported schemes (http, https, socks5) and do not exceed the
maximum length of 2048 characters.

This addresses the regression introduced in PR fluxcd#1041 which removed
all validation after users reported SOCKS5 proxy breakage. The new
implementation properly supports SOCKS5 while maintaining security
through scheme and length validation.

Signed-off-by: cappyzawa <cappyzawa@gmail.com>
Signed-off-by: cappyzawa <cappyzawa@gmail.com>
@cappyzawa cappyzawa requested review from a team, hiddeco and stefanprodan as code owners December 3, 2025 02:25
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @cappyzawa 🏅

@stefanprodan stefanprodan added the area/security Security related issues and pull requests label Dec 8, 2025
Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@matheuscscp matheuscscp merged commit cac5502 into fluxcd:main Dec 8, 2025
11 checks passed
@matheuscscp
Copy link
Member

runtime/v0.92.0 is tagged 🤗

@cappyzawa cappyzawa deleted the proxy-url-validation branch December 9, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security Security related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants