getsops / getsops/sops

sops hangs until gpg agent restarted (mac)

Open
#338 6 comments 3 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

what: sops decrypts a file once, on further decryption attempts, sops hangs until gpg agent is restarted.

setup:

  • exported SOPS_PGP_FP
  • created the file "newtest.json" with sops newtest.json
  • ran sops -d newtest.json
  • the decrypted output appears
  • ran sops -d newtest.json again, it hangs indefinitely without ouput
  • ctrl+c sops to stop it
  • kill gpg-agent with gpgconf --kill gpg-agent
  • sops -d newtest.json works again
  • repeats hanging on decryption

is there a better way to debug this?

versions:
macOS 10.13.3
sops 3.0.3 (latest)
gpg (GnuPG/MacGPG2) 2.2.3

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

Reproduce the issue with newtest.json using sops -d twice on macOS 10.13.3, with SOPS_PGP_FP set, and observe the gpg-agent behavior. Compare the first successful decryption with the subsequent hang and use gpgconf --kill gpg-agent only as the reported recovery step; done means repeated decryptions no longer hang or the cause is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, macos
Domain
cli, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.