Is there a state.bin parser


I am trying to see the contents of a snapshot created by Vault raft snapshot save command.
I see that there are 4 files

  • meta.json
  • SHASUMS.sealed
  • state.bin

state.bin has the actual content. But, its format is unknown to me.

Is the format of the binary file available somewhere?

I would like to parse it to see the keys and encrypted values.


Hi @sebinjohn,

It’s a sequence of these protobufs: vault/backend.pb.go at main · hashicorp/vault · GitHub

Here’s the code that writes it: vault/fsm.go at main · hashicorp/vault · GitHub