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

59 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 99d0f88e6e
build(deps): Bump the go group with 1 update
Bumps the go group with 1 update: [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2).

- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.90...feature/s3/manager/v1.11.91)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 22:41:00 +00:00
dependabot[bot] e36e61beca
build(deps): Bump the go group with 3 updates
Bumps the go group with 3 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2), [google.golang.org/api](https://github.com/googleapis/google-api-go-client) and [google.golang.org/grpc](https://github.com/grpc/grpc-go).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.45 to 1.19.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.19.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.45...v1.19.0)

Updates `google.golang.org/api` from 0.147.0 to 0.148.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.147.0...v0.148.0)

Updates `google.golang.org/grpc` from 1.58.3 to 1.59.0
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.3...v1.59.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 10:02:44 +00:00
dependabot[bot] 2cffa0f669
build(deps): Bump the go group with 6 updates
Bumps the go group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) | `1.15.2` | `1.15.3` |
| [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.21.1` | `1.21.2` |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.18.44` | `1.18.45` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.11.89` | `1.11.90` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.24.6` | `1.24.7` |
| [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.146.0` | `0.147.0` |


Updates `cloud.google.com/go/kms` from 1.15.2 to 1.15.3
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.15.2...kms/v1.15.3)

Updates `github.com/aws/aws-sdk-go-v2` from 1.21.1 to 1.21.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.21.1...v1.21.2)

Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.44 to 1.18.45
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.44...config/v1.18.45)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.11.89 to 1.11.90
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.89...feature/s3/manager/v1.11.90)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.24.6 to 1.24.7
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.24.6...service/fsx/v1.24.7)

Updates `google.golang.org/api` from 0.146.0 to 0.147.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.146.0...v0.147.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 09:42:37 +00:00
Hidde Beydals 1499d8ed5d
Update dependencies
- github.com/Azure/azure-sdk-for-go/sdk/azidentity to v1.4.0
- github.com/ProtonMail/go-crypto to v0.0.0-20230923063757-afb1ddc0824c
- github.com/google/go-cmp to v0.6.0
- golang.org/x/net to v0.17.0
- google.golang.org/api to v0.146.0
- google.golang.org/genproto/googleapis/rpc to v0.0.0-20231009173412-8bfb1ae86b6c
- google.golang.org/grpc to v1.58.3

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-10-11 09:07:25 +02:00
dependabot[bot] f6a1cd1b6c
build(deps): Bump the go group with 7 updates
Bumps the go group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) | `1.7.2` | `1.8.0` |
| [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.21.0` | `1.21.1` |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.18.42` | `1.18.44` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.11.87` | `1.11.89` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.24.5` | `1.24.6` |
| [golang.org/x/net](https://github.com/golang/net) | `0.15.0` | `0.16.0` |
| [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.143.0` | `0.145.0` |


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.7.2 to 1.8.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.7.2...sdk/azcore/v1.8.0)

Updates `github.com/aws/aws-sdk-go-v2` from 1.21.0 to 1.21.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.21.0...v1.21.1)

Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.42 to 1.18.44
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.42...config/v1.18.44)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.11.87 to 1.11.89
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.87...feature/s3/manager/v1.11.89)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.24.5 to 1.24.6
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fms/v1.24.5...service/fsx/v1.24.6)

Updates `golang.org/x/net` from 0.15.0 to 0.16.0
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.16.0)

Updates `google.golang.org/api` from 0.143.0 to 0.145.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.143.0...v0.145.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 09:20:57 +00:00
dependabot[bot] 5edac8f12e
build(deps): Bump the go group with 4 updates
Bumps the go group with 4 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2), [google.golang.org/api](https://github.com/googleapis/google-api-go-client) and [google.golang.org/grpc](https://github.com/grpc/grpc-go).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.39 to 1.18.42
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.39...config/v1.18.42)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.11.83 to 1.11.87
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.83...feature/s3/manager/v1.11.87)

Updates `google.golang.org/api` from 0.141.0 to 0.143.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.141.0...v0.143.0)

