Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Improvements from review

Co-authored-by: Craig Box <craig.box@gmail.com>
  • Loading branch information
ilrudie and craigbox committed May 20, 2024
1 parent 80fc6bb commit 4f5e466
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
11 changes: 5 additions & 6 deletions content/en/docs/ambient/usage/l4-policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,17 @@ The table shown below is based on the following invariants:
1. Redirection to the waypoint is configured correctly.
1. The waypoint is configured with the `istio.io/waypoint-for` label set to `service`.

| Waypoint* | Attachment Style | Scope | Source Identity | Enforced By |
| Waypoint | Attachment Style | Scope | Source Identity | Enforced By |
| --- | --- | --- | --- | --- |
| no | Selector | Pod | client pod | destination ztunnel |
| yes | Selector | Pod | waypoint | destination ztunnel |
| no | _empty**_ | Namespace | client pod | destination ztunnel |
| yes | _empty**_ | Namespace | waypoint | destination ztunnel |
| no | _empty_ | Namespace | client pod | destination ztunnel |
| yes | _empty_ | Namespace | waypoint | destination ztunnel |
| yes | `targetRefs` | Service | client pod | waypoint |
| yes | `targetRefs` | Gateway | client pod | waypoint |

* Whether or not there is already a waypoint is in the traffic path.

** If no Selector or `targetRef` is specified the policy is Namespace scoped.
† Whether or not there is a waypoint in the traffic path.
‡ If no Selector or `targetRef` is specified, the policy is namespace scoped.

## Peer authentication

Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/ambient/usage/l7-features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ This table is based on the following invariants:
1. Redirection to the waypoint is configured correctly.
1. The waypoint is configured with the `istio.io/waypoint-for` label set to `service`.

| Waypoint* | Attachment Style | Resources | Source Identity | Enforced By |
| Waypoint | Attachment Style | Resources | Source Identity | Enforced By |
| --- | --- | --- | --- | --- |
| no | Selector | Pod | n/a | DENY destination ztunnel |
| yes | Selector | Pod | n/a | DENY destination ztunnel |
Expand All @@ -129,6 +129,6 @@ This table is based on the following invariants:
| yes | `targetRefs` | Service | client pod | waypoint |
| yes | `targetRefs` | Gateway | client pod | waypoint |

* Whether or not there is already a waypoint is in the traffic path.
Whether or not there is a waypoint in the traffic path.

** If no Selector or `targetRef` is specified the policy is Namespace scoped.
16 changes: 8 additions & 8 deletions content/en/docs/ambient/usage/policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This table is based on the following invariants:
1. Redirection to the waypoint is configured correctly.
1. The waypoint is configured with the `istio.io/waypoint-for` label set to `service`.

| Waypoint* | Attachment Style | Scope | Source Identity | Enforced By |
| Waypoint | Attachment Style | Scope | Source Identity | Enforced By |
| --- | --- | --- | --- | --- |
| no | Selector | Pod | client pod | destination ztunnel |
| yes | Selector | Pod | waypoint | destination ztunnel |
Expand All @@ -29,7 +29,7 @@ This table is based on the following invariants:
| yes | `targetRefs` | Service | client pod | waypoint |
| yes | `targetRefs` | Gateway | client pod | waypoint |

* Whether or not there is already a waypoint is in the traffic path.
Whether or not there is a waypoint in the traffic path.

## HTTP Enforcement

Expand All @@ -41,16 +41,16 @@ This table is based on the following invariants:
1. Redirection to the waypoint is configured correctly.
1. The waypoint is configured with the `istio.io/waypoint-for` label set to `service`.

| Waypoint* | Attachment Style | Resources | Source Identity | Enforced By |
| Waypoint | Attachment Style | Resources | Source Identity | Enforced By |
| --- | --- | --- | --- | --- |
| no | Selector | Pod | n/a | DENY destination ztunnel |
| yes | Selector | Pod | n/a | DENY destination ztunnel |
| no | | Namespace | n/a | DENY destination ztunnel |
| yes | | Namespace | n/a | DENY destination ztunnel |
| no | Selector | Pod | n/a | destination ztunnel (always DENY) |
| yes | Selector | Pod | n/a | destination ztunnel (always DENY) |
| no | | Namespace | n/a | destination ztunnel (always DENY) |
| yes | | Namespace | n/a | destination ztunnel (always DENY) |
| yes | `targetRefs` | Service | client pod | waypoint |
| yes | `targetRefs` | Gateway | client pod | waypoint |

* Whether or not there is already a waypoint is in the traffic path.
Whether or not there is a waypoint in the traffic path.
## Ingress and Policy Enforcement

If your application is exposed outside the cluster via an Istio ingress gateway, there are additional considerations to be aware of especially concerning enforcement of TCP layer policy in ztunnel.
Expand Down

0 comments on commit 4f5e466

Please sign in to comment.