-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Unable to import an encrypted backup #48
Comments
Hi @sebPomme , First of all can you verify that the export and import is working when exporting using plain text? Next I see that it's failing when it's trying to read line 1 in your export file encrypted-vault-secrets.txt. If you open the file in a text editor you should see that the file contains only two lines. Becuase it look's like it cannot read the first line of the file. |
Hi, Thanks for this reply,
✅ I created a new dataset and test with it.
Is this help ? |
Thank you for providing more information. Does the exported file also contains exact two lines when you do the encrypted export of the kv-certificates_backup dataset? |
I wrote Actually I have 544 secret in {
"*.domain.name": {
"cert": "-----BEGIN CERTIFICATE-----\n.........",
"chain": "\n-----BEGIN CERTIFICATE-----\n.......",
"fullchain": "-----BEGIN CERTIFICATE-----\n.......",
"key": "-----BEGIN RSA KEY-----\n........",
"owner": "software-name",
"timestamp": ""
}
} And yeah, with the encrypted export the file have only 2 lines. pomme@requin medusa % ./bin/medusa export kv-certificates_backup --token="$(vault print token)" --encrypt true --public-key="public-key.pem" --output="encrypted-vault-secrets.txt"
pomme@requin medusa % wc -l encrypted-vault-secrets.txt
2 encrypted-vault-secrets.txt |
I don't know if it can help, but I just try something:
But it's works with a light-way volume:
|
I'm closing this one since I haven't been able to reproduce. I think that you have some special data some where in your Vault that Medusa is not able to handle. Feel free to re-open if you have any additional information that can help me reproduce this error. |
I'm facing the same issue with medusa v0.3.1
|
Hello, I just follow the README.md, and I can't re-import the data.
I use medusa v0.2.2 .
I can figure what I m doing wrong, do you have an idea ?
Seb 🍎
The text was updated successfully, but these errors were encountered: