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

956 Commits

Author SHA1 Message Date
Adrian Utrilla
0c3f543306 Publishing files WIP 2019-09-12 19:09:03 +01:00
Adrian Utrilla
2ccd06317f docs: document git differ, key groups, and key rotation 2019-07-18 19:35:07 +02:00
Adrian Utrilla
25cb708263 docs: document most common file operations 2019-07-17 21:50:11 +02:00
Adrian Utrilla
c3eb53c9d5 docs: quick start documentation 2019-07-17 21:49:47 +02:00
Adrian Utrilla
b1bd08a5e8 docs: add installation instructions 2019-07-17 19:19:49 +02:00
Adrian Utrilla
f991ccb133 docs: add outline and index 2019-07-17 19:19:37 +02:00
AJ Bahnken
6910225545 Adds support for sops publish-ing to Vault (#494)
* Add vault/api to vendor/

* Adds support for sops publish-ing to Vault

* Adds support for publishing secrets (unencrypted) to Vault
* Adds a new EmitAsMap for TreeBanches
* Adds documentation about sops publish-ing to Vault
* Initial integration/functional test for publishing to vault
2019-07-16 14:33:59 -07:00
Adrian Utrilla
9998e16c3e Merge pull request #491 from adrianosela/golint
Address Go Lint messages
2019-07-16 11:36:51 +02:00
Adriano
41b9e9f4b6 update auditor interface comments 2019-07-12 12:06:56 -07:00
Adriano
4d4891588d address comments 2019-07-11 10:47:43 -07:00
Adriano
4b99fa18b3 go lint 2019-07-11 10:30:32 -07:00
Adrian Utrilla
48f92ee92e Merge pull request #490 from adrianosela/develop
Fix linting and formatting issues
2019-07-09 09:44:36 +02:00
Adriano
0384073eeb revert significant code changes on shamir file 2019-07-08 15:35:41 -07:00
Adriano
a77c9dad68 code cleanup [3/5] - ineffassign (ineffectual assignments) 2019-07-08 10:08:14 -07:00
Adriano
3fc4b0a723 code cleanup [2/5] - go vet 2019-07-08 09:47:18 -07:00
Adriano
87adc130eb code cleanup [1/5] - go fmt 2019-07-08 09:46:36 -07:00
Adriano Sela Aviles
598b706613 Add Mozilla Public License Version 2.0 (#488) 2019-07-04 19:42:17 +02:00
AJ Bahnken
ebd153f540 Implement sops publish command (#473)
* Implement `sops publish` command

Publishes a file to a pre-configured destination (this lives in the sops
config file). Additionally, support re-encryption rules that work
just like the creation rules. Initial support for S3/GCS.

This is a part of the sops-workspace v2.0 project

Includes the addition of a new dependency:
  github.com/googleapis/gax-go/v2

* code review changes; support global --verbose flag

* Switch to recreation_rule with full support

Reencryption rule is now recreation rule and supports everything that a
creation rule does. Now, when you load a config for a file, you load
either the creation rule or the destination rule. I'm not sure about
this style long term, but it allows for support to be added for the
recreation rules without a bigger refactor of how the config file works.

* split loadForFileFromBytes into two functions

remove branching based on destination rule or not, create one for
creation rules and one for destination rules

* pretty diff for keygroup updates in sops publish
2019-06-27 16:48:54 +00:00
AJ Bahnken
d61906ab3e Merge branch 'master' into develop 2019-06-11 18:21:55 +00:00
AJ Bahnken
008ce8f4de 3.3.1 bump and release notes (#477) 2019-06-11 18:06:58 +00:00
Michael
6b68dcb6e3 Remove duplicate sentence from readme (#475) 2019-06-11 13:06:47 +02:00
AJ Bahnken
15dfcfafcb Vendoring update (#472)
It's been around 9 months since our last vendor update. This is also
needed for some new features being worked on for sops workspace.

Additionally, this PR regenerates the kms mocks.
2019-06-06 17:40:34 +00:00
AJ Bahnken
f8e60a1db5 Allow set "json value" to be a string. (#468)
* Allow set "json value" to be a string.

Adds back support for string values in --set, while retaining support
for yaml multidoc that caused this bug.

Fixes #461

* Add functional test for --set'ing strings
2019-05-28 15:55:54 +00:00
Teppei Fukuda
300927c38a Update README.rst (#469)
* Update README.rst

* Update README.rst
2019-05-27 12:29:41 +02:00
Adrian Utrilla
ea5667960d Merge pull request #467 from BenoitKnecht/pgp-keysource
pgp/keysource: Check size of key fingerprint
2019-05-23 16:23:43 +02:00
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
Adrian Utrilla
611dc62a64 Merge pull request #458 from tariq1890/go_112
use golang 1.12 for building sops
2019-05-21 08:30:18 +02:00
Tariq Ibrahim
0bca3f96fc use golang 1.12 for building sops 2019-05-20 23:24:43 -07:00
AJ Bahnken
b3a11d3bfc Changes to travis config and docs for using develop (#462)
* Fixes integration tests in travis to not run on PR's (they will now
run on merges into `develop` and `master`)
* Change README.rst and CONTRIBUTING.md to reflect the use of `develop`
as the primary development branch
2019-05-16 21:29:16 +00:00
Adrian Utrilla
ea2a10b7a3 Merge pull request #466 from kentso/regex-path
expand file path to full path before processing
2019-05-16 08:25:02 +02:00
Ken Tso
8118803376 expand file path to full path before processing
so that `path_regex` can match on the full path
2019-05-16 13:15:36 +09:00
Adrian Utrilla
2edae1d817 Release 3.3.0 3.3.0 2019-04-18 13:01:55 +02:00
Adrian Utrilla
8f804bce1c Merge pull request #448 from mozilla/dev/fix-aws-kms-enc-ctx
KMS Encryption Context bug fix, autofix, and additional testing
2019-04-18 12:33:02 +02:00
Adrian Utrilla
fd74caf80a Merge branch 'master' into dev/fix-aws-kms-enc-ctx 2019-04-18 12:23:22 +02:00
Adrian Utrilla
8c4549b72f Merge pull request #453 from mozilla/ajvb/skip-kms-tests-on-prs
Only run kms functional tests within mozilla/sops
2019-04-18 12:22:57 +02:00
Adrian Utrilla
78de36b23a Merge pull request #457 from mozilla/ajvb/upgrade-dockerfile-to-go-1-11
Upgrade to golang:1.11 in Dockerfile
2019-04-18 12:22:09 +02:00
AJ Bahnken
7a174579a3 Upgrade Dockerfile from to golang:1.11 2019-04-17 13:20:28 -07:00
Adrian Utrilla
3d71ab889c Merge branch 'master' into dev/fix-aws-kms-enc-ctx 2019-04-17 21:58:57 +02:00
AJ Bahnken
ba3c378fb0 small typo in travis ci config 2019-03-29 10:52:44 -07:00
AJ Bahnken
f000986f20 Only run kms functional tests within mozilla/sops
Instead of exiting early, only run the kms tests within the context of
mozilla/sops (and not from forks).
2019-03-29 10:42:01 -07:00
Adrian Utrilla
a6a0d81336 Create CODE_OF_CONDUCT.md
Fixes https://github.com/mozilla/sops/issues/452
2019-03-29 18:09:19 +01:00
AJ Bahnken
23fb078e05 Autofix AWS KMS encryption context bug (#445)
* kms encryption ctx auto fix

Code to do the migration is still rough and needs clean up and further
testing.

* Added some further polish to enc ctx fix code path

* Attempt to decrypt using other keys before trying enc ctx variations

* just re-encrypt datakey instead of all of the values

* Move KMS enc ctx fix code to new function

* Fix RetrieveLatestVersionFromUpstream with pkg move

* Fixes from code review

* Include err in message displayed to user

* Remove duplicate file.Close() calls in Fix kms func

* move file.Close() to defer
2019-03-21 10:55:51 -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
AJ Bahnken
51503b5177 Initial set of AWS KMS tests (#444)
* Initial set of AWS KMS tests

* rename temp file in kms test

* Skip AWS KMS functional tests if env var is unset
2019-03-21 09:43:36 -07:00
Julien Vehent [:ulfr]
c3c3b7c76d Update README.rst 2019-03-13 18:37:43 -04:00
Julien Vehent [:ulfr]
fde9400161 Update README.rst 2019-03-13 18:36:53 -04:00
Julien Vehent [:ulfr]
e37f109227 Update README.rst 2019-03-13 18:35:49 -04:00
Julien Vehent [:ulfr]
f7b8671909 Update README.rst 2019-03-13 18:35:30 -04:00
Adrian Utrilla
ae93caf2c6 Merge pull request #440 from rabadin/add-gpg-keyserver-env-var
Add support for custom GPG key servers
2019-03-12 17:16:54 +01:00
rabadin
bca9526566 Rewiew fix: update documentation 2019-03-12 13:57:12 +01:00