sops/pgp
Andy Freeland 89e75471cc Fix KMS encryption context for backwards compatibility with SOPS 1.x
In SOPS 1.x, KMS encryption context was stored as a JSON object, but
SOPS 2.0 stored it as a comma-separated list of key/value pairs:

```
$ jq '.sops.kms | .[].context' encrypted-python
{
  "a": "b",
  "c": "d"
}
> jq '.sops.kms | .[].context' encrypted-go
"a:b,c:d"
```

The two outputs are incompatible with each other and caused a stack
trace when reading files encrypted with SOPS 1.x.

This patch restores read and output compatibility with SOPS 1.x.

Fixes #190.
2017-03-22 09:59:51 -07:00
..
keysource.go Fix KMS encryption context for backwards compatibility with SOPS 1.x 2017-03-22 09:59:51 -07:00
keysource_test.go pgp: print errors if they occur in quick test 2016-10-28 10:16:14 -07:00
sops_functional_tests_key.asc PGP tests can now run anywhere 2016-08-25 12:21:10 -07:00