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

Change Vault backend to something other than filesystem #37

Open
6 tasks
deniseyu opened this issue Nov 8, 2019 · 1 comment
Open
6 tasks

Change Vault backend to something other than filesystem #37

deniseyu opened this issue Nov 8, 2019 · 1 comment

Comments

@deniseyu
Copy link
Contributor

deniseyu commented Nov 8, 2019

We used to use an old version of Vault in BOSH prod, which may have used the filesystem backend as a default option. While it technically works, we may want to shift to a less error-prone storage backend because it is all of our production secrets after all, and it would be quite annoying to have to recover from someone accidentally running rm rf /vault for example while SSH'd into the VM/container.

All of the possible backends are documented here: https://www.vaultproject.io/docs/configuration/storage/index.html

We don't really need highly consistent/replicated/sharded/etc persistence so a lot of these strategies are overkill, but I'd say that the one feature we could benefit from is being able to easily make snapshots for backing up and restoring.

We already use GCS so my instinct would be to just pick that one, but this story includes room for doing some investigation.

An annoying thing we will have to do once is perform a data migration into the new schema. As far as I can tell there is no officially-supported way to migrate data between different backends.

  • Research and choose a new backend
  • Backup current prod Vault data
  • Set up the new backend
  • Update operating docs github.com/pivotal/concourse-ops wiki
  • Restore old secrets into new backend
  • Decommission old backend
@pivotal-bin-ju
Copy link
Contributor

pivotal-bin-ju commented Dec 1, 2019

Hi @deniseyu ,
Please see my comment on #44 here, would cloudsql be better in term of backup/restore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants