getsops / getsops/sops

"Error: Error getting data key: 0 successful groups required, got 0" /w GCP

Open
#934 0 comments 10 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

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

Relevant code

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.7 and 1.0.5 both 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.