example,</p><p>The following authorization policy applies to workloads containing label
&ldquo;app: httpbin&rdquo; in namespace bar.</p><pre><code class=language-yaml>apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
 name: policy
 namespace: bar
spec:
 selector:
   matchLabels:
     app: httpbin
</code></pre><p>The following authorization policy applies to all workloads in namespace foo.</p><pre><code class=language-yaml>apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolic