Skip to content

Commit abec518

Browse files
k8s-ci-robotshaneutt
authored andcommitted
Merge pull request #1644 from jackstine/route-validation-RFC-3986
update regex to comply with RFC-3986
1 parent be595a2 commit abec518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/v1beta1/validation/httproute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
invalidPathSuffixes = []string{"/..", "/."}
4040

4141
// All valid path characters per RFC-3986
42-
validPathCharacters = "^[A-Za-z0-9\\/\\-._~%!$&'()*+,;=:]+$"
42+
validPathCharacters = "^(?:[A-Za-z0-9\\/\\-._~!$&'()*+,;=:@]|[%][0-9a-fA-F]{2})+$"
4343
)
4444

4545
// ValidateHTTPRoute validates HTTPRoute according to the Gateway API specification.

0 commit comments

Comments
 (0)