getsops / getsops/sops

sops 3.8.1 (latest) encrypted files are not working in kubernetes cluster.

Open
#1,414 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/keyservice bug keyservice/pgp
Dominant language
Go
Stars
23.1k
Forks
1.1k
Avg merge
1d 11h
Merged PRs (30d)
9

Description

Hi Team,

We have a problem with the SOPS 3.8.1 version. We are generating the encrypted keys and updating them in our Kubernetes (1.25.11) cluster, which was built on Red Hat servers.

Also, we have another set of AKS (Azure Kubernetes) clusters, and it also has the 1.25.xx Kubernetes version.

3.8.1 - encrypted files are working in AKS clusters.
3.8.1 - not working in on-prem (redhat servers) kubernetes clusters.
3.7.3 - version only working in on-prem clusters.

In my current system, I installed the 3.8.1 version of sops.
why I am  not able to decrypt the file, which was generated using the 3.7.3 sops version.

sops binary is: 3.8.1
File: cps.enc.yaml (3.7.3)

Error:
sops -d cps.enc.yaml > cps.dec.yaml
Failed to get the data key required to decrypt the SOPS file.

Group 0: FAILED
932AB836D93621F24E37F: FAILED
- | could not decrypt data key with PGP key:
| github.com/ProtonMail/go-crypto/openpgp error: could not
| load secring: open /Users/sli/.gnupg/pubring.gpg: no
| such file or directory; GnuPG binary error: failed to
| decrypt sops data key with pgp: gpg: encrypted with 4096-bit
| RSA key, ID C041A, created 2023-02-25
| "aks-test-team"
| gpg: decryption failed: No secret key

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 with cps.enc.yaml and reproduce sops -d cps.enc.yaml > cps.dec.yaml using SOPS 3.8.1, comparing the on-premises Red Hat Kubernetes environment with AKS and the reported 3.7.3 behavior. Review the full PGP/GnuPG error, including the missing keyring and “No secret key” message; done means the version or environment difference is isolated and the decryption behavior is explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes
Domain
devops, infrastructure, 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.