jonasvinther / medusa

A cli tool for importing and exporting Hashicorp Vault secrets
MIT License
483 stars 62 forks source link

JSON switch disabled in Vault UI after secrets imported( in yaml or json file) #119

Closed songlet closed 1 year ago

songlet commented 1 year ago

Hi, Medusa is a great tool and I enjoy the great convenience it brought to me when transfer secrets between different Vault instances time to time.

I just noticed that JSON switch disabled after I import the secrets from another Vault server.

Here is the procedures to re-produce my scenario:

1.Export a specific group of secrets to yaml or json file medusa export secret2/cicd/env_vars/ --format="yaml" --insecure -o env_vars.yaml

2.Update env_vars.yaml with bundle of changes and import back medusa import secret2 env_vars.yaml

  1. Go to Vault UI and JSON switch is disabled and can't switch on

图片

Vault Version:1.11.2 Medusa Version:0.3.6

Thank you.

songlet commented 1 year ago

This issue is resolved as there's a typo error in JSON file-not add "" for true 图片