Updates `google.golang.org/grpc` from 1.58.1 to 1.58.2
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.1...v1.58.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 08:18:18 +00:00
Hidde Beydals cb2bbe3c1b
chore: update dependencies
- google.golang.org/api to v0.141.0
- google.golang.org/genproto/googleapis/rpc to v0.0.0-20230913181813-007df8e322eb
- google.golang.org/grpc to v1.58.1

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-09-14 23:43:34 +02:00
dependabot[bot] 7e0b4fbc5b
build(deps): Bump the go group with 2 updates
Bumps the go group with 2 updates: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) and [google.golang.org/api](https://github.com/googleapis/google-api-go-client).


Updates `cloud.google.com/go/kms` from 1.15.1 to 1.15.2
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.15.1...kms/v1.15.2)

Updates `google.golang.org/api` from 0.139.0 to 0.140.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.139.0...v0.140.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 06:12:24 +00:00
Hidde Beydals cb9287162c
chore: update dependencies
- cloud.google.com/go/storage to v1.33.0
- github.com/Azure/azure-sdk-for-go/sdk/azcore to v1.7.2
- github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys to v1.0.1
- github.com/ProtonMail/go-crypto to v0.0.0-20230828082145-3c4c8a2d2371
- github.com/aws/aws-sdk-go-v2/config to v1.18.39
- github.com/aws/aws-sdk-go-v2/credentials to v1.13.37
- github.com/aws/aws-sdk-go-v2/feature/s3/manager to v1.11.83
- github.com/hashicorp/vault/api to v1.10.0
- golang.org/x/net to v0.15.0
- golang.org/x/sys to v0.12.0
- golang.org/x/term to v0.12.0
- google.golang.org/api to v0.139.0
- google.golang.org/genproto/googleapis/rpc to v0.0.0-20230911183012-2d3300fd4832
- google.golang.org/grpc to v1.58.0

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-09-11 22:42:29 +02:00
Hidde Beydals 0cd0984ceb
build: address out-of-sync `go.mod`
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-24 13:47:42 +02:00
Hidde Beydals e26844deff
version: rewrite command to use GitHub endpoints
This changes the logic of parsing the `version.go` file from a certain
branch to instead make use of the GitHub latest release redirect or
API[1] endpoints for checking if `sops` is on the latest version.

Detaching any future release of SOPS from specific file structures
and/or branches, and (theoretically) freeing it from the requirement of
having to bump the version in-code during release (as this is also done
using `-ldflags` during build). Were it not for the fact that we have
to maintain it for backwards compatibility.

[1]: https://docs.github.com/en/free-pro-team@latest/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-23 07:37:42 +02:00
Hidde Beydals d2cb16ec7c
Update dependencies
- cloud.google.com/go/storage to v1.32.0
- github.com/Azure/azure-sdk-for-go/sdk/azcore to v1.7.1
- github.com/Azure/azure-sdk-for-go/sdk/azidentity to v1.3.1
- github.com/ProtonMail/go-crypto to v0.0.0-20230717121422-5aa5874ade95
- github.com/aws/aws-sdk-go-v2 to v1.21.0
- github.com/aws/aws-sdk-go-v2/config to v1.18.36
- github.com/aws/aws-sdk-go-v2/credentials to v1.13.35
- github.com/aws/aws-sdk-go-v2/feature/s3/manager to v1.11.80
- github.com/aws/aws-sdk-go-v2/service/kms to v1.24.5
- github.com/aws/aws-sdk-go-v2/service/s3 to v1.38.5
- github.com/aws/aws-sdk-go-v2/service/sts to v1.21.5
- google.golang.org/api to v0.138.0
- google.golang.org/genproto to v0.0.0-20230822172742-b8732ec3820d
- google.golang.org/genproto/googleapis/rpc to v0.0.0-20230822172742-b8732ec3820d

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-22 21:34:04 +02:00
Hidde Beydals eeaf9f76d5
*: address various simple `staticcheck` warnings
Deprecation of `io/ioutil`, removal of unused functions, possible nil
pointer dereference, and other tiny nits.

There are (many) more, but these would require their own (commit)
context.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-17 00:16:40 +02:00
Brian Kemper fd3e5ad5f4
Clean up more Mozilla references
Signed-off-by: Brian Kemper <bkemper@gmail.com>
2023-08-16 14:29:40 -06:00
Hidde Beydals 0953fe0d7e
azkv: update dependencies
- github.com/Azure/azure-sdk-for-go/sdk/azcore to v1.7.0
- github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys to v1.0.0

