Benoît Knecht
1de402b5ad
pgp/keysource: Check size of key fingerprint
...
Make sure the key fingerprint is longer than 16 characters before
slicing it.
Closes #463
2019-05-23 16:17:23 +02:00
rabadin
410a687a35
Add support for custom GPG key servers
...
Add support for the SOPS_GPG_KEYSERVER environment variable to
override the default GPG key server (gpg.mozilla.org).
2019-03-12 12:17:33 +01:00
Jan-Otto Kröpke
b72e3bf3f1
Use $HOME instead ~ to find the gnupg directory.
2018-11-25 16:27:36 +01:00
Dov Reshef
e57c8f2c85
Fixed wrong Errorf format in message
2018-04-08 10:48:11 +03:00
Adrian Utrilla
9d6a8d0e21
Default to Warn log level unless verbose flag is passed
2018-03-07 17:18:45 +01:00
azhi
4efe53ff42
add IsBinary: true to FileHints when encoding with crypto/openpgp
...
since we encode binary data this is generally a good idea
this commit fixes #278 - now both crypto/openpgp and gpg work in a binary
mode, and we can safely use both interchangeably
(e.g. encrypt with crypto/openpgp, and then decrypt with gpg)
2017-11-28 01:17:44 +03:00
Adrian Utrilla
1847c6cdd6
Support retrieving PGP keys from keyservers
2017-10-05 13:26:10 -07:00
Adrian Utrilla
20046c1b48
Merge branch 'master' into logging
2017-09-16 17:59:00 -07:00
Adrian Utrilla
08a4c7e657
Add documentation to all main packages
2017-09-12 20:01:12 -07:00
Adrian Utrilla
93570b20d7
Fix golint errors
2017-09-12 09:59:23 -07:00
Adrian Utrilla
d1637e0da7
Use custom error type for pgp instead of Errorf
2017-09-12 09:22:33 -07:00
Adrian Utrilla
cdbac51221
s/GPG/PGP
2017-09-12 09:00: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
252e0dba17
Fix style problems
2017-08-29 17:57:29 -07:00
Adrian Utrilla
be4a35e7f5
Fix shamir tests
2017-08-25 13:12:34 -07:00
Adrian Utrilla
dae5c6ce6f
Add logging to KMS key operations
2017-08-25 09:59:58 -07:00
Adrian Utrilla
e3705100c2
Add support for GPG binary
2017-08-23 14:29:53 -07:00
Adrian Utrilla
48ee4bff63
First step towards keygroups
2017-08-23 11:06:47 -07:00
Adrian Utrilla
10dd9b5441
Use KeyService for all encrypt and decrypt operations
2017-08-17 11:32:04 -07:00
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
Jeremiah Orem
3f04525a82
pgp: print errors if they occur in quick test
2016-10-28 10:16:14 -07:00
Jeremiah Orem
76f4ae8db0
return lists of pointers to avoid repackaging
2016-10-28 10:04:18 -07:00
Adrian Utrilla
71d4a3cfd2
Added go.mozilla.org imports
...
Fixes #122
2016-10-27 18:09:19 +02:00
Adrian Utrilla
786a863a3d
PGP tests can now run anywhere
2016-08-25 12:21:10 -07:00
Adrian Utrilla
49a3ef3e3c
Added Makefile
2016-08-24 12:37:18 -07:00
Adrian Utrilla
c9d63a838e
Fixed golint issues
2016-08-24 10:29:28 -07:00
Adrian Utrilla
9ffe1c4908
Renamed GPGMasterKey and KMSMasterKey to MasterKey
2016-08-23 13:28:56 -07:00
Adrian Utrilla
e4c57636d2
Use UTC instead of local timezone
2016-08-23 12:57:13 -07:00
Adrian Utrilla
762c5cd559
Use time.RFC3339 instead of custom format
2016-08-23 12:54:13 -07:00
Adrian Utrilla
e885735260
aes decryptor now takes []byte keys
2016-08-23 12:49:18 -07:00
Adrian Utrilla
c522a7e93f
Added ability to add and remove keys from files
2016-08-22 17:47:37 -07:00
Adrian Utrilla
0679be3598
Implemented unencrypted suffix
...
Move keysource tests to their respective packages
2016-08-22 14:22:04 -07:00
Adrian Utrilla
eca5943708
Moved pgpagent to an outside package
2016-08-19 10:36:53 -07:00
Adrian Utrilla
0fbba59163
Added YAML encryption
2016-08-18 15:49:27 -07:00
Adrian Utrilla
3997384272
Set key creation date to current date
2016-08-17 15:24:22 -07:00
Adrian Utrilla
7d9b23f136
Added GPG agent support
2016-08-17 10:18:58 -07:00
Adrian Utrilla
791cd693c2
Refactored PGP and KMS into their own packages
2016-08-11 11:44:00 -07:00