Skip to content
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

Export Error '<' looking for beginning of value OR missing vaultaddr parameter #82

Closed
Yasinmohammed007 opened this issue Apr 27, 2022 · 4 comments

Comments

@Yasinmohammed007
Copy link

URL: http:https://207.254.25.36:8000/secrets/kv/secret/
it has subfolders in it, but for testing i used this http:https://207.254.25.36:8000/secrets/kv/secret/android/dev/keys

Cmd Executed:
./medusa export secret/android/dev/ -k --address="http:https://207.254.25.36:8000/secrets/kv/secret/android/dev/"

./medusa export secret/android/dev/ -k --address="http:https://207.254.25.36:8000/secrets/kv/"

let me know if i am passing the urlFlag or VaultPath wrong
Error:
invalid character '<' looking for beginning of value
Error: invalid character '<' looking for beginning of value

apart from the above error, what exactly this mountpathMean when importing?

@Yasinmohammed007 Yasinmohammed007 changed the title Export Error < Looking for beginnig of value Export Error '<' looking for beginning of value OR missing vaultaddr parameter Apr 27, 2022
@Yasinmohammed007
Copy link
Author

Adding the Vault UI for reference, if possible help with the exact path/URL to pass in flags.
vault

@Yasinmohammed007
Copy link
Author

@gramosg @vanveele @jonasvinther Can you please help me out here.

@gramosg
Copy link
Contributor

gramosg commented Apr 28, 2022

@Yasinmohammed007 Maybe not related to your error but the address argument should not include the path to the secret, just the host (in your case, http:https://207.254.25.36:8000).

Also, Vault 0.10.4 is almost 4 years old. You should upgrade to one of the latest versions just in case.

@jonasvinther
Copy link
Owner

Hi @Yasinmohammed007
I agree with @gramosg. That Vault version is really old, and I have never tested Medusa on such a old version of Vault.
Also I can see that kv2 was released in version 0.10. So do you know if you are using kv1 or kv2. If you are using kv1 yo need to specify that using the --engine-type parameter.

I hope that this brings you somewhere otherwise let me know. And please upgrade your Vault instance. Vault is where you store your secrets, you want it to be secure and not full of potential risks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants