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
Moritz Johner f6475d63b0
feat: add security best practices doc, restructure guides section (#2290)
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
2023-05-11 08:21:30 +02:00

21 lines
475 B
YAML

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