Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add tables when selecting postgresql as secret storage #28545

Open
FunkForever opened this issue Oct 1, 2024 · 0 comments
Open
Labels
helmchart Helm chart for deploying Vault on Kubernetes. Also consider hashicorp/vault-helm storage/postgresql

Comments

@FunkForever
Copy link

FunkForever commented Oct 1, 2024

Is your feature request related to a problem? Please describe.
According to current documentation (https://github.com/hashicorp/vault/blob/main/website/content/docs/configuration/storage/postgresql.mdx vault cannot create tables automatically. I use helm chart from bank vault to deploy vault (https://github.com/bank-vaults/vault-helm-chart). At the moment I am unfolding the tables manually. When deploying manually, the first installation always fails, because vault initially creates roles, users and a vault database in PostgreSQL, and then creates tables on top of that. Pre-installation in PostgreSQL is difficult because user credentials created before helm deployment will have different passwords and the application will not be able to get into the database (to create tables, the vault_owner_user user is used, which is automatically created when helm is deployed, and the password is put in secrets).

Describe the solution you'd like
Automatically add tables (vault_kv_store, vault_ha_locks) and function (vault_kv_put) when selecting postgresql as secret storage.

@heatherezell heatherezell added storage/postgresql helmchart Helm chart for deploying Vault on Kubernetes. Also consider hashicorp/vault-helm labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helmchart Helm chart for deploying Vault on Kubernetes. Also consider hashicorp/vault-helm storage/postgresql
Projects
None yet
Development

No branches or pull requests

2 participants