getsops / getsops/sops

Support GCPKMS login via Oauth token

Open
#1,082 2 comments 6 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

We are using sops to decrypt sensitive data in a CI pipeline using GCPKMS. Currently we log into Google via a credentials file that gets inserted at GOOGLE_APPLICATION_CREDENTIALS. We'd like to move away from the credentials file in favour of OIDC login and a JWT token. However, sops does not appear to be picking up the credentials when gcloud logs in in this manner.

Would it be possible to check the environment for a GOOGLE_OAUTH_TOKEN variable or similar and then use it to pass a WithTokenSource option to the KMS service creation?

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 by locating the GCPKMS service creation and the existing GOOGLE_APPLICATION_CREDENTIALS handling. Trace how a gcloud OIDC login exposes GOOGLE_OAUTH_TOKEN or a similar token, then verify that the token reaches KMS authentication and that CI decryption works without a credentials file.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, go
Domain
authentication, cloud, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.