This includes dealing with some breaking changes, which should be the
last ones for the foreseeable future as they tagged it as the first
MAJOR.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-12 12:16:32 +02:00
Hidde Beydals 4848bb2aa3
gcpkms: update GCP related dependencies
While also updating the deprecated API module to
`cloud.google.com/go/kms/apiv1/kmspb`.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-12 12:09:25 +02:00
Hidde Beydals 0dbcd1a6fb
kms: update dependencies
- github.com/aws/aws-sdk-go-v2 to v1.20.1
- github.com/aws/aws-sdk-go-v2/config to v1.18.33
- github.com/aws/aws-sdk-go-v2/credentials to v1.13.32
- github.com/aws/aws-sdk-go-v2/feature/s3/manager to v1.11.77
- github.com/aws/aws-sdk-go-v2/service/kms to v1.24.2
- github.com/aws/aws-sdk-go-v2/service/s3 to v1.38.2
- github.com/aws/aws-sdk-go-v2/service/sts to v1.21.2

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-08-12 01:46:27 +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
dependabot[bot] b30df9eeb8
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.7+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.7...v20.10.24)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 21:03:04 +00:00
Hidde Beydals 70d2d85ee9
chore: update Go dependencies
- cloud.google.com/go/kms v1.4.0 -> v1.12.1
- cloud.google.com/go/storage v1.23.0 -> v1.31.0
- filippo.io/age v1.0.0 -> v1.1.1
- github.com/ProtonMail/go-crypto v0.0.0-20220711121315-1fde58898e96 -> v0.0.0-20230626094100-7e9e0395ebec
- github.com/aws/aws-sdk-go-v2 v1.16.7 -> v1.18.1
- github.com/aws/aws-sdk-go-v2/config v1.15.14 -> v1.18.27
- github.com/aws/aws-sdk-go-v2/credentials v1.12.9 -> v1.13.26
- github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.14 -> v1.11.71
- github.com/aws/aws-sdk-go-v2/service/kms v1.17.5 -> v1.22.2
- github.com/aws/aws-sdk-go-v2/service/s3 v1.26.10 -> v1.36.0
- github.com/aws/aws-sdk-go-v2/service/sts v1.16.9 -> v1.19.2
- github.com/fatih/color v1.13.0 -> v1.15.0
- github.com/golang/protobuf v1.5.2 -> v1.5.3
- github.com/google/go-cmp v0.5.8 -> v0.5.9
- github.com/hashicorp/vault/api v1.7.2 -> v1.9.2
- github.com/lib/pq v1.10.6 -> v1.10.9
- github.com/ory/dockertest/v3 v3.9.1 -> v3.10.0
- github.com/sirupsen/logrus v1.8.1 -> v1.9.3
- github.com/stretchr/testify v1.8.1 -> v1.8.4
- github.com/urfave/cli v1.22.7 -> v1.22.14
- golang.org/x/crypto v0.7.0 -> v0.10.0
- golang.org/x/net v0.8.0 -> v0.11.0
- golang.org/x/sys v0.6.0 -> v0.9.0
- golang.org/x/term v0.6.0 -> v0.9.0
- google.golang.org/api v0.87.0 -> v0.129.0
- google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d -> v0.0.0-20230629202037-9506855d4529
- google.golang.org/grpc v1.48.0 -> v1.56.1
- google.golang.org/protobuf v1.28.0 -> v1.31.0
- gopkg.in/ini.v1 v1.66.4 -> v1.67.0

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-04 13:20:00 +02:00
Hidde Beydals 75b5b54524 chore: update dockertest to Go Mod compatible v3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-07-04 13:15:46 +02:00
Hidde Beydals 2625e56918
azkv: update Azure SDKs
- github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 -> v1.6.1
- github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 -> v1.3.0
- github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0 -> v0.10.0

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-03 21:39:00 +02:00
Hidde Beydals b1c899ae48
azkv: update azcore and azidentity
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-03 21:35:06 +02:00
Hidde Beydals 4f858e5ed2 azkv: update Azure SDK to v0.9.0
Besides some signature changes, really nothing special.

