Skip to content

Commit 79b957d

Browse files
committed
Update jwks_uri internal uri
1 parent a86a3ae commit 79b957d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/proposals/authentication-filter.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This portion also contains:
5555
- Example HTTPRoutes
5656
- Examples for Local & Remote JWKS configration
5757
- Example NGINX configuration for both Local & Remote JWKS
58-
- Example of additioanl optional fields
58+
- Example of additional optional fields
5959

6060
### Golang API
6161

@@ -104,7 +104,6 @@ type AuthenticationFilterList struct {
104104
// AuthenticationFilterSpec defines the desired configuration.
105105
// Exactly one of Basic or JWT must be set according to Type.
106106
// +kubebuilder:validation:XValidation:message="for type=Basic, spec.basic must be set and spec.jwt must be empty; for type=JWT, spec.jwt must be set and spec.basic must be empty",rule="self.type == 'Basic' ? self.basic != null && self.jwt == null : self.type == 'JWT' ? self.jwt != null && self.basic == null : false"
107-
108107
// +kubebuilder:validation:XValidation:message="type 'Basic' requires spec.basic to be set. All other spec types must be unset",rule="self.type == 'Basic' ? self.type != null && self.jwt == null : true"
109108
// +kubebuilder:validation:XValidation:message="type 'JWT' requires spec.jwt to be set. All other spec types must be unset",rule="self.type == 'JWT' ? self.type != null && self.basic == null : true"
110109
// +kubebuilder:validation:XValidation:message="when spec.basic is set, type must be 'Basic'",rule="self.basic != null ? self.type == 'Basic' : true"
@@ -790,7 +789,7 @@ http {
790789

791790
These are some directives the `Remote` mode uses over the `File` mode:
792791

793-
- `auth_jwt_key_request`: When using the `Remote` mode, this is used in place of `auth_jwt_key_file`. This will call the `internal` NGINX location `/jwks_uri` to redirect the request to the external auth provider (e.g. KeyCloak)
792+
- `auth_jwt_key_request`: When using the `Remote` mode, this is used in place of `auth_jwt_key_file`. This will call the `internal` NGINX location `/_ngf-internal_jwks_uri` to redirect the request to the external auth provider (e.g. KeyCloak)
794793
- `proxy_cache_path`: This is used to configuring caching of the JWKS after an initial request allowing subseuqnt requests to not request re-authenticaiton for a time
795794

796795
```nginx
@@ -822,7 +821,7 @@ http {
822821
location /v2 {
823822
auth_jwt "Restricted";
824823
# Remote JWKS
825-
auth_jwt_key_request /jwks_uri;
824+
auth_jwt_key_request /_ngf-internal_jwks_uri;
826825
827826
# Optional: key cache duration
828827
auth_jwt_key_cache 10m;
@@ -859,7 +858,7 @@ http {
859858
}
860859
861860
# Internal endpoint to fetch JWKS from IdP
862-
location = /jwks_uri {
861+
location = /_ngf-internal_jwks_uri {
863862
internal;
864863
# Enable caching of JWKS
865864
proxy_cache jwks_jwt_auth;

0 commit comments

Comments
 (0)