add auto init/unseal for vault

This commit is contained in:
2024-05-06 00:00:46 +03:00
parent e6689a1dda
commit 0d15ebc2b2
2 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View File

@@ -3,5 +3,5 @@
*.env *.env
*artifacts* *artifacts*
*k8s-admin* *k8s-admin*
*vault-keys.json* vault-keys.json
*config.yaml* *config.yaml*

View File

@@ -0,0 +1,8 @@
{
"keys": [
{{- range $index, $key := .Modules.SecretsStorage.UnsealKeys }}
"{{ $key }}",
{{- end }}
],
"root_token": "{{ .Modules.SecretsStorage.RootToken }}"
}