- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetNamespaceMutualTLSMode (0.25 sec)
-
pilot/pkg/model/authentication.go
} } } // GetNamespaceMutualTLSMode returns the MutualTLSMode as defined by a namespace or mesh level // PeerAuthentication. The return value could be `MTLSUnknown` if there is no mesh nor namespace // PeerAuthentication policy for the given namespace. func (policy *AuthenticationPolicies) GetNamespaceMutualTLSMode(namespace string) MutualTLSMode {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 10.1K bytes - Viewed (0) -
pilot/pkg/model/authentication_test.go
t.Fatalf("want %+v\n, but got %+v\n", printConfigs(tc.wantPeerAuthn), printConfigs(got)) } if got := policies.GetNamespaceMutualTLSMode(tc.workloadNamespace); got != tc.wantNamespaceMutualTLS { t.Fatalf("want %s\n, but got %s\n", tc.wantNamespaceMutualTLS, got) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 45.1K bytes - Viewed (0) -
pilot/pkg/model/push_context.go
} } } // 2. check mTLS settings from beta policy (i.e PeerAuthentication) at namespace / mesh level. // If the mode is not unknown, use it. if serviceMTLSMode := ps.AuthnPolicies.GetNamespaceMutualTLSMode(service.Attributes.Namespace); serviceMTLSMode != MTLSUnknown { return serviceMTLSMode } // Fallback to permissive. return MTLSPermissive }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0)