We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c08e1e commit ac01fafCopy full SHA for ac01faf
pkg/apiserver/middlewares/v1/api_key.go
@@ -33,7 +33,9 @@ func GenerateAPIKey(n int) (string, error) {
33
if _, err := rand.Read(bytes); err != nil {
34
return "", err
35
}
36
- return base64.StdEncoding.EncodeToString(bytes), nil
+ encoded := base64.StdEncoding.EncodeToString(bytes)
37
+ // the '=' can cause issues on some bouncers
38
+ return strings.TrimRight(encoded, "="), nil
39
40
41
func NewAPIKey(dbClient *database.Client) *APIKey {
0 commit comments