Skip to content

Commit

Permalink
fix: limit the proxy only to versioned services
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Oct 15, 2024
1 parent aebba41 commit f995356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tpodproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SpecialHeaderName = "X-Apocryph-Expected"

const VerificationServiceURL = "http://verification-service.kube-system.svc.cluster.local:8080"

var ValidServiceNames = regexp.MustCompile("^[a-z][a-z0-9-]{0,62}$")
var ValidServiceNames = regexp.MustCompile("^tpod-vh-[a-z0-9-]{52}$") //^[a-z][a-z0-9-]{0,62}$

var currentBackingService string // e.g. tpod-XXX
var backingServiceSuffix string // e.g. .NS.svc.cluster.local
Expand Down

0 comments on commit f995356

Please sign in to comment.