Skip to content

Commit 77fd977

Browse files
AlexFenlonspencerugbo
authored andcommitted
update crds validation
1 parent 0df1e85 commit 77fd977

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

config/crd/bases/k8s.nginx.org_policies.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,9 @@ spec:
882882
- clientID
883883
- issuer
884884
type: object
885+
x-kubernetes-validations:
886+
- message: trustedCertSecret can be set only if sslVerify is true
887+
rule: (self.sslVerify == true) || (self.sslVerify == false && !has(self.trustedCertSecret))
885888
rateLimit:
886889
description: The rate limit policy controls the rate of processing
887890
requests per a defined key.

deploy/crds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,9 @@ spec:
10531053
- clientID
10541054
- issuer
10551055
type: object
1056+
x-kubernetes-validations:
1057+
- message: trustedCertSecret can be set only if sslVerify is true
1058+
rule: (self.sslVerify == true) || (self.sslVerify == false && !has(self.trustedCertSecret))
10561059
rateLimit:
10571060
description: The rate limit policy controls the rate of processing
10581061
requests per a defined key.

docs/crd/k8s.nginx.org_policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The `.spec` object supports the following fields:
134134
| `oidcNative.logoutTokenHint` | `boolean` | Adds the id_token_hint argument to the Provider's Logout Endpoint when redirecting user during logout. Required by some providers. |
135135
| `oidcNative.logoutURI` | `string` | Defines the URI path for initiating session logout. Upon session termination, the user is redirected to the Provider's logout endpoint or the post logout page. |
136136
| `oidcNative.pkce` | `string` | Explicitly enables or disables PKCE. By default, PKCE is automatically enabled based on OpenID Provider metadata. Allowed values: `"on"`, `"off"`. |
137-
| `oidcNative.postLogoutRedirectURI` | `string` | Defines the path where the user is redirected after logout. Must be a path on the same VirtualServer host — absolute URLs are not supported. When set, NIC also auto-generates an unauthenticated location at this path serving a plain-text confirmation response. |
137+
| `oidcNative.postLogoutRedirectURI` | `string` | Defines the path where the user is redirected after logout. Must be a path on the same host — absolute URLs are not supported. When set, NIC also auto-generates an unauthenticated location at this path serving a plain-text confirmation response. If multiple OIDCNative providers on the same host set the same path, only one auto-generated location is rendered; providers whose other generated locations (redirectURI, or the internal IdP proxy location) collide are rejected instead. |
138138
| `oidcNative.proxyBufferSize` | `string` | Buffer size used when proxying requests to the OpenID Provider. Applies to `proxy_buffer_size` and each buffer in `proxy_buffers`. Default is `32k`. |
139139
| `oidcNative.redirectURI` | `string` | Allows overriding the default redirect URI. The module defaults to /oidc_callback. |
140140
| `oidcNative.scope` | `string` | List of OpenID Connect scopes, space-separated. The scope openid is always required. Example: "openid profile email". The module defaults to "openid". |

0 commit comments

Comments
 (0)