1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/docs/snippets/kyverno-policy-secretstore.yaml

22 lines
475 B
YAML
Raw Normal View History

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: require-secretstore-aws-provider
spec:
validationFailureAction: Enforce
rules:
- name: require-secretstore-aws-provider
match:
any:
- resources:
kinds:
- SecretStore
- ClusterSecretStore
validate:
message: "You must only use AWS SecretsManager"
pattern:
spec:
provider:
aws:
service: SecretsManager