Vault: Misplace unseal keys - VAULT

Created on 11 Dec 2015  路  4Comments  路  Source: hashicorp/vault

I misplace the unseal keys for my vault production deployment. I am not worried about the secrets its holding but need a new vault established on the same machine. I tried doing it by both installing and compiling it from source but no luck as it says * Vault is already initialized.

What is the best way to get a new vault on the same machine (i am using a VM) ? Also curious how VAULT is designed and is it per machine basis ?

Most helpful comment

In order to reinitialize vault you will need to remove the backend storage. How you do it depends on which backend you are using. For instance, if it is the file backend, remove the entire specified path; if it is consul, do a recursive delete on the entire prefix. Alternately, point the path/prefix to a different location.

All 4 comments

In order to reinitialize vault you will need to remove the backend storage. How you do it depends on which backend you are using. For instance, if it is the file backend, remove the entire specified path; if it is consul, do a recursive delete on the entire prefix. Alternately, point the path/prefix to a different location.

Thanks.

Sure.

deleting the "file" backend worked, I also had to stop and start vault service, then re-init worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Luzifer picture Luzifer  路  37Comments

jantman picture jantman  路  29Comments

Miserlou picture Miserlou  路  45Comments

mwitkow picture mwitkow  路  142Comments

emk picture emk  路  79Comments