jwt_authn: Add upper bound on JWT cache_duration (#28017)

* Add upper bound on JWT cache_duration

Signed-off-by: Yan Avlasov <yavlasov@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 3436b8e40616d329b47ef89bd7cfa45c425adac9
main
update-envoy[bot] 1 year ago
parent 9d6ffa7067
commit 793eb3677a
  1. 5
      envoy/extensions/filters/http/jwt_authn/v3/config.proto

@ -330,7 +330,10 @@ message RemoteJwks {
// Duration after which the cached JWKS should be expired. If not specified, default cache
// duration is 10 minutes.
google.protobuf.Duration cache_duration = 2;
google.protobuf.Duration cache_duration = 2 [(validate.rules).duration = {
lt {seconds: 9000000000}
gte {nanos: 1000000}
}];
// Fetch Jwks asynchronously in the main thread before the listener is activated.
// Fetched Jwks can be used by all worker threads.

Loading…
Cancel
Save