Extracting secrets from configs during gitops
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 47
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the get project and update project CLI entry points and review how full configs and file/stdin input are currently handled. Define the flag behavior for redacting selected nested keys and setting them during updates, including the expected JSON and shell workflows; the work is done when both commands support these cases without exposing or requiring unrelated secrets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100