Auth TLS: Add _ to redirect RegEx.

This commit is contained in:
Marco Ebert 2024-11-07 13:52:53 +01:00 committed by k8s-infra-cherrypick-robot
parent 2ed891b4b2
commit d4eb16ead6

View file

@ -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{