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

33 Commits

Author SHA1 Message Date
Hidde Beydals
92aa55f06a *: strings.Title deprecation
Replace with simple manual construction of upper boolean
representation, as the (construction of the) `golang.org/x/text/cases`
replacement is way too complex for this use case.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-23 23:30:35 +02:00
Hidde Beydals
f2a1d4c782 Rename Go module to github.com/getsops/sops/v3
This commit renames the Go module from `go.mozilla.org/sops/v3` to
`github.com/getsops/sops/v3` without a major version bump, to align
with new stewardship.

For more information around this change, refer to
https://github.com/getsops/sops/issues/1246.

For a one-liner to change the `go.mod` and any import paths in your
Go project making use of this module, run:

```
find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;
find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i '' 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;
```

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-31 22:51:36 +02:00
AJ Bahnken
8e21de8dbc Upgrade sops to go 1.13 (#566) 2019-11-18 10:06:58 -08:00
Adriano
4b99fa18b3 go lint 2019-07-11 10:30:32 -07:00
Adrian Utrilla
97ce8a62c9 Fix empty comments not being decrypted correctly (#344)
SOPS failed to decrypt empty comments before after they were encrypted because they
would look like:

`#ENC[AES256_GCM,data:,iv:NVQvG25goSE7xi6U/QjRNtJBwr/VfChezSptI8GFsQk=,tag:yyYIW/hiIZ1qK1GEo8vHpA==,type:comment]`

Note the empty "data" value.

SOPS would fail to decrypt those and show them to the user "encrypted" when
decrypting the file.
2018-05-08 14:09:11 -04:00
Adrian Utrilla
20046c1b48 Merge branch 'master' into logging 2017-09-16 17:59:00 -07:00
Adrian Utrilla
e6f46513dd Merge branch 'master' into encrypt-comments 2017-09-15 10:28:26 -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
7d6597b60c Change path to additionalData in Cipher Encrypt and Decrypt
functions

While the path inside the tree is commonly used as additional data for
AES ciphers, this is not always the case, so the generic name is better.
2017-09-11 16:59:36 -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
1b09444742 Use log.Print instead of fmt.Print everywhere 2017-08-29 12:15:25 -07:00
Adrian Utrilla
cdc86da1f3 Encrypt comments 2017-08-15 17:38:50 -07:00
Adrian Utrilla
486a9c8b4c Revert "Fix IV size and constant-time MAC comparison" 2017-08-08 18:18:26 -07:00
Neil Madden
917d581b79 Use standard 96-bit IV for AES-GCM 2017-08-04 10:57:08 +01:00
Adrian Utrilla
f52dc0008d Do not encrypt and decrypt empty values
Fixes #138
2016-10-28 16:50:14 +02:00
Adrian Utrilla
71d4a3cfd2 Added go.mozilla.org imports
Fixes #122
2016-10-27 18:09:19 +02:00
Adrian Utrilla
aac08d7c9b Use the same formatting for floats and booleans as the Python version.
Fixes #111
2016-09-08 13:56:00 -07:00
Adrian Utrilla
0efff5627b Fixed failing tests 2016-08-29 14:17:06 -07:00
Adrian Utrilla
5441214e65 Reuse IVs if the plaintext doesn't change 2016-08-29 14:00:24 -07:00
Adrian Utrilla
b8cb6cf016 Fixed failing tests 2016-08-24 16:48:56 -07:00
Adrian Utrilla
35b90eb90e Added documentation for AES cipher 2016-08-24 15:46:49 -07:00
Adrian Utrilla
341da25219 Added DataKeyCipher interface 2016-08-24 14:38:05 -07:00
Adrian Utrilla
2bc7c0a08f Improved variable name 2016-08-24 12:52:10 -07:00
Adrian Utrilla
6ce4b317f2 Use a constant for GCM nonce size 2016-08-24 12:50:35 -07:00
Adrian Utrilla
c9d63a838e Fixed golint issues 2016-08-24 10:29:28 -07:00
Adrian Utrilla
3e6d0cd128 AES decryptor now takes strings as input 2016-08-23 13:19:33 -07:00
Adrian Utrilla
e885735260 aes decryptor now takes []byte keys 2016-08-23 12:49:18 -07:00
Adrian Utrilla
80eeaf13ab Better error messages for AES backend 2016-08-22 18:28:03 -07:00
Adrian Utrilla
1767b0375d Moved AES regex outside of function so it's only compiled once 2016-08-22 18:15:00 -07:00
Adrian Utrilla
3733347416 Added decryptor test improvements 2016-08-22 18:10:13 -07:00
Adrian Utrilla
e52e77dc51 Renamed decryptor package to aes 2016-08-22 12:38:30 -07:00