Skip to content

Commit 0a94c2f

Browse files
authored
docs: fixes (#289)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent 06b3edc commit 0a94c2f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

website/docs/policies/authorization-rules.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
status: google.rpc.Status{
9191
code: 7
9292
},
93-
denied_response: envoy.service.auth.v3.DeniedHttpResponse{
93+
http_response: envoy.service.auth.v3.DeniedHttpResponse{
9494
status: envoy.type.v3.HttpStatus{
9595
code: 403
9696
}
@@ -102,7 +102,7 @@ spec:
102102
status: google.rpc.Status{
103103
code: 0
104104
},
105-
ok_response: envoy.service.auth.v3.OkHttpResponse{}
105+
http_response: envoy.service.auth.v3.OkHttpResponse{}
106106
}
107107
```
108108

@@ -114,7 +114,7 @@ This second policy showcases a more advanced example.
114114
apiVersion: envoy.kyverno.io/v1alpha1
115115
kind: AuthorizationPolicy
116116
metadata:
117-
name: demo-policy.example.com
117+
name: demo
118118
spec:
119119
variables:
120120
- name: force_authorized

website/docs/policies/match-conditions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
failurePolicy: Fail
2020
matchConditions:
2121
- name: has-header
22-
expression: has(object.attributes.request.http.headers["x-force-deny"])
22+
expression: object.attributes.request.http.headers[?"x-force-deny"].hasValue()
2323
deny:
2424
- response: >
2525
envoy.Denied(403).Response()

website/docs/reference/json-schemas.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In VS code, simply add a comment on top of your YAML resources.
1717
apiVersion: envoy.kyverno.io/v1alpha1
1818
kind: AuthorizationPolicy
1919
metadata:
20-
name: demo-policy.example.com
20+
name: demo
2121
spec:
2222
variables:
2323
- name: force_authorized

0 commit comments

Comments
 (0)