"Error: Error getting data key: 0 successful groups required, got 0" /w GCP
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
Hello!
We're using sops to work with files encrypted via GCP KMS, we also use Terraform and terraform provider for sops
While using TF we are getting weird error:
Error: Error getting data key: 0 successful groups required, got 0
Environment:
- Provider: GCP, ServiceAccount with Editor Privileges
- Host: GKE
- Atlantis:
v0.17.0+ Google SDK + Sops installed on container (3.7.0) - Terraform versions:
0.13.7and1.0.5both tested, same error - sops provider: 0.6.3
- sops version:
go.mozilla.org/sops/v3 v3.7.0
I cannot reproduce the issue locally, unfortunately.
More details about the configuration & host in this issue
I've seen people getting into this error with AWS provider but not with GCP.
Any idea how could I debug this further?
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
Begin with usererrors.go around line 38 and the linked terraform-provider-sops issue; compare the GKE/Atlantis GCP KMS environment with a local invocation. Establish a reproducible case for sops v3.7.0, then verify that data-key retrieval is resolved or that the required configuration and diagnostic guidance are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp, go, terraform
- Domain
- cloud, devops, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100