From 0d279252fce141ddd6c4d30c235f322696061374 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 15 Oct 2020 09:27:00 -0400 Subject: [PATCH] Use public_keys --- pkg/controller/admin/caches.go | 2 +- pkg/keyutils/public_keys.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/admin/caches.go b/pkg/controller/admin/caches.go index 0d7442f64..ca6e440be 100644 --- a/pkg/controller/admin/caches.go +++ b/pkg/controller/admin/caches.go @@ -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"}, } diff --git a/pkg/keyutils/public_keys.go b/pkg/keyutils/public_keys.go index 839191358..560869d43 100644 --- a/pkg/keyutils/public_keys.go +++ b/pkg/keyutils/public_keys.go @@ -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, }