Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fixes #289

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/docs/policies/authorization-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
status: google.rpc.Status{
code: 7
},
denied_response: envoy.service.auth.v3.DeniedHttpResponse{
http_response: envoy.service.auth.v3.DeniedHttpResponse{
status: envoy.type.v3.HttpStatus{
code: 403
}
Expand All @@ -102,7 +102,7 @@ spec:
status: google.rpc.Status{
code: 0
},
ok_response: envoy.service.auth.v3.OkHttpResponse{}
http_response: envoy.service.auth.v3.OkHttpResponse{}
}
```

Expand All @@ -114,7 +114,7 @@ This second policy showcases a more advanced example.
apiVersion: envoy.kyverno.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: demo-policy.example.com
name: demo
spec:
variables:
- name: force_authorized
Expand Down
2 changes: 1 addition & 1 deletion website/docs/policies/match-conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
failurePolicy: Fail
matchConditions:
- name: has-header
expression: has(object.attributes.request.http.headers["x-force-deny"])
expression: object.attributes.request.http.headers[?"x-force-deny"].hasValue()
deny:
- response: >
envoy.Denied(403).Response()
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/json-schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In VS code, simply add a comment on top of your YAML resources.
apiVersion: envoy.kyverno.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: demo-policy.example.com
name: demo
spec:
variables:
- name: force_authorized
Expand Down
Loading