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

17 Commits

Author SHA1 Message Date
Adriano
3fc4b0a723 code cleanup [2/5] - go vet 2019-07-08 09:47:18 -07:00
James Robson
dfa150bf75 Add multidoc encrypt/decrypt for YAML sources 2018-11-21 09:00:49 -07:00
Joost Cassee
eadef71162 Rename "env" store to "dotenv" 2018-10-29 21:50:13 +01:00
Joost Cassee
0cc9bd3ebc Add .env store implementation 2018-10-29 16:07:55 +01:00
Adrian Utrilla
1ffc93dfb6 Refactor Store interface to reflect operations SOPS performs (#335)
* Refactor Store interface to reflect operations SOPS performs

Previously the Store interface tried to mimic the Marshaler and Unmarshaler
interfaces. This was a mistake, as it meant Stores had no idea whether the files they
were loading were encrypted or not.

Partially fixes #334

* Add regression test for loading plain JSON file with binary store
2018-04-20 10:13:46 +02:00
Adrian Utrilla
20046c1b48 Merge branch 'master' into logging 2017-09-16 17:59:00 -07:00
Adrian Utrilla
3811698f54 Encapsulate stash inside cipher 2017-09-12 22:10:53 -07:00
Adrian Utrilla
08a4c7e657 Add documentation to all main packages 2017-09-12 20:01:12 -07:00
Adrian Utrilla
55c7174713 Use logrus features for better logging 2017-09-07 10:49:27 -07:00
Adrian Utrilla
17d5d6b65c Move all loggers to logrus 2017-09-06 17:36:39 -07:00
Adrian Utrilla
a9582158d2 Revert UnmarshalMetadata returning pointer 2017-08-29 12:16:00 -07:00
Adrian Utrilla
13b70024d0 Refactor metadata marshalling
**IMPORTANT** This breaks compatibility of the file format in 1.x for
json files, due to the version being encoded as a number in json files.
The fix for this is easy, however. One can either use a previous version
of sops in the range [2.0.0, 2.0.9] to edit the file, or one can manually edit
the encrypted file and change the version from a number to a string

Previously we basically hand-converted the metadata struct into a map
which we then passed to the stores. Now, we convert the metadata struct
to a "serialization" struct, which the stores serialize
2017-08-23 17:10:39 -07:00
Adrian Utrilla
486a9c8b4c Revert "Fix IV size and constant-time MAC comparison" 2017-08-08 18:18:26 -07:00
Neil Madden
08effe3e15 Do not include computed MAC value in error message 2017-08-04 11:28:08 +01:00
Neil Madden
05bdd6f4b1 Constant-time MAC tag comparison 2017-08-04 11:05:26 +01:00
Julien Vehent
294072fc42 Return standard errors in the decrypt package 2017-03-23 13:38:59 -04:00
Julien Vehent
f07e773800 Add decryption helper and example usage 2017-01-22 10:55:52 -05:00