File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
manifests/deployment-service Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -881,9 +881,11 @@ Resources:
881
881
- !GetAtt DeploymentSecretKey.Arn
882
882
{{- else }}
883
883
Resource : " *"
884
+ {{- if and (eq .Cluster.ConfigItems.deployment_secret_decrypt_any "false") (ne .Cluster.Environment "e2e") }}
884
885
Condition :
885
886
StringLike :
886
887
" kms:RequestAlias " : " alias/deployment-secret"
888
+ {{- end }}
887
889
{{- end }}
888
890
- Action :
889
891
- ' sts:AssumeRole'
Original file line number Diff line number Diff line change @@ -1036,3 +1036,4 @@ cronjob_time_zone_enabled: "true"
1036
1036
# or not. When set to a value != "true" the key will be removed from the stack.
1037
1037
# TODO: remove after migrating out of all cluster stacks.
1038
1038
deployment_secret_key_managed : " true"
1039
+ deployment_secret_decrypt_any : " true"
Original file line number Diff line number Diff line change 32
32
image : " container-registry.zalando.net/teapot/deployment-controller:master-163"
33
33
args :
34
34
- " --config-namespace=kube-system"
35
- {{- if ne .Cluster.ConfigItems.deployment_secret_key_managed "true " }}
35
+ {{- if eq .Cluster.ConfigItems.deployment_secret_decrypt_any "false " }}
36
36
- " --decrypt-kms-alias-arn=arn:aws:kms:{{ .Cluster.Region }}:{{ .Cluster.InfrastructureAccount | getAWSAccountID }}:alias/deployment-secret"
37
37
{{- end }}
38
38
env :
You can’t perform that action at this time.
0 commit comments