Closed nikita-petko closed 2 years ago
Hi @nkpetko Can you post the structure of the secret that doesn't work? Please remember to anonymize any values :) I would expext that the secrets on both release and debug looks equal in structure but contains different values.
It's a KV of the following for both:
KEY -------- VALUE GroupName -> String Name -> String Updated -> String (In date-time format)
If anything else is needed please ask
I get this error as well for many secrets, for example:
xxx:
apikey-auth:
zzzzz:
{
"API Address": null,
"Header 1": "asd",
"Header 2": null,
"Header 3": null,
"Value 1": "asd",
"Value 2": null,
"Value 3": null
}
maybe null value is the problem?
@liyaka I figured it may have been a null value issue, I have a few KVs in the release side that are null but none in the debug side.
I will look into it a bit more.
@nkpetko is there a chance it will be fixed any time soon?
@nkpetko is there a chance it will be fixed any time soon?
@liyaka if I can find the root issue, and also @jonasvinther pulls a PR I make then soon
If we can verify that the issue is a null
value, then It would make it much easier to make a fix for it. @liyaka I will try to import your datastructure today or tomorrow and see if I can reproduce the error. A fix should be easy to implement if that's the case.
@jonasvinther i did more tests, it is definitely the null issue - in all cases when i had at least one secret that had a null inside, i got this error. An example for a secret with null: { "Name": "hhh", "Value": null }
@liyaka and @nkpetko please give release 0.3.3 a spin. I think I have managed to handle the nil values now. At least it works for my test cases.
@jonasvinther Thank you! will test it later today
@jonasvinther Works like charm! Thanks again :)
When attempting export a specific path on vault, it will throw the following error:
There are 2 paths that have data in them
/secret/teams/neteng/grid-service-v2/release
-- throws/secret/teams/neteng/grid-service-v2/debug
-- can be exported, despite it having the same KV layoutThe export command is as follows:
./medusa export secret/teams/neteng/grid-service-v2/release --address="https://chi1-vault.simulprod.com" --token="s.token" --format="json" --insecure
It can export /debug but no /release
If you need any more information, please ask