```
$ go test --tags integration ./... -v
=== RUN   TestMasterKey_Encrypt
--- PASS: TestMasterKey_Encrypt (1.34s)
=== RUN   TestMasterKey_Decrypt
--- PASS: TestMasterKey_Decrypt (0.68s)
=== RUN   TestMasterKey_EncryptDecrypt_RoundTrip
--- PASS: TestMasterKey_EncryptDecrypt_RoundTrip (0.40s)
=== RUN   TestNewMasterKeyFromURL
=== RUN   TestNewMasterKeyFromURL/URL
=== RUN   TestNewMasterKeyFromURL/malformed_URL
--- PASS: TestNewMasterKeyFromURL (0.00s)
    --- PASS: TestNewMasterKeyFromURL/URL (0.00s)
    --- PASS: TestNewMasterKeyFromURL/malformed_URL (0.00s)
=== RUN   TestMasterKeysFromURLs
=== RUN   TestMasterKeysFromURLs/single_URL
=== RUN   TestMasterKeysFromURLs/multiple_URLs
=== RUN   TestMasterKeysFromURLs/multiple_URLs,_one_malformed
=== RUN   TestMasterKeysFromURLs/empty
--- PASS: TestMasterKeysFromURLs (0.00s)
    --- PASS: TestMasterKeysFromURLs/single_URL (0.00s)
    --- PASS: TestMasterKeysFromURLs/multiple_URLs (0.00s)
    --- PASS: TestMasterKeysFromURLs/multiple_URLs,_one_malformed (0.00s)
    --- PASS: TestMasterKeysFromURLs/empty (0.00s)
=== RUN   TestTokenCredential_ApplyToMasterKey
--- PASS: TestTokenCredential_ApplyToMasterKey (0.00s)
=== RUN   TestMasterKey_EncryptedDataKey
--- PASS: TestMasterKey_EncryptedDataKey (0.00s)
=== RUN   TestMasterKey_SetEncryptedDataKey
--- PASS: TestMasterKey_SetEncryptedDataKey (0.00s)
=== RUN   TestMasterKey_EncryptIfNeeded
=== RUN   TestMasterKey_EncryptIfNeeded/not_encrypted
[AZKV]   time="2022-11-21T20:41:58Z" level=error msg="Encryption failed" key=test-key version=a2a690a4fcc04166b739da342a912c90
=== RUN   TestMasterKey_EncryptIfNeeded/already_encrypted
--- PASS: TestMasterKey_EncryptIfNeeded (2.12s)
    --- PASS: TestMasterKey_EncryptIfNeeded/not_encrypted (2.12s)
    --- PASS: TestMasterKey_EncryptIfNeeded/already_encrypted (0.00s)
=== RUN   TestMasterKey_NeedsRotation
--- PASS: TestMasterKey_NeedsRotation (0.00s)
=== RUN   TestMasterKey_ToString
--- PASS: TestMasterKey_ToString (0.00s)
=== RUN   TestMasterKey_ToMap
--- PASS: TestMasterKey_ToMap (0.00s)
=== RUN   TestMasterKey_getTokenCredential
=== RUN   TestMasterKey_getTokenCredential/with_TokenCredential
=== RUN   TestMasterKey_getTokenCredential/default
--- PASS: TestMasterKey_getTokenCredential (0.00s)
    --- PASS: TestMasterKey_getTokenCredential/with_TokenCredential (0.00s)
    --- PASS: TestMasterKey_getTokenCredential/default (0.00s)
PASS
ok      go.mozilla.org/sops/v3/azkv     4.551s
```

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-07-03 21:34:58 +02:00
Hidde Beydals ce5177651b azkv: update Azure SDK to v0.6.0
This should be the last major change in their SDK with regard to
changing method signatures and/or the way the client is constructed.

I manually ran the integration test suite which passes without any
issues.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-07-03 21:34:58 +02:00
Hidde Beydals 67bd286a04
build: bump Go version in `go.mod` to 1.19
Which is the lowest supported version of Go at the moment.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-07-02 19:55:13 +02:00
flx5 0e7174c7f9 Replace deprecated gopass package with term 2022-08-20 16:55:19 +02:00
AJ Bahnken 2c835975ea
Upgrade dependencies 2022-07-12 15:20:30 -07:00
AJ Bahnken 09378ffb34
Merge pull request #1085 from hiddeco/hcvault-keysource-imprv
hcvault: update API, add tests, tidy
2022-07-12 15:10:26 -07:00
AJ Bahnken 5448b42f47
Merge pull request #1072 from hiddeco/gcpkms-keysource-imprv
gcpkms: update SDK to latest, add tests, tidy
2022-07-12 14:48:20 -07:00
Hidde Beydals c7ae3eee59 hcvault: update API, add tests, tidy
This updates the Vault API and client to latest, adds more extensive
test coverage, and general tidying of bits of code.
The improvements are based on a fork of the key source in the Flux
project's kustomize-controller, built due to SOPS' limitation around
credential management without relying on runtime environment variables.

- Vault API and client have been updated to latest.
- It introduces a `Token` type which holds a Vault token, and can be
  applied to the `MasterKey`. When applied, the token is used in the
  Vault client configuration, instead of relying on the `VAULT_TOKEN`
  environment variables, or the `.vault-token` file in the user's home
  directory. This is most useful when working with SOPS as an SDK, in
  combination with e.g. a local key service server implementation.
- Extensive test coverage.

The forked version of this has compatability tests to ensure it works
with current SOPS:

- 62fb2d96a2/internal/sops/hcvault/keysource_test.go (L130)
- 62fb2d96a2/internal/sops/hcvault/keysource_test.go (L202)

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-07-05 16:09:35 +02:00
Hidde Beydals d9a5644df1 gcpkms: update SDK to latest, add tests, tidy
This updates the GCP KMS client to latest, adds more extensive test
coverage, and general tidying of bits of code.
The improvements are based on a fork of the key source in the Flux
project's kustomize-controller, built due to SOPS' limitation around
credential management without relying on runtime environment variables.

- Updates the deprecated `google.golang.org/api/cloudkms/v1` to
  `cloud.google.com/go/kms/apiv1`.
- It introduces a `CredentialJSON` type which holds a Service Account
  credential file, and can be applied to the `MasterKey`.
  When applied, the provided credentials are used in the GCP KMS
  service client configuration, instead of relying on
  `GOOGLE_CREDENTIALS`, or the default client environment variables.
  This is most useful when working with SOPS as an SDK, in combination
  with e.g. a local key service server implementation.
- Test coverage.

The forked version of this has compatability (and integration) tests to
ensure it works with current SOPS:

- cbb0fc9df5/internal/sops/gcpkms/keysource_integration_test.go (L39)
- cbb0fc9df5/internal/sops/gcpkms/keysource_integration_test.go (L59)

Co-authored-by: Somtochi Onyekwere <somtochi@weave.works>
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-07-04 22:23:24 +02:00
Hidde Beydals d2ce37d366 publish: update S3 destination to AWS SDK V2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-06-06 23:14:34 +02:00
Hidde Beydals b6f6fa1748 kms: AWS SDK V2, allow creds config, add tests
This updates the AWS SDK for Go to V2, adds extensive test coverage
based on a mocking server, and a general tidying of bits of code.
The improvements are based on a fork of the key source in the Flux
project's kustomize-controller, built due to SOPS' limitation around
credential management without relying on runtime environment variables.

- AWS SDK has been updated to V2. There are still bits in `publish/`
  which would need updating to drop the dependency on V1.
- It introduces a `CredentialsProvider` type which holds an
  `aws.CredentialsProvider`, and can be applied to the `MasterKey`.
  When applied, the provider is used in the AWS client configuration
  instead of relying on the SDK default (environmental) values.
  This is most useful when working with SOPS as an SDK, in combination
  with e.g. a local key service server implementation.
- Extensive test coverage. STS session implementation details are not
  tested due to mocking complexities, but the wiring is.

The forked version of this has compatibility tests to ensure it works
with current SOPS:

- 8b7e7ecb1a/internal/sops/awskms/keysource_test.go (L134)
- 8b7e7ecb1a/internal/sops/awskms/keysource_test.go (L200)

Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-06-06 23:14:27 +02:00
Hidde Beydals b80c0d1eba azkv: update SDK to latest, add tests, tidy
This updates the Azure SDK to latest[1], while dropping the custom
authentication flow in favor of the SDK default[2]. It includes
integration tests, which require the `integration` Go build tag and
a set of environmental variables to be configured to be run:

```
PASS
coverage: 81.2% of statements
ok  	go.mozilla.org/sops/v3/azkv	5.376s	coverage: 81.2% of statements
```

The improvements are based on a fork of the key source in the Flux
project's kustomize-controller, built due to SOPS' limitation around
credential managment without relying on runtime environment variables.

- Azure SDK has been updated to latest, including integration test
  coverage.
