検索

返信元:

Idea: An #opensource #secrets manager, with a fancy web UI like #Hashicorp #Vault, that can organize secrets by folders and deployment target (dev, staging, prod) and the CLI tool can translate those folders, keys, and values into *structured* YAML or JSON output in addition to environment variables. Additionally, it can *import* secrets into new projects with structure YAML/JSON into the format. Something like this for the data backend: https://github.com/smithjm/etcd-export
返信 3 · Renote 0
I half sort of found a way to do this with #Infisical and #yq, by using props annotation and parsing it through yq:

infisical export --env=dev -fyaml | yq -pprops -o yaml

This get it's into properly formatted yaml. yq can also do the same in the opposite direction to import back into infisical.

And to support having .'s in keys, use \\x2e and pass it through echo:

echo -e "$(infisical export --env=dev -fyaml | yq -pprops -o yaml)"
  • 4e567c9dc5414391.png
返信 0 · Renote 0