diff --git a/.gitignore b/.gitignore index 58fc5b0..fba43ea 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ *.env *artifacts* *k8s-admin* -*vault-keys.json* +vault-keys.json *config.yaml* \ No newline at end of file diff --git a/pkg/resources/templates/secrets-storage/vault-keys.json.tmpl b/pkg/resources/templates/secrets-storage/vault-keys.json.tmpl new file mode 100644 index 0000000..c52153f --- /dev/null +++ b/pkg/resources/templates/secrets-storage/vault-keys.json.tmpl @@ -0,0 +1,8 @@ +{ + "keys": [ + {{- range $index, $key := .Modules.SecretsStorage.UnsealKeys }} + "{{ $key }}", + {{- end }} + ], + "root_token": "{{ .Modules.SecretsStorage.RootToken }}" +} \ No newline at end of file