getsops / getsops/sops

Feature Request: --recursive for inplace encryption/decryption, given config file

Open
#1,204 0 comments 20 reactions 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

Motivation

I would like to use sops for kubernetes in the sense of storing encrypted files in git and then as the normal deploy flow

  1. decrypt everything
  2. build kubernetes yaml files and apply them
  3. encrypt everything

I think this workflow is also useful for many others.

Current Status

So far one has to write a manual for loop with sops -d -i mycurrentfile and sops -e -i mycurrentfile, and ignore if sops throws an error like error loading config: no matching creation rules found.

Feature Request

It would be great if the standard sops command has a --recursive flag which can be combined with -d -i and -e -i to recursively apply the rules in .sops.yaml to all the files in the current directory and subdirectories. If something is not in the .sops.yaml rules, it should not be touched.

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

Start at the standard sops command handling for -d -i and -e -i, then trace how .sops.yaml creation rules are applied. Implement recursive processing for the current directory and subdirectories while leaving files without matching rules untouched; no specific source files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.