Repository navigation
Conversation
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
Signed-off-by: Rasmus Kock Thygesen <rasmus.thygesen.privat@gmail.com>
winrarr
force-pushed
the
feat/plugin-sdk
branch
from
November 25, 2026 10:38
5e0bf3c to
d595559
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an opt-in external Go key-provider API to SOPS. Providers become independently distributed executables, while SOPS continues to own file encryption, data-key orchestration, key groups, and Shamir secret sharing.
API and data model
sops.plugin.v1gRPC protocol and public Go SDK. The provider contract is intentionally limited toWrapandUnwrap.Wrapwith the key entry and pass it to laterWrapandUnwrapcalls. This supports metadata-aware rewrapping and key rotation without making SOPS understand provider-specific formats.Runtime and policy
Test coverage
Add 19 local/mock provider fixtures exercising varied provider patterns, including offline/local keys, mock remote KMS, keyrings, rewrapping, approval/audit flows, and threshold shares. The tests cover the SDK and SOPS integration rather than live cloud services, including process reuse, cancellation, timeout eviction, concurrent calls, Shamir share sizes, metadata round-trips, typed-value preservation across stores, and key-service behavior. Age passphrase tests use the deterministic test passphrase provider instead of the developer's GPG agent.
Validation
go test ./... -count=1 -timeout=20mgo test -race ./... -count=1 -timeout=20mgo test ./plugin -run '^TestRuntimeEvictsPluginAfterInvocationTimeout$' -count=15go vet ./...git diff --checkThe full test suites were run with the repository's PGP test key imported into an isolated
GNUPGHOME.Feedback requested
Please comment on whether the two-operation provider contract and metadata-based rewrapping model are a good fit, whether the timeout/eviction behavior is appropriate, and whether the fixture breadth belongs in this initial PR or should be narrowed.