diff --git a/authentication/v1alpha1/istio.authentication.v1alpha1.pb.html b/authentication/v1alpha1/istio.authentication.v1alpha1.pb.html index 33e58067d77..65acfb5a370 100644 --- a/authentication/v1alpha1/istio.authentication.v1alpha1.pb.html +++ b/authentication/v1alpha1/istio.authentication.v1alpha1.pb.html @@ -335,12 +335,13 @@
Examples:
-Policy to enable mTLS for all services in namespace frod
+Policy to enable mTLS for all services in namespace frod. The policy name must be
+default
, and it contains no rule for targets
.
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
- name: mTLS_enable
+ name: default
namespace: frod
spec:
peers:
@@ -352,7 +353,7 @@ Policy
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
- name: mTLS_disable
+ name: productpage_mTLS_disable
namespace: frod
spec:
targets:
@@ -365,7 +366,7 @@ Policy
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
- name: mTLS_enable
+ name: productpage_mTLS_with_JWT
namespace: frod
spec:
target:
diff --git a/authentication/v1alpha1/policy.pb.go b/authentication/v1alpha1/policy.pb.go
index bae66c1d1b4..e8592ef4a31 100644
--- a/authentication/v1alpha1/policy.pb.go
+++ b/authentication/v1alpha1/policy.pb.go
@@ -640,13 +640,14 @@ func (m *OriginAuthenticationMethod) GetJwt() *Jwt {
//
// Examples:
//
-// Policy to enable mTLS for all services in namespace frod
+// Policy to enable mTLS for all services in namespace frod. The policy name must be
+// `default`, and it contains no rule for `targets`.
//
// ```yaml
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_enable
+// name: default
// namespace: frod
// spec:
// peers:
@@ -658,7 +659,7 @@ func (m *OriginAuthenticationMethod) GetJwt() *Jwt {
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_disable
+// name: productpage_mTLS_disable
// namespace: frod
// spec:
// targets:
@@ -671,7 +672,7 @@ func (m *OriginAuthenticationMethod) GetJwt() *Jwt {
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_enable
+// name: productpage_mTLS_with_JWT
// namespace: frod
// spec:
// target:
diff --git a/authentication/v1alpha1/policy.proto b/authentication/v1alpha1/policy.proto
index 31bc82f2cea..916270f9650 100644
--- a/authentication/v1alpha1/policy.proto
+++ b/authentication/v1alpha1/policy.proto
@@ -255,13 +255,14 @@ enum PrincipalBinding {
//
// Examples:
//
-// Policy to enable mTLS for all services in namespace frod
+// Policy to enable mTLS for all services in namespace frod. The policy name must be
+// `default`, and it contains no rule for `targets`.
//
// ```yaml
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_enable
+// name: default
// namespace: frod
// spec:
// peers:
@@ -273,7 +274,7 @@ enum PrincipalBinding {
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_disable
+// name: productpage_mTLS_disable
// namespace: frod
// spec:
// targets:
@@ -286,7 +287,7 @@ enum PrincipalBinding {
// apiVersion: authentication.istio.io/v1alpha1
// kind: Policy
// metadata:
-// name: mTLS_enable
+// name: productpage_mTLS_with_JWT
// namespace: frod
// spec:
// target: