Skip to content

Commit

Permalink
docs: small fix (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Nov 8, 2024
1 parent 919f991 commit c4f03c0
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions website/docs/policies/authorization-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,35 @@ spec:

Notice this policy uses helper functions:

- `WithHeader`
- [envoy.Allowed](../cel-extensions/envoy.md#envoyallowed)

To create an OK http response

- [envoy.Denied](../cel-extensions/envoy.md#envoydenied)

To create a DENIED http response

- [Response](../cel-extensions/envoy.md#response)

To create a check response from an http response

- [WithHeader](../cel-extensions/envoy.md#withheader)

To add a request header

- `WithoutHeader`
- [WithoutHeader](../cel-extensions/envoy.md#withoutheader)

To remove a request header

- `WithResponseHeader`
- [WithResponseHeader](../cel-extensions/envoy.md#withresponseheader)

To add a response header

- `WithBody`
- [WithBody](../cel-extensions/envoy.md#withbody)

To modify the response body

- `WithMetadata`
- [WithMetadata](../cel-extensions/envoy.md#withmetadata)

To add dynamic metadata in the envoy filter chain (this is useful when you want to pass data to another filter in the chain or you want to print it in the application logs)

Expand Down

0 comments on commit c4f03c0

Please sign in to comment.