mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
f6475d63b0
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
21 lines
475 B
YAML
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
|