diff --git a/api/v1alpha1/authorization_types.go b/api/v1alpha1/authorization_types.go index 5550498c2dc..c52a2063b36 100644 --- a/api/v1alpha1/authorization_types.go +++ b/api/v1alpha1/authorization_types.go @@ -13,8 +13,7 @@ type Authorization struct { // and the rest will be skipped. // // For example, if there are two rules: the first rule allows the request - // and the second rule denies it, - //when a request matches both rules, it will be allowed. + // and the second rule denies it, when a request matches both rules, it will be allowed. // // +optional Rules []Rule `json:"rules,omitempty"` diff --git a/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_securitypolicies.yaml b/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_securitypolicies.yaml index 48ba4c0bdb5..9d3a7db5115 100644 --- a/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_securitypolicies.yaml +++ b/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_securitypolicies.yaml @@ -68,8 +68,7 @@ spec: For example, if there are two rules: the first rule allows the request - and the second rule denies it, - when a request matches both rules, it will be allowed. + and the second rule denies it, when a request matches both rules, it will be allowed. items: description: Rule defines the single authorization rule. properties: diff --git a/site/content/en/latest/api/extension_types.md b/site/content/en/latest/api/extension_types.md index 4571932d059..b98e2d2d7e2 100644 --- a/site/content/en/latest/api/extension_types.md +++ b/site/content/en/latest/api/extension_types.md @@ -182,7 +182,7 @@ _Appears in:_ | Field | Type | Required | Description | | --- | --- | --- | --- | -| `rules` | _[Rule](#rule) array_ | false | Rules defines a list of authorization rules.
These rules are evaluated in order, the first matching rule will be applied,
and the rest will be skipped.

For example, if there are two rules: the first rule allows the request
and the second rule denies it,
when a request matches both rules, it will be allowed. | +| `rules` | _[Rule](#rule) array_ | false | Rules defines a list of authorization rules.
These rules are evaluated in order, the first matching rule will be applied,
and the rest will be skipped.

For example, if there are two rules: the first rule allows the request
and the second rule denies it, when a request matches both rules, it will be allowed. | | `defaultAction` | _[RuleActionType](#ruleactiontype)_ | false | DefaultAction defines the default action to be taken if no rules match.
If not specified, the default action is Deny. |