Skip to content

Instantly share code, notes, and snippets.

@chechuironman
Created August 19, 2020 10:46
Show Gist options
  • Save chechuironman/62e661b2c3dc7afb004ddfd47f66e4a8 to your computer and use it in GitHub Desktop.
Save chechuironman/62e661b2c3dc7afb004ddfd47f66e4a8 to your computer and use it in GitHub Desktop.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: allow-auth-mongo
spec:
selector:
matchLabels:
app: mongo
rules:
- from:
- source:
principals:
["cluster.local/ns/cloud-lab/sa/usertoken"]
to:
- operation:
ports: ["27017"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment