Hi Tim,
Broadly speaking this should be fine -- the way to backup Vault is to
back up your underlying storage. There are some potential gotchas that
you should be aware of:
1) You can't do this online. You'll need to shut down Vault, do the
rollback, and start it up again.
2) If your backup has old versions of unseal keys (you've rekeyed
since) you'll need those old unseal keys or you won't be able to
unseal
3) Revocations that have occurred since will not appear to have been
processed. This can lead to unexpected consequences, because if
attempting to revoke such a lease leads to failure (e.g. the
third-party database you're trying to remove a user from), Vault will
keep attempting to perform this revocation. In most cases, this is
probably not an issue, but if S3 versioning supports it, my
recommendation would generally be to do the following:
store value 1
store value 2
stop Vault
note the current version (B)
roll back S3 to version A
start Vault
read value 1
stop Vault
roll back to version B
start Vault
store value 1
From a quick glance at S3 versioning it looks like it's per-bucket.
Depending on which backend you're using, you might be able to do
something a bit more surgical. For instance, if you don't care about
the current version of the value, you could stop Vault, look through
S3 to find the path (the paths are in plain text, although the mount
has a UUID, so you'll have to look to see which mount it is), then
restore only that one object, then start Vault.
Best,
Jeff
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
>
https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues:
https://github.com/hashicorp/vault/issues
> IRC: #vault-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vault" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
vault-tool+...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/vault-tool/c99e6da7-a1d7-4bd2-9182-77dc994ef5e7%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.