Skip to content

Conversation

cappyzawa
Copy link
Member

ref: fluxcd/notification-controller#1190

While reviewing the negative diff in that PR, I noticed that the address key in the secret referenced by proxySecretRef is missing some validations.

Add validation to ProxyURLFromSecret to enforce scheme and length
restrictions that were previously enforced by CRD validation in
notification-controller's deprecated spec.proxy field.

The validation ensures:
- Only http or https schemes are accepted
- URL length does not exceed 2048 characters

The 2048 character limit matches the validation used in
notification-controller's spec.address field.

Signed-off-by: cappyzawa <[email protected]>
Signed-off-by: cappyzawa <[email protected]>
@cappyzawa cappyzawa marked this pull request as ready for review October 6, 2025 17:08
@cappyzawa cappyzawa requested review from a team, hiddeco and stefanprodan as code owners October 6, 2025 17:08
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 d56c6f4 into fluxcd:main Oct 6, 2025
11 checks passed
@matheuscscp
Copy link
Member

@cappyzawa runtime/v0.87.0 is released 👌

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.

2 participants