"By default, Vault uses a technique known as Shamir's secret sharing algorithm to split the master key into 5 shares, any 3 of which are required to reconstruct the master key. The master key is used to protect the encryption key, which is ultimately used to protect data written to the storage backend."
Question.
Set up:
Datacenter 1
My Application-------> Vault1 for encrypt/decrypt
Datacenter 2
My Application ---> Vault 2 for encrypt/decrypt
Backend: File system
Transit backed for encrypt/decrypt
When DC 1 goes down, DC2 comes up and application should be able to decrypt data encrypted by vault 1 at DC1.
Assumption: 1) All encrypt keys created in vault 1 are also created in vault2 using HTTP end point
e.g. http://127.0.0.1:8200/v1/transit/encrypt/demo1
2) Data storage of application gives access of all encrypted data in DC2 as transit backed do not store data just encrypts in transit.
Child token is used to authenticate encrypt/decrypt i.e X-Vault-Token is a child token
questions:
1) Master keys will be obviously different in two instances of vault.
X-Vault-Token, as I understand, will also be different in vault 1 and vault 2.
Is it true that all encrypted data in DC 1 can be decrypted is DC2 and it's value will remain same?
Usually in cryptography, if cipher keys are same decrypt should give same result. But I have a doubt here because of the role of master key and X-Vault-Token.
Can someone please reply.
Thanks
Hi Niks,
That is essentially correct. It's a little more complex but in effect it's the same :-)
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/7d6d6cfb-3ddf-4480-bebb-c2eb4e12c5f5%40googlegroups.com.