getsops / getsops/sops

Decryption fails for some data

Open
#367 19 comments 2 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

I have encrypted a json file but cannot decrypt it again and get the error
Could not marshal tree: No binary data found in tree

Unfortunately I cannot share the json contents. Its a Google Service Account private key. However its likely it will also fail for other json files of this type as they have the same format and similar data.

sops 3.0.5 (latest)

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 reproducing the failure with a Google Service Account private-key JSON file, then inspect where the “Could not marshal tree: No binary data found in tree” error is produced. Done means the affected JSON can be encrypted and decrypted successfully, with a regression test covering the format.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, go
Domain
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.