Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Last active March 2, 2022 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infamousjoeg/82a391faf5836fd1c9cafae5a4f83b2b to your computer and use it in GitHub Desktop.
Save infamousjoeg/82a391faf5836fd1c9cafae5a4f83b2b to your computer and use it in GitHub Desktop.
authn-k8s Kubernetes Secrets Application Policy Template
- !policy
id: k8s-secrets-demo
body:
- &secrets
- !variable secret1
- !variable secret2
- !host
annotations:
authn-k8s/namespace: namespace
authn-k8s/service-account: k8ssecrets-account
authn-k8s/authentication-container-name: cyberark-secrets-provider
- !permit
role: !host
privileges: [ read, execute ]
resources: *secrets
- !permit
role: !host k8s-secrets-demo
privileges: [ read, authenticate ]
resources: !webservice conjur/authn-k8s/prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment