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

Raft storage #10

Open
meraj-kashi opened this issue Feb 22, 2022 · 4 comments
Open

Raft storage #10

meraj-kashi opened this issue Feb 22, 2022 · 4 comments

Comments

@meraj-kashi
Copy link

Hi,

Thanks for developing the tool. Any idea about how to use the tool for Vault with Raft storage?
I found the recovey_key in raft db, but the value is a binary and I can't use the tool. Did you test or have any tips?

Br,
Meraj

@il-Putzki
Copy link

Hi @meraj-kashi
Convert Raft into Filesystem storage. I tried and it worked

@levid0s
Copy link

levid0s commented Dec 14, 2022

Can I convert a copy of the Vault instance, or do I need to migrate the backend of the live cluster for this to work?

@mju
Copy link

mju commented May 2, 2023

Can I convert a copy of the Vault instance, or do I need to migrate the backend of the live cluster for this to work?

https://developer.hashicorp.com/vault/docs/commands/operator/migrate#run-the-migration says the vault instance will have to be offline when you run the migration command. I imagine you can do this on a copy.

@mju
Copy link

mju commented May 2, 2023

Hi @meraj-kashi Convert Raft into Filesystem storage. I tried and it worked

I can confirmed that this will work. Below is an example migration config and command.
You will have to run this on a node.
You should be able to find the raft config from your vault config.

cat > migrate.hcl <<'EOF'
storage_source "raft" {
  path = "..."
  node_id = "..."
}
cluster_addr = "..."

storage_destination "file" {
  path = "/a/new/dir"
}
EOF

vault operator migrate -config migrate.hcl

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

4 participants