1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

2 Commits

Author SHA1 Message Date
Adriano
87adc130eb code cleanup [1/5] - go fmt 2019-07-08 09:46:36 -07:00
jpsrn
f2e48b1a2c Fix KMS encryption context handling (#435)
* Fix KMS encryption context handling

The code copying encryption context value strings to a map
containing string pointers was incorrectly getting a pointer to a
string variable which is being re-used by the for loop, causing
all keys to point to the same value string.

* Extract helper method for KmsKey to KMS MasterKey conversion

* Add test for kmsKeyToMasterKey helper function
2019-03-21 10:08:37 -07:00