You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- to: group="", kind=(Secret|ConfigMap), name=<target-name>
1096
+
- If no valid grant is found, the filter status should update the status to `Accepted=False` with `reason=RefNotPermitted` and a clear message. We should avoid rendering any NGINX configuration in this scenario.
1097
+
1098
+
Example: Grant BasicAuth in app-ns to read a Secret in security-ns
1099
+
```yaml
1100
+
apiVersion: gateway.networking.k8s.io/v1
1101
+
kind: ReferenceGrant
1102
+
metadata:
1103
+
name: allow-basic-auth-secret
1104
+
namespace: security-ns # target namespace where the Secret lives
1105
+
spec:
1106
+
from:
1107
+
- group: gateway.nginx.org
1108
+
kind: AuthenticationFilter
1109
+
namespace: app-ns
1110
+
to:
1111
+
- group: "" # core API group
1112
+
kind: Secret
1113
+
name: basic-auth-users
1114
+
```
1115
+
1116
+
AuthenticationFilter referencing the cross-namespace Secret
1117
+
```yaml
1118
+
apiVersion: gateway.nginx.org/v1alpha1
1119
+
kind: AuthenticationFilter
1120
+
metadata:
1121
+
name: basic-auth
1122
+
namespace: app-ns
1123
+
spec:
1124
+
type: Basic
1125
+
basic:
1126
+
secretRef:
1127
+
namespace: security-ns
1128
+
name: basic-auth-users
1129
+
key: htpasswd
1130
+
realm: "Restricted"
1131
+
```
1132
+
1133
+
Example: Grant JWT file-based JWKS in keys-ns to filter in app-ns
Proxy cache TTL should be configurable and set to a resonable default, reducing periods of stale cached JWKs.
@@ -1099,7 +1207,6 @@ Detailed header breakdown:
1099
1207
- Pragma: "no-cache"
1100
1208
- This header is commonly paired with `Cache-Control: "no-store"` for broad coverage. It acts as an additional signal for older intermediaries that do not honor Cache-Control.
1101
1209
1102
-
1103
1210
### Validation
1104
1211
1105
1212
When referencing an `AuthenticationFilter` in either a HTTPRoute or GRPCRoute, it is important that we ensure all configurable fields are validated, and that the resulting NGINX configuration is correct and secure
0 commit comments