Skip to content

Commit

Permalink
docs: adds documentation about provider response caching (#2927)
Browse files Browse the repository at this point in the history
Signed-off-by: Nilekh Chaudhari <[email protected]>
  • Loading branch information
nilekhc authored Aug 31, 2023
1 parent a7e3b7c commit d57815b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/docs/externaldata.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ If there is a system error, the provider should return the system error message
Example provider implementation: https://github.com/open-policy-agent/gatekeeper/blob/master/test/externaldata/dummy-provider/provider.go

#### Audit Provider Response Caching
Starting with v3.13+, Gatekeeper supports caching of responses from external data providers. It caches the response based on the `Key` and `Value` received as part of the [`ProviderResponse`](#providerresponse). By default, the cache is invalidated after 3 minutes, which is the default Time-to-Live (TTL). You can configure the TTL using the `--external-data-provider-response-cache-ttl` flag.

## External data for Gatekeeper validating webhook

External data adds a [custom OPA built-in function](https://www.openpolicyagent.org/docs/latest/extensions/#custom-built-in-functions-in-go) called `external_data` to Rego. This function is used to query external data providers.
Expand Down
3 changes: 3 additions & 0 deletions website/versioned_docs/version-v3.13.x/externaldata.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ If there is a system error, the provider should return the system error message
Example provider implementation: https://github.com/open-policy-agent/gatekeeper/blob/master/test/externaldata/dummy-provider/provider.go

#### Audit Provider Response Caching
Starting with v3.13+, Gatekeeper supports caching of responses from external data providers. It caches the response based on the `Key` and `Value` received as part of the [`ProviderResponse`](#providerresponse). By default, the cache is invalidated after 3 minutes, which is the default Time-to-Live (TTL). You can configure the TTL using the `--external-data-provider-response-cache-ttl` flag.

## External data for Gatekeeper validating webhook

External data adds a [custom OPA built-in function](https://www.openpolicyagent.org/docs/latest/extensions/#custom-built-in-functions-in-go) called `external_data` to Rego. This function is used to query external data providers.
Expand Down

0 comments on commit d57815b

Please sign in to comment.