Skip to content

Commit

Permalink
Auth TLS: Add _ to redirect RegEx. (#12326)
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Ebert <[email protected]>
  • Loading branch information
k8s-infra-cherrypick-robot and Gacko authored Nov 8, 2024
1 parent 8f457f5 commit 16cd5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/annotations/authtls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (

var (
authVerifyClientRegex = regexp.MustCompile(`^(on|off|optional|optional_no_ca)$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]+(:\d+)?)?(/[A-Za-z0-9\-.]+)*/?$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]+(:\d+)?)?(/[A-Za-z0-9\-_.]+)*/?$`)
)

var authTLSAnnotations = parser.Annotation{
Expand Down

0 comments on commit 16cd5fc

Please sign in to comment.