Support a one-way encryption scheme
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
I would like a way to support a one-way encryption scheme more seamless than currently possible. Here is the scenario I'm proposing:
I have a KMS service
I have a developer and a target(CICD, K8 cluster, server, etc.).
I'd like to give the developer only access to encrypt a DEK rather than being able to decrypt the DEK and therefore gain access to the encrypted payload and I'd like to give the target access to decrypt.
When a developer needs to add/modify a new secret to the existing file, SOPS would generate a new DEK and encrypt that section of the payload and the DEK and checks it in and does not modify the unmodified secrets. When the target receives this mixed payload, it should be able rencrypt all of the payload with this new DEK.
This is somewhat negates some of the nice usability features of SOPS but can be desirable in certain scenarios. Let me know if this makes sense in context of this project.
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 does not identify files, tests, or entry points. Start by reviewing SOPS's existing encryption and key-management flow, then clarify the proposed developer and target permissions and mixed-payload re-encryption behavior. Done requires an agreed design and implementation path for the one-way workflow.
Written by the indexing model from the issue text.
Assessment
- Domain
- security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100