getsops / getsops/sops

Feature request: Support decrypting multiple files at a time

Open
#945 15 comments 65 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

It would be awesome if sops supported decrypting multiple files at a time.

Use case: For example, say you have multiple encrypted Kubernetes secrets that you'd like to apply all at once, this could be streamlined as:

sops -d secrets/*.enc.yml | kubectl apply -f -

This would be much easier than having to manually specify each file individually, one at a time. This would also require that sops be able to concatenate each file using the --- document delimiter in the resulting YAML stream.

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 sops -d command's handling of input files and trace the existing single-file decryption path. Define how multiple inputs should be separated with YAML document delimiters, then verify that the resulting stream can be consumed by kubectl apply -f - for multiple Kubernetes secrets.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.