dlinks=true data-repo=istio>apiVersion: &#34;security.istio.io/v1beta1&#34;
kind: &#34;AuthorizationPolicy&#34;
metadata:
  name: allow-ns-not-foo
spec:
  action: ALLOW
  rules:
  - from:
    - source:
        notNamespaces: [&#34;foo&#34;]
        # Add the following to explicitly only allow mTLS traffic.
        namespaces: [&#34;*&#34;]
</code></pre><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: &#34;security.istio.io/v1beta1&#34;
kind: &#34;AuthorizationPolicy&#34;
meta