Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Use public_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Oct 15, 2020
1 parent 36804bb commit 9b4240e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/admin/caches.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var caches = map[string]*cacheItem{
"jwks:": {"JWKs", "JSON web key sets"},
"realms:": {"Realms", "All realm data"},
"stats:": {"Statistics", "API key, user, and realm statistics"},
"publickeys:": {"Public keys", "PEM data from upstream key provider"},
"public_keys:": {"Public keys", "PEM data from upstream key provider"},
"users:": {"Users", "All user data"},
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/keyutils/public_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewPublicKeyCache(ctx context.Context, cacher cache.Cacher, ttl time.Durati
// GetPublicKey returns the public key for the provided ID.
func (c *PublicKeyCache) GetPublicKey(ctx context.Context, id string, kms keys.KeyManager) (crypto.PublicKey, error) {
cacheKey := &cache.Key{
Namespace: "publickeys",
Namespace: "public_keys",
Key: id,
}

Expand Down

0 comments on commit 9b4240e

Please sign in to comment.