-
Notifications
You must be signed in to change notification settings - Fork 98
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
Backup non-utf8 characters #41
Comments
What version of Python? Is the data binary? |
The data is encrypted and that was python 2.7.9 |
I also just attempted on python 3.4 root@ef841a56c77d:/# python --version with the same error |
That's pretty interesting, I can put together a fix, but am concerned about the implications of binary data in the KV without any mime-type or what not to gleam what it is. Will pull something together, I think I'm not far behind you in using Vault. |
Over concern with vault was if someone overwrote an important secret and having no way to recover it. I was going to use consulate to backup the K/V store in a versioned manner. |
Makes sense. I'll try and get something out to address this today. |
Sorry for the delay, this now works for me in Python 2 and 3. I'll be releasing 0.6.0 with this fix soon. |
Looking forward to 0.6.0. :-) |
@gmr Heads up. I've tested with 0e0fef2 and, although the backup gets further, printing out some of the data in the vault/ prefix, it still chokes with:
|
I have a consul-data-dir tarball for you to test with, if that'll help: |
Thanks, I'm trying to get 0.6 out the door right now, testing against your data before doing so. |
Hmm I see, so if it's binary data and trying to backup to JSON, it's blowing up. |
Quickest fix is making a kv flag that allows backups using base64 encoded values. |
Sounds great. For backups, readability is a nice-to-have. :-)
|
I just committed this, will be releasing 0.6 shortly.
(restore has the same flag) |
The tarball was very useful, btw. Here's the dump of it:
|
Solid. Backup and restore of vault now work with --base64. Thank you so much, @gmr. I can sleep in peace now. :-) |
I'm using vaultproject.io from Hashicorp that stores encrypted data in the Key/Value store of consul.
On backup I'm getting
The text was updated successfully, but these errors were encountered: