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

Extracting secrets from configs during gitops #376

Open
5 tasks done
zepatrik opened this issue Sep 5, 2024 · 0 comments
Open
5 tasks done

Extracting secrets from configs during gitops #376

zepatrik opened this issue Sep 5, 2024 · 0 comments
Labels
feat New feature or request.

Comments

@zepatrik
Copy link
Member

zepatrik commented Sep 5, 2024

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 zepatrik added the feat New feature or request. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant