Граф коммитов

61 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Duthil f1948a3dee
tests: ignore env var SOPS_AGE_KEY_FILE
Why:

* setting the variable SOPS_AGE_KEY_FILE will make tests fail

Signed-off-by: Sebastien Duthil <duthils@duthils.net>
2024-09-03 22:11:49 -04:00
Felix Fontein 837c231d50 Adjust Makefile to new goreleaser 6.0.0 release.
Signed-off-by: Felix Fontein <felix@fontein.de>
2024-06-10 22:03:05 +02:00
Jonas Badstübner f508d60dfc fix(Makefile): set locale to make tests pass
Matching on error messages without specifying locale failed for my German setup

Signed-off-by: Jonas Badstübner <jonas.badstuebner@hetzner-cloud.de>
2024-06-10 20:30:22 +02:00
Felix Fontein 3697768a81 Add checkdocs, checkrst, and checkmd make targets.
Signed-off-by: Felix Fontein <felix@fontein.de>
2023-10-11 08:02:53 +02:00
Hidde Beydals fe346f90d8
build: add `clean` and delete `tag`
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:33:10 +02:00
Hidde Beydals 00d48fa31c
build: ensure Syft is installed
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:23:41 +02:00
Hidde Beydals 4dbc212507
build: remove `test.sh` wrapper
My assumption is that this used to be in place because of `go` not
ignoring the `vendor` directory.

However, in 2023 this appears to no longer be an issue, and only
adds complexity. While running `go test ./...` works just fine.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:16:42 +02:00
Hidde Beydals f85eb011a6
build: replace `golint` with `staticcheck`
As it has been deprecated for about ~2 years in favor of `go vet` and
tools like `staticcheck`.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:14:21 +02:00
Hidde Beydals 6705088a33
build: actually run `go vet` for whole project
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:14:20 +02:00
Hidde Beydals 13794d71b9
build: add `release-snapshot` Make target
This allows you to run the release locally, without publishing or
signing, against the current state of the repository.

There are some more improvements I would like to make to the
`Makefile` e.g., the deprecation of `golint` and the introduction of a
`help` target. But they are out of scope for the current things I am
working on.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-14 22:37:46 +02:00
Hidde Beydals 986a4c2286
release: remove stale Make target utilities
These are no longer required, as they are now handled by GoReleaser
or no longer under our control (`make_download_page.sh`).

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-14 22:37:41 +02:00
Hidde Beydals 02de4a8745
release: outline release logic using GoReleaser
This adds the base for releasing using GoReleaser going forward in a
backwards compatible manner, which means:

- Publishing of artifacts in the same formats as previous releases
- Publishing of RPM and deb artifacts in the same formats as previous
  releases (although the metadata may need a bit of tweaking)

In addition, it includes:

- SBOM inclusion per binary artifact

It still needs work around:

- Artifact signing
- SLSA compliance
- Docker images
- GitHub release
- Changelog generation
- GitHub Action workflow

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-14 22:37:38 +02:00
Hidde Beydals d6367c1ac8
Remove "download page" generator
This was historically used to generate https://go.mozilla.org/sops/,
which is not under our control.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-31 22:51:37 +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
Hidde Beydals 0eef7ce86c Delete obsolete mockery make target and doc ref
This was only required for the test mocks for the V1 AWS SDK tests,
which have been removed with the rewrite to V2.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-06-06 23:18:19 +02:00
AJ Bahnken 234bf9fb5f
Upgrade all dependencies 2022-03-09 13:31:34 -08:00
Janis Peisenieks 822ce48b82 Add arm64 .deb and .rpm builds 2022-03-04 10:04:51 +02:00
AJ Bahnken d6bc216a86
README and author tweaks
* Remove ulfr and autrilla as core maintainers
* Update badges, we no longer us travis-ci
* Remove python docs, especially as it has not been maintained for years
* Fix dev install instructions
2022-03-03 09:38:54 -08:00
AJ Bahnken dc2267e372
Upgrade to go 1.17 2022-02-24 14:12:58 -08:00
AJ Bahnken 9cc95d411b
Add release workflow
Fixes #841
2021-03-30 11:32:32 -07:00
AJ Bahnken 6ec0e6a2e2
Fix fpm commands and PROJECT var in Makefile 2019-12-02 09:14:23 -08:00
AJ Bahnken 8e21de8dbc
Upgrade sops to go 1.13 (#566) 2019-11-18 10:06:58 -08:00
AJ Bahnken f6ce72fbcf
Remove vendor directory from repo (#499)
* Remove vendor directory from repo

With #498 being merged and making the switch to Go modules, there does
not seem to be a need to store this directory within the repo anymore.
As well, it will make reviewing dependency updates and viewing the
PR's within Github's UI much more manageable.

This PR also include adding `vendor/` to `.gitignore` and changing the
Makefile so that `make test` will run `make vendor` first.

* Switch to using make install in Dockerfile

* Remove -mod vendor flag from install and functional-tests

* Use proxy.golang.org for go modules within Makefile
2019-07-31 14:25:29 -07:00
Adrian Utrilla d488deb5e7 Makefile: use Go modules for vendoring 2019-07-30 10:55:08 +02:00
gitirabassi 8df7f3e4f2
fix(go mod): added force usage of vendor during pipeline 2019-07-29 17:20:19 +02:00
gitirabassi de7fd49aeb
feat(sops): moved dependency management from govend to go modules 2019-07-29 16:35:31 +02: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
Calle Pettersson 9fa4f0e90e Add support for Azure Key Vault 2018-06-17 22:50:30 +02:00
Adrian Utrilla b661f3ee31
Simplify testing in makefile 2017-10-03 15:14:00 -07:00
Adrian Utrilla f638d40692
Merge remote-tracking branch 'origin/master' into logging 2017-09-25 09:51:54 -07:00
Adrian Utrilla 20046c1b48
Merge branch 'master' into logging 2017-09-16 17:59:00 -07:00
Adrian Utrilla bcf8adebea
Merge branch 'master' into gcloud-kms 2017-09-15 14:34:02 -07:00
Adrian Utrilla 93570b20d7
Fix golint errors 2017-09-12 09:59:23 -07:00
Calin Don f7d72449b2
Rename Cloud KMS to GCP KMS 2017-09-12 15:37:30 +03:00
Calin Don f57598d02c
Add basic testing for google cloud KMS 2017-09-11 22:21:46 +03:00
Adrian Utrilla 17d5d6b65c
Move all loggers to logrus 2017-09-06 17:36:39 -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 454d21d87f
Update mocks 2017-02-22 12:26:02 +01:00
Julien Vehent 10376687c4
Automate download page generation 2016-11-30 11:40:38 -05:00
Julien Vehent 2abbd857fe
Add Makefile target to build packages with FPM 2016-11-30 09:17:22 -05:00
Adrian Utrilla 822d974ebd
Run functional tests on TravisCI 2016-11-13 22:31:28 +01:00
Julien Vehent ca5bcbc90a
fixup travis.yml 2016-11-04 13:59:29 -04:00
Julien Vehent 1e25c7503a
vendoring update, move from godep to govend 2016-11-04 12:37:53 -04:00
Julien Vehent b73a389256
Use full project path in Makefile 2016-10-27 13:47:36 -04:00
Adrian Utrilla c021af4e5a
Added `make vendor` to update dependencies 2016-10-26 21:44:11 +02:00
Adrian Utrilla 949dadd92d
Fixed invalid go get in makefile 2016-09-19 11:34:06 -07: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 49e7bbe86a Removed Python and Go version 2016-08-05 15:20:31 -07:00
Julien Vehent 51e13b1589 Fix handling of binary data to preserve integrity, fixes #59 2016-04-19 12:23:46 -04:00