getsops / getsops/sops

Support render template

Open
#1,145 2 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.