@@ -42,7 +42,7 @@ option go_package="istio.io/api/security/v1beta1";
42
42
// ```
43
43
// For mesh level, put the policy in root-namespace according to your Istio installation.
44
44
//
45
- // Policies to allow both mTLS & plaintext traffic for all workloads under namespace `foo`, but
45
+ // Policies to allow both mTLS and plaintext traffic for all workloads under namespace `foo`, but
46
46
// require mTLS for workload `finance`.
47
47
// ```yaml
48
48
// apiVersion: security.istio.io/v1beta1
@@ -66,8 +66,9 @@ option go_package="istio.io/api/security/v1beta1";
66
66
// mtls:
67
67
// mode: STRICT
68
68
// ```
69
- // Policy to allow mTLS strict for all workloads, but leave port 8080 to
70
- // plaintext:
69
+ // Policy that enables strict mTLS for all workloads, but leaves the port `8080` to
70
+ // plaintext. Note the port value in the `portLevelMtls` field refers to the port
71
+ // of the workload, not the port of the Kubernetes service.
71
72
// ```yaml
72
73
// apiVersion: security.istio.io/v1beta1
73
74
// kind: PeerAuthentication
@@ -84,8 +85,8 @@ option go_package="istio.io/api/security/v1beta1";
84
85
// 8080:
85
86
// mode: DISABLE
86
87
// ```
87
- // Policy to inherit mTLS mode from namespace (or mesh) settings, and overwrite
88
- // settings for port 8080
88
+ // Policy that inherits mTLS mode from namespace (or mesh) settings, and disables
89
+ // mTLS for workload port ` 8080`.
89
90
// ```yaml
90
91
// apiVersion: security.istio.io/v1beta1
91
92
// kind: PeerAuthentication
@@ -137,7 +138,7 @@ message PeerAuthentication {
137
138
// Mutual TLS settings.
138
139
message MutualTLS {
139
140
enum Mode {
140
- // Inherit from parent, if has one. Otherwise treated as PERMISSIVE.
141
+ // Inherit from parent, if has one. Otherwise treated as ` PERMISSIVE` .
141
142
UNSET = 0 ;
142
143
143
144
// Connection is not tunneled.
@@ -158,6 +159,7 @@ message PeerAuthentication {
158
159
MutualTLS mtls = 2 ;
159
160
160
161
// Port specific mutual TLS settings. These only apply when a workload selector
161
- // is specified.
162
+ // is specified. The port refers to the port of the workload, not the port of the
163
+ // Kubernetes service.
162
164
map <uint32 , MutualTLS > port_level_mtls = 3 ;
163
165
}
0 commit comments