Allow to configure the JWKS refresh settings

This exposes a couple for knobs for the jwks keyfunc module to adjust
timeout and refresh intervals.
This commit is contained in:
Ralf Haferkamp
2022-07-22 15:01:25 +02:00
committed by Ralf Haferkamp
parent eb94530433
commit 8229567213
6 changed files with 31 additions and 5 deletions

View File

@@ -41,6 +41,12 @@ func DefaultConfig() *config.Config {
Size: 1024,
TTL: 10,
},
JWKS: config.JWKS{
RefreshInterval: 60, // minutes
RefreshRateLimit: 60, // seconds
RefreshTimeout: 10, // seconds
RefreshUnknownKID: true,
},
},
PolicySelector: nil,
Reva: &config.Reva{