Support render template
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
the whole encrypted sops may contain a lot of secrets, but most of time only need piece of it, hope sops support some template render function, like
create user test login password '{{.pg.users.test.password}}';
sops secrets.yaml --output template=in.sql > out.sql
the out.sql should be
create user test login password 'xyz';
This can also used as inline template
sops secrets.yaml -o go-template="create user test login password '{{.pg.users.test.password}}';" > out.sql
The output should be the same
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
The issue provides no repository files or tests; start by tracing the Go CLI path for encrypted-file output and reviewing how sops parses and exposes decrypted values. Use the file-template and inline go-template examples as the acceptance cases, with both producing the shown SQL output.
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