From 61e6ded094aa40e21c70bac579719ce96eaea30b Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 7 Nov 2024 13:08:22 -0700 Subject: [PATCH] chore: allow dot in credential context --- pkg/credentials/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/credentials/store.go b/pkg/credentials/store.go index 53e81f6b..e602d074 100644 --- a/pkg/credentials/store.go +++ b/pkg/credentials/store.go @@ -195,7 +195,7 @@ func validateCredentialCtx(ctxs []string) error { } // check alphanumeric - r := regexp.MustCompile("^[-a-zA-Z0-9]+$") + r := regexp.MustCompile("^[-a-zA-Z0-9.]+$") for _, c := range ctxs { if !r.MatchString(c) { return fmt.Errorf("credential contexts must be alphanumeric")