diff --git a/plugin/pkg/authenticator/token/oidc/oidc.go b/plugin/pkg/authenticator/token/oidc/oidc.go index 26e6c7335..79ef5c920 100644 --- a/plugin/pkg/authenticator/token/oidc/oidc.go +++ b/plugin/pkg/authenticator/token/oidc/oidc.go @@ -204,8 +204,11 @@ func (a *Authenticator) Close() { a.cancel() } -// whitelist of signing algorithms to ensure users don't mistakenly pass something -// goofy. +func AllValidSigningAlgorithms() []string { + return sets.List(sets.KeySet(allowedSigningAlgs)) +} + +// allowlist of signing algorithms to ensure users don't mistakenly pass something goofy. var allowedSigningAlgs = map[string]bool{ oidc.RS256: true, oidc.RS384: true,