cli icon indicating copy to clipboard operation
cli copied to clipboard

Extracting secrets from configs during gitops

Open zepatrik opened this issue 1 year ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

When getting the full config, it includes secrets and other keys that might not be exposed in a repository directly.

Similarly, the secrets have to be transmitted for updates nested in the config.

Describe your ideal solution

A CLI flag to redact certain keys on get project, and a flag to set keys on update project.

Workarounds or alternatives

Use the surrounding shell for scripting, e.g.

ory get project --format json | jq '.my.secret.a = "<redacted>" | .other.list_of.[].secrets = "<redacted>"' > output.json

jq ".my.secret.a = $SECRET_FROM_ENV" input.json | ory update project --file -

Version

v1.0.0

Additional Context

No response

zepatrik avatar Sep 05 '24 07:09 zepatrik