Skip to content

Commit 6d67f65

Browse files
committed
Document new cache{A,Una}uthorizedRequests field in AuthorizationConfiguration
1 parent d3efe11 commit 6d67f65

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

content/en/docs/reference/access-authn-authz/authorization.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,23 @@ authorizers:
219219
# Same as setting `--authorization-webhook-cache-authorized-ttl` flag
220220
# Default: 5m0s
221221
authorizedTTL: 30s
222+
# If set to false, 'authorized' responses from the webhook are not cached
223+
# and the specified authorizedTTL is ignored/has no effect.
224+
# Same as setting `--authorization-webhook-cache-authorized-ttl` flag to `0`.
225+
# Note: Setting authorizedTTL to `0` results in its default value being used.
226+
# Default: true
227+
cacheAuthorizedRequests: true
222228
# The duration to cache 'unauthorized' responses from the webhook
223229
# authorizer.
224230
# Same as setting `--authorization-webhook-cache-unauthorized-ttl` flag
225231
# Default: 30s
226232
unauthorizedTTL: 30s
233+
# If set to false, 'unauthorized' responses from the webhook are not cached
234+
# and the specified unauthorizedTTL is ignored/has no effect.
235+
# Same as setting `--authorization-webhook-cache-unauthorized-ttl` flag to `0`.
236+
# Note: Setting unauthorizedTTL to `0` results in its default value being used.
237+
# Default: true
238+
cacheUnauthorizedRequests: true
227239
# Timeout for the webhook request
228240
# Maximum allowed is 30s.
229241
# Required, with no default.

content/zh-cn/docs/reference/access-authn-authz/authorization.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,23 @@ authorizers:
406406
# Same as setting `--authorization-webhook-cache-authorized-ttl` flag
407407
# Default: 5m0s
408408
authorizedTTL: 30s
409+
# If set to false, 'authorized' responses from the webhook are not cached
410+
# and the specified authorizedTTL is ignored/has no effect.
411+
# Same as setting `--authorization-webhook-cache-authorized-ttl` flag to `0`.
412+
# Note: Setting authorizedTTL to `0` results in its default value being used.
413+
# Default: true
414+
cacheAuthorizedRequests: true
409415
# The duration to cache 'unauthorized' responses from the webhook
410416
# authorizer.
411417
# Same as setting `--authorization-webhook-cache-unauthorized-ttl` flag
412418
# Default: 30s
413419
unauthorizedTTL: 30s
420+
# If set to false, 'unauthorized' responses from the webhook are not cached
421+
# and the specified unauthorizedTTL is ignored/has no effect.
422+
# Same as setting `--authorization-webhook-cache-unauthorized-ttl` flag to `0`.
423+
# Note: Setting unauthorizedTTL to `0` results in its default value being used.
424+
# Default: true
425+
cacheUnauthorizedRequests: true
414426
# Timeout for the webhook request
415427
# Maximum allowed is 30s.
416428
# Required, with no default.

0 commit comments

Comments
 (0)