|
|
|
External authorization service URI. With a gRPC type server, define the URI by using this format: h2://<ext.authz.com>:<port>.
|
|
|
|
Type of external server. Supported values are grpc and http.
|
|
|
|
Transport protocol API version. Supported values are v3 and v2.
|
|
|
|
If true, includes peer certificates in the authorization server request. Supported values are true and false.
|
serviceRequestHeadersToAdd
|
|
|
Defines custom headers and their value to inject into the authorization service request. This parameter is available for HTTP type serves.
|
serviceRequestHeadersToAdd.key
|
|
|
Name of the new header to add.
|
serviceRequestHeadersToAdd.value
|
|
|
Value of the new header to add.
|
serviceResponseUpstreamHeaders
|
|
|
Specifies the headers from the authorization response to add to the client request to the upstream service. Omni Gateway overwrites coexisting headers. This parameter is available for HTTP type serves.
|
serviceResponseUpstreamHeadersToAppend
|
|
|
Specifies the headers from the authorization response to add to the client request to the upstream service. Omni Gateway appends coexisting headers. This parameter is available for HTTP type serves.
|
serviceResponseClientHeaders
|
|
|
Specifies the headers from the authorization response to add to the client response returned from the upstream service. Omni Gateway overwrites existing headers. This parameter is available for HTTP type serves.
|
serviceResponseClientHeadersOnSuccess
|
|
|
Specifies the headers from the authorization response to add to the client response returned from the upstream service if the request is successfully authorized. Omni Gateway overwrites existing headers. This parameter is available for HTTP type serves.
|
|
|
|
Sets a prefix to the value of the Path authorization request header if present.
|
|
|
|
Maximum time in milliseconds the policy waits for a response from the authentication service.
|
|
|
|
Specifies the headers from the client HTTP request to propagate to authorization request. By default, requests sent to gRPC servers include all client headers. Requests sent to HTTP servers don’t include any client headers. If you list allowed headers for either server type, requests include only the listed headers.
|
|
|
|
If true, Omni Gateway caches authorization decisions and skips the call to the authorization service for matching requests. See Authorization Decision Caching.
If enableCache is true and you set any of serviceResponseUpstreamHeaders, serviceResponseUpstreamHeadersToAppend, serviceResponseClientHeaders, or serviceResponseClientHeadersOnSuccess, the policy logs a warning and runs without the cache. These parameters copy headers from the authorization service response, and a cached decision has no response to copy them from.
|
|
Required unless cache.keyQueryParams is set
|
|
Request headers that identify the client. Omni Gateway uses the values of these headers to build the cache key. If you set neither cache.keyHeaders nor cache.keyQueryParams, the policy logs a warning and runs without the cache.
|
|
Required unless cache.keyHeaders is set
|
|
Request query parameters that identify the client. Omni Gateway uses the values of these query parameters to build the cache key. If you set neither cache.keyHeaders nor cache.keyQueryParams, the policy logs a warning and runs without the cache.
|
|
|
|
Time in seconds that Omni Gateway keeps a cached decision. The maximum is 3600, and Omni Gateway reduces larger values to 3600. A value of 0 means decisions are never cached.
|
|
|
|
Maximum number of decisions each worker thread keeps in the cache. When the limit is reached, Omni Gateway discards the least recently used decision.
|
|
|
|
Decisions to cache. Supported values are allowAndDeny, allowOnly, and denyOnly.
|