- Custom authentication flow has been dropped in favor of the SDK
  default[2]. This should work well on almost any system and is
  generally the go-to way of setting this up, including on cloud
  environments, etc.
- It introduces a `TokenCredential` type which holds an
  `azcore.TokenCredential`, and can be applied to a `MasterKey`.
  When applied, the token is used instead of the SDK default. This is
  most useful when working with SOPS as an SDK, in combination with
  e.g. a local key service server implementation.
- Extensive test coverage.

The forked version of this has compatibility tests to ensure it works
with current SOPS:

- 327a3560b3/internal/sops/azkv/keysource_integration_test.go (L89)
- 327a3560b3/internal/sops/azkv/keysource_integration_test.go (L117)

[1]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/keyvault/azkeys
[2]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-06-02 22:26:07 +02:00
daurnimator 290ec3dca6
Update to urfave/cli to 1.22.7 2022-05-24 15:47:10 +10:00
Josh Kaplinsky 17fb03fd86 Merge remote-tracking branch 'upstream/develop' into develop 2022-05-03 18:32:35 -05:00
Josh Kaplinsky 4ffb54c791 Use custom GOOGLE_CREDENTIALS or fallback to default 2022-05-03 18:30:15 -05:00
Hidde Beydals 25817ed0f5 Replace x/crypto/openpgp with ProtonMail/go-crypto
As `golang.org/x/crypto/openpgp` has been deprecated (see
golang/go#44226 for details).

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-20 21:10:58 +02:00
Hidde Beydals 477b61f6e6 Update remaining dependencies
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-20 21:10:06 +02:00
Hidde Beydals 220b652b33 Update golang.org/x/{net,oauth2,sys} dependencies
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-20 21:10:06 +02:00
Hidde Beydals e128fa2481 Update keyservice implementation dependencies
Latest API clients are (most) often greatest.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-20 21:09:53 +02:00
Hidde Beydals a01208c31e Update golang.org/x/crypto
Version past CVE-2022-27191.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-20 19:58:52 +02:00
AJ Bahnken 234bf9fb5f
Upgrade all dependencies 2022-03-09 13:31:34 -08:00
AJ Bahnken dc2267e372
Upgrade to go 1.17 2022-02-24 14:12:58 -08:00
AJ Bahnken 8a2fbc0aa4
Initial patch for advisory 2021-04-05 11:35:38 -07:00
David Jacob fbc87aea14
Update aws-sdk-go to version v1.37.18 (#823) 2021-02-25 15:35:09 +01:00
Felix Fontein e2d6d0fdc3
Use yaml.v3 instead of modified yaml.v2 for handling YAML files (#791)
* Add another test (that currently fails).

* First shot at using yaml.v3 for reading YAML files with comments.

* Allow parsing multi-document YAML files.

* Use Decoder to parse multi-part documents.

* Use yaml.v3 for config and audit.

* First step of serializing YAML using yaml.v3.

* Always serialize with yaml.v3.

* Remove debug prints.

* Remove traces of github.com/mozilla-services/yaml.

* Improve serialization of documents consisting only of comments.

* Improve handling of some empty documents.

* Adjust to latest changes in go-yaml/yaml#684.

* Bump yaml.v3 version, temporarily disable failing tests.

* Run go mod tidy.

* Fix CI.
2021-02-21 18:48:23 +01:00
Andreas 5d1376d56d
Use age/armor for encrypted data key (#819)
* Use age/armor for encrypted data key

Currently the encrypted data key is stored as a binary value, and this
results in SOPS encrypted DOTENV files having weird binary characters.

This changes the encrypt/decrypt methods to use the armor reader writer
provided by: filippo.io/age/armor

Signed-off-by: Andreas Amstutz <tullo@users.noreply.github.com>

* upgrade filippo.io/age to v1.0.0-beta7

Signed-off-by: Andreas Amstutz <tullo@users.noreply.github.com>

* add unit test

Signed-off-by: Andreas Amstutz <tullo@users.noreply.github.com>

Co-authored-by: Andreas Amstutz <tullo@users.noreply.github.com>
2021-02-21 09:06:40 +01:00
Felix Fontein b1d253e7b9
Do not discard comments at beginning of YAML documents (#757)
* Allow to preserve comments at beginning of YAML document.

* Extend functional tests.

* Update changelog.
2020-10-07 18:10:51 +02:00