mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
22 lines
475 B
YAML
22 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
|