Compare commits

...

1752 Commits
v1.4.4 ... main

Author SHA1 Message Date
kfox1111 9fddca5c1a
Deprecate retry_bootstrap (#6050)
* Deprecate retry_bootstrap

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2025-07-10 10:06:38 -03:00
Sorin Dumitru 6767a3c3c9
Wait for server to come up before using it (#6174)
This test fails from time to time in CI. It seems like we should be waiting for the server to come up before trying to use it to get its bundle.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
2025-07-09 07:19:04 +01:00
Sorin Dumitru 2d261f2db4
Retry healthcheck during agent-cli test (#6173)
It's possible for the agent to appear attested but for the healthcheck to not yet be passing, so we should retry not just the attestation but also the health check.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-07-08 22:41:56 +01:00
Sorin Dumitru 1ff99fa96d
Unpin binary version in upstream-authority-vault test (#6172)
This is the only test that does it and I don't think it is or should be necessary.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
2025-07-08 21:43:37 +01:00
Yuedong Wu fd2b898aae
Fix markdown link syntax nits (#6169)
Signed-off-by: Yuedong Wu <dwcn22@outlook.com>
2025-07-07 20:21:53 +01:00
Carlo Teubner 11f821cf31
golangci-lint: upgrade to v2 & fix flakey test (#6064)
* golangci-lint: upgrade to v2

- Upgrade golangci-lint to the latest version, v2.1.6.
- Migrate to new config file format as required with v2.
- Run golangci-lint via "go run" not "go tool"; the docs explicitly
  recommend against the latter, and it was needlessly polluting our
  go.mod file.
- With the new way, the golangci-lint version is maintained in
  .spire-tool-versions, consistent with other similar tools.
- While we're at it, enable a few more linters/checks.
- Address all new linter complaints.
- Simplify some error return code patterns
- golangci-lint: enable more revive rules

* TestAttestAgent: fix flakeyness

This flakeyness was reported previously in #5774 with improvements made
in #5815, but was still happening.

Hopefully fix it, by not assuming that the gRPC Send() message must not
return an error; it is legitimately allowed to return io.EOF, in the
case where the server has returned an application-level error, which
we can then obtain via a Recv() call.

See https://pkg.go.dev/google.golang.org/grpc#ClientStream.SendMsg

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2025-07-04 16:14:29 -03:00
dependabot[bot] 0508762982
Bump google.golang.org/api from 0.239.0 to 0.240.0 (#6166)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.239.0 to 0.240.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.239.0...v0.240.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.240.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-04 10:59:21 -07:00
dependabot[bot] b5beef4006
Bump github.com/shirou/gopsutil/v4 from 4.25.5 to 4.25.6 (#6165)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.25.5 to 4.25.6.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.5...v4.25.6)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-version: 4.25.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 16:39:05 -07:00
dependabot[bot] 7a3bf0a650
Bump github.com/docker/docker (#6167)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.3.0+incompatible to 28.3.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.3.0...v28.3.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.1+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 14:29:39 -07:00
dependabot[bot] b9b00ad3cc
Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 (#6159)
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 09:51:18 -07:00
dependabot[bot] 32ee70fed9
Bump the aws-sdk group across 1 directory with 5 updates (#6161)
Bumps the aws-sdk group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.225.1` | `1.227.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.42.0` | `1.43.0` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.38.0` | `1.39.0` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.80.0` | `1.82.0` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.33.21` | `1.34.0` |



Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.225.1 to 1.227.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.225.1...service/ec2/v1.227.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.42.0 to 1.43.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.42.0...service/s3/v1.43.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.38.0 to 1.39.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.38.0...service/s3/v1.39.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.80.0 to 1.82.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.80.0...service/s3/v1.82.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.33.21 to 1.34.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/sts/v1.33.21...v1.34.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.227.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.82.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-version: 1.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-02 16:11:59 -07:00
dependabot[bot] 32b64d04b8
Bump github.com/go-jose/go-jose/v4 from 4.1.0 to 4.1.1 (#6160)
Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-version: 4.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-02 12:15:17 -07:00
dependabot[bot] d3bdc8c163
Bump github.com/docker/docker (#6157)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.2.2+incompatible to 28.3.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.2.2...v28.3.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.0+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-02 10:45:57 -07:00
Ryan Turner dff8a88df0
Prepare main branch for upcoming 1.13.0 release (#6163)
* Changelog for v.1.12.4 release (#6162)

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Prepare main branch for upcoming 1.13.0 release

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-07-01 22:48:49 -07:00
dependabot[bot] 46ac9d92f5
Bump cloud.google.com/go/secretmanager in the google-cloud-sdk group (#6144)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/secretmanager` from 1.14.7 to 1.15.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/automl/v1.14.7...kms/v1.15.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-version: 1.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 11:42:01 -07:00
Agustín Martínez Fayó f687bf21e8
Revert "Fix metrics/health checks when retry_bootstrap=true (#6063)" (#6158)
This reverts commit 41aedaea5a.

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-06-27 07:49:45 -03:00
dependabot[bot] 6512090356
Bump github.com/sigstore/cosign/v2 from 2.5.0 to 2.5.2 (#6145)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.5.0 to 2.5.2.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.5.0...v2.5.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-version: 2.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 09:13:22 -03:00
dependabot[bot] ba824b04d1
Bump google.golang.org/api from 0.237.0 to 0.239.0 (#6154)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.237.0 to 0.239.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.237.0...v0.239.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.239.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 07:37:29 -03:00
dependabot[bot] 21359c4ebf
Bump the k8s-io group with 5 updates (#6153)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.33.1` | `0.33.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.33.1` | `0.33.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.33.1` | `0.33.2` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.33.1` | `0.33.2` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.33.1` | `0.33.2` |


Updates `k8s.io/api` from 0.33.1 to 0.33.2
- [Commits](https://github.com/kubernetes/api/compare/v0.33.1...v0.33.2)

Updates `k8s.io/apimachinery` from 0.33.1 to 0.33.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.33.1...v0.33.2)

Updates `k8s.io/client-go` from 0.33.1 to 0.33.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.33.1...v0.33.2)

Updates `k8s.io/kube-aggregator` from 0.33.1 to 0.33.2
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.33.1...v0.33.2)

Updates `k8s.io/mount-utils` from 0.33.1 to 0.33.2
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.33.1...v0.33.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.33.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.33.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-version: 0.33.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-version: 0.33.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-version: 0.33.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-25 18:04:23 -03:00
dependabot[bot] 55e614c112
Bump github.com/aws/smithy-go from 1.22.3 to 1.22.4 (#6138)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.22.3 to 1.22.4.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.22.3...v1.22.4)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-version: 1.22.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-24 15:37:33 -03:00
dependabot[bot] 76299f86f3
Bump github.com/google/go-containerregistry from 0.20.5 to 0.20.6 (#6135)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.20.5 to 0.20.6.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.5...v0.20.6)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-version: 0.20.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 17:14:03 +01:00
Agustín Martínez Fayó 70fadb5861
Use k8s Apply operation in `k8s_configmap` BundlePublisher plugin instead of Get / Create / Update (#6139)
* Use k8s Apply operation instead of Get / Create / Update

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Address PR comment

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-06-19 06:56:37 +01:00
Sorin Dumitru b991f8b6bd
Use UpstreamAuthority.SubscribeToLocalBundle RPC (#6090)
* Add test to show the issue

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Update spire-plugin-sdk to include new RPC

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Implement the new SubscribeToLocalBundle RPC

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* fakeupstreamauthority: add support for GetTrustBundle

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Add UpstreamClient support for wathing upstream authorities

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Use SubscribeToLocalBundle UpstreamAuthority RPC if available

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Address review comments

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-06-18 19:20:16 +01:00
Sorin Dumitru 0dfc8a6cf2
spire-agent: JWT-SVID validation should check for exp claim presence (#6141)
* spire-agent: JWT-SVID validation should check for exp claim presence

The SPIFFE [spec](https://github.com/spiffe/spiffe/blob/main/standards/JWT-SVID.md\#33-expiration-time) says that tokens MUST have an exp field. We must reject tokens without one present.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Bump SPIRE 1.12.4 and update Changelog

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Also update migration table

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Remove extra line in CHANGELOG.md

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
2025-06-18 18:19:56 +01:00
dependabot[bot] c9f33b41f2
Bump github.com/aws/aws-sdk-go-v2/service/kms in the aws-sdk group (#6130)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.40.1 to 1.41.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.40.1...service/s3/v1.41.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-version: 1.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-17 15:52:57 -03:00
Sorin Dumitru 6185e7f0ed
Use sha of branch of caching executables (#6133)
Using the executables does not work because they do not exist when we try to fetch from the cache. This means we may end up fetching executables from previous runs of the workflows on the branch.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-06-15 09:31:17 -03:00
dependabot[bot] 6fcb5ef7ec
Bump github.com/go-sql-driver/mysql from 1.9.2 to 1.9.3 (#6131)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/v1.9.3/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-version: 1.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 12:52:06 +01:00
dependabot[bot] df29c3ca1a
Bump google.golang.org/api from 0.236.0 to 0.237.0 (#6132)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.236.0 to 0.237.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.236.0...v0.237.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.237.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 09:44:14 +01:00
Keegan Witt 3d4579bb12
fix: subject_types_supported cannot be an empty list (#6126)
Closes #6125

Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2025-06-13 11:59:07 +01:00
Sorin Dumitru c1a25db8e1
Lower log level of cotainer not found retry (#6128)
This can appear somewhat frequently, more so now that the pod list is cached. We already have a warning for when the container it is not found at all, no point warning about retrying.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-06-13 07:17:30 +01:00
dependabot[bot] b6760ad0d2
Bump github.com/sigstore/sigstore from 1.9.4 to 1.9.5 (#6124)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.9.4...v1.9.5)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-version: 1.9.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-12 10:25:22 -03:00
Agustín Martínez Fayó 7cdc62c353
Add `k8s_configmap` BundlePublisher plugin (#6105)
* Add `k8s_configmap` BundlePublisher

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-06-12 06:57:58 -03:00
dependabot[bot] 48133acad8
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#6122)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.10.0 to 1.10.1
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/go-mgmt-sdk-release-guideline.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.10.0...sdk/azidentity/v1.10.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-11 16:17:24 -03:00
dependabot[bot] cbdf62d24b
Bump the aws-sdk group across 1 directory with 2 updates (#6121)
Bumps the aws-sdk group with 2 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.224.0 to 1.225.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.224.0...service/ec2/v1.225.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.39.0 to 1.40.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.39.0...service/s3/v1.40.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.225.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-version: 1.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-11 09:07:49 -03:00
dependabot[bot] 408849b989
Bump golang.org/x/net from 0.40.0 to 0.41.0 (#6116)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.40.0 to 0.41.0.
- [Commits](https://github.com/golang/net/compare/v0.40.0...v0.41.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-10 16:14:17 -03:00
dependabot[bot] 2a341f8ac6
Bump golang.org/x/crypto from 0.38.0 to 0.39.0 (#6115)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.38.0 to 0.39.0.
- [Commits](https://github.com/golang/crypto/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-10 13:28:57 -03:00
Ryan Turner ce88f8651a
Update to Go 1.24.4 (#6119)
* Update to Go 1.24.4

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Update to Alpine Linux 3.22

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-06-10 09:35:39 -03:00
Sorin Dumitru e7083db69f
Terminate entry lookup early if possible (#6100)
In the cases where we know which entries we are looking for, e.g. for SVID issuance, we can end iterating through entries early if we found all of them.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-06-07 14:14:45 +01:00
Tyler Schade 114f457701
implement gracefulstop with a configurable timeout in spire-server (#6076)
* implement gracefulstop

Signed-off-by: tjons <tylerschade99@gmail.com>

* code review feedback: remove configuration parameter and extract helper function

Signed-off-by: tjons <tylerschade99@gmail.com>

* code review feedback pt 2

Signed-off-by: tjons <tylerschade99@gmail.com>

* reintroduce cancellation

Signed-off-by: tjons <tylerschade99@gmail.com>

---------

Signed-off-by: tjons <tylerschade99@gmail.com>
2025-06-07 09:51:16 +01:00
dependabot[bot] 656e83d0fe
Bump github.com/hashicorp/vault/sdk from 0.17.0 to 0.18.0 (#6117)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.17.0...sdk/v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 14:13:26 -07:00
dependabot[bot] 8866c602a5
Bump github.com/aws/aws-sdk-go-v2/service/kms in the aws-sdk group (#6114)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.38.1 to 1.39.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.38.1...service/s3/v1.39.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 11:40:47 -07:00
dependabot[bot] bc52fe64b4
Bump golang.org/x/sync from 0.14.0 to 0.15.0 (#6111)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/sync/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 09:52:13 -07:00
dependabot[bot] 1c7a915e36
Bump github.com/hashicorp/vault/api from 1.16.0 to 1.20.0 (#6113)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.16.0 to 1.20.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.16.0...api/v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-version: 1.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-05 16:13:19 -07:00
dependabot[bot] 19cf417169
Bump golang.org/x/time from 0.11.0 to 0.12.0 (#6110)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/time/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-version: 0.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-05 13:59:28 -07:00
dependabot[bot] 84fe369baf
Bump google.golang.org/grpc from 1.72.2 to 1.73.0 (#6112)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.72.2 to 1.73.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.72.2...v1.73.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.73.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-05 10:29:45 -07:00
dependabot[bot] 77c1f6e701
Bump github.com/docker/docker from 28.1.1+incompatible to 28.2.2+incompatible (#6097)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.1.1+incompatible to 28.2.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.1.1...v28.2.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.2.2+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update Docker version

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Remove check for Docker version in plugin test

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-06-04 21:07:09 -07:00
dependabot[bot] 49ceb4a2ed
Bump github.com/open-policy-agent/opa from 1.5.0 to 1.5.1 (#6107)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 14:57:45 -07:00
dependabot[bot] eacccc5fa8
Bump github.com/hashicorp/vault/sdk from 0.16.0 to 0.17.0 (#6092)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.16.0...sdk/v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 13:37:42 -07:00
dependabot[bot] a4561482d2
Bump google.golang.org/api from 0.235.0 to 0.236.0 (#6108)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.235.0 to 0.236.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.235.0...v0.236.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.236.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 10:35:19 -07:00
dependabot[bot] 9ece0645bc
Bump the aws-sdk group across 1 directory with 2 updates (#6099)
Bumps the aws-sdk group with 2 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.223.0 to 1.224.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.223.0...service/ec2/v1.224.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.79.1 to 1.80.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.79.1...service/s3/v1.80.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.224.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.80.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 11:40:10 -07:00
dependabot[bot] 9287c56b11
Bump google.golang.org/grpc from 1.72.1 to 1.72.2 (#6102)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.72.1 to 1.72.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.72.1...v1.72.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.72.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 11:38:43 +01:00
dependabot[bot] 8841281892
Bump github.com/shirou/gopsutil/v4 from 4.25.4 to 4.25.5 (#6103)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.25.4 to 4.25.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-version: 4.25.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 21:04:54 +01:00
dependabot[bot] 13db20d282
Bump github.com/open-policy-agent/opa from 1.4.2 to 1.5.0 (#6098)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.4.2...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 13:11:06 +01:00
dependabot[bot] aaa5235f7e
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#6096)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.54.0 to 1.55.0
- [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/spanner/v1.54.0...spanner/v1.55.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-version: 1.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 10:49:34 +01:00
Sorin Dumitru 4c28ec2268
Improve performance for fetching authorized entries (#6034)
* Reduce some code duplication in the entry cache

This also improves performance slightly since we no longer clone some slices.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-05-30 19:13:07 -03:00
dependabot[bot] 80001e9179
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#6082)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.21.2 to 1.22.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.21.2...kms/v1.22.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/kms
  dependency-version: 1.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-29 14:34:28 -03:00
dependabot[bot] 11de50bb38
Bump github.com/google/go-containerregistry from 0.20.3 to 0.20.5 (#6085)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.20.3 to 0.20.5.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.3...v0.20.5)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-version: 0.20.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-29 11:53:15 +01:00
dependabot[bot] c2f72bd8b7
Bump sigs.k8s.io/controller-runtime from 0.20.4 to 0.21.0 (#6089)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.4 to 0.21.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.4...v0.21.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 18:13:44 +01:00
dependabot[bot] 08fbaa2a95
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#6081)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.218.0 to 1.219.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.218.0...service/ec2/v1.219.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.219.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 11:15:44 +01:00
Sorin Dumitru 10dae54b05
Bump go to 1.24.3 (#6088)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-05-28 06:47:10 +01:00
kfox1111 41aedaea5a
Fix metrics/health checks when retry_bootstrap=true (#6063)
* Fix metrics/health checks when retry_bootstrap=true

When retry_bootstrap is true, during the startup/retrying, health
checks / metrics are not started. This time is currently is capped at
5 minutes, requiring fairly long health check delays on Kubernetes,
and no ability to collect metrics on what its doing.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2025-05-27 15:26:27 -03:00
dependabot[bot] 5e7fe55ad2
Bump the k8s-io group with 5 updates (#6078)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.33.0` | `0.33.1` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.33.0` | `0.33.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.33.0` | `0.33.1` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.33.0` | `0.33.1` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.33.0` | `0.33.1` |


Updates `k8s.io/api` from 0.33.0 to 0.33.1
- [Commits](https://github.com/kubernetes/api/compare/v0.33.0...v0.33.1)

Updates `k8s.io/apimachinery` from 0.33.0 to 0.33.1
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.33.0...v0.33.1)

Updates `k8s.io/client-go` from 0.33.0 to 0.33.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.33.0...v0.33.1)

Updates `k8s.io/kube-aggregator` from 0.33.0 to 0.33.1
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.33.0...v0.33.1)

Updates `k8s.io/mount-utils` from 0.33.0 to 0.33.1
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.33.0...v0.33.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-27 16:48:40 +01:00
dependabot[bot] 993bab01a8
Bump github.com/jackc/pgx/v5 from 5.7.4 to 5.7.5 (#6077)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.4 to 5.7.5.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.4...v5.7.5)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.7.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-22 14:43:01 +01:00
dependabot[bot] de2c63f9a8
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#6070)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.9.0 to 1.10.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/go-mgmt-sdk-release-guideline.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.9.0...sdk/azcore/v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-22 12:04:10 +01:00
Agustín Martínez Fayó 0b0b86a1d3
Add ARM64 support for integration tests in GitHub workflows (#6059)
* Add ARM64 support for integration tests on GitHub workflows

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-05-20 18:30:02 -03:00
Sorin Dumitru 9aebf800d1
Bump SPIRE v1.12.3 (#6080)
* Use Policy field instead of PolicyIdentifiers in cert templates (#6074)

Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Bump SPIRE v1.12.3

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-05-20 15:50:52 -03:00
dependabot[bot] f448057e3f
Bump github.com/googleapis/gax-go/v2 from 2.14.1 to 2.14.2 (#6073)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-version: 2.14.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 16:10:33 +01:00
dependabot[bot] 1810d8c9fe
Bump google.golang.org/grpc from 1.72.0 to 1.72.1 (#6072)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.72.0 to 1.72.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.72.0...v1.72.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.72.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 15:27:22 +01:00
dependabot[bot] 8cd40be1de
Bump github.com/hashicorp/vault/sdk from 0.15.2 to 0.16.0 (#6071)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.15.2 to 0.16.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.15.2...sdk/v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 13:41:48 +01:00
dependabot[bot] ea97e994b8
Bump the aws-sdk group across 1 directory with 2 updates (#6068)
Bumps the aws-sdk group with 2 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.213.0 to 1.218.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.213.0...service/ec2/v1.218.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.41.1 to 1.42.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ivs/v1.41.1...service/s3/v1.42.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.218.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-version: 1.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 11:05:26 +01:00
kfox1111 81d54ef5ba
Don't contact trust_bundle_url needlessly (#6065)
* Don't contact trust_bundle_url needlessly

The agent contacts the trust_bundle_url on startup even if it already
has a trust bundle. If connection fails, the agent fails. This
requirement puts more load on the server needlessly, and either makes
the agent lower availability or puts higher availability requirements
on the server. Change it so that this doesn't happen.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2025-05-15 17:39:53 -03:00
dependabot[bot] 03d18e4024
Bump google.golang.org/api from 0.230.0 to 0.233.0 (#6067)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.230.0 to 0.233.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.230.0...v0.233.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.233.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-15 15:38:10 +01:00
dependabot[bot] d0b274e6c3
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#6066)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.53.0 to 1.54.0
- [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/spanner/v1.53.0...spanner/v1.54.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-version: 1.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-15 10:51:57 -03:00
dependabot[bot] 843614b927
Bump github.com/open-policy-agent/opa from 1.4.0 to 1.4.2 (#6046)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-15 12:26:24 +01:00
dependabot[bot] 1b15dd811e
Bump github.com/google/go-tpm from 0.9.3 to 0.9.5 (#6062)
Bumps [github.com/google/go-tpm](https://github.com/google/go-tpm) from 0.9.3 to 0.9.5.
- [Release notes](https://github.com/google/go-tpm/releases)
- [Commits](https://github.com/google/go-tpm/compare/v0.9.3...v0.9.5)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm
  dependency-version: 0.9.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-15 11:13:38 +01:00
Carlo Teubner 6709c8b6b4
Delete some dead code (#6058)
I ran
    go run golang.org/x/tools/cmd/deadcode@latest -test ./...
and manually reviewed the result.

I selected a subset of "dead code" (never-called functions) to delete. I
did not delete some other functions that seemed like they could still be
useful in future.

One function flagged as dead was "DeltaSecretsTest" in
pkg/agent/endpoints/sdsv3/handler_test.go, which seems like it was a
misspelled function that was intended as a test case. I tried renaming
it to "TestDeltaSecrets" but it turned out to be broken and hard to fix.
Since it only tests that an RPC method is unimplemented, I opted to just
remove the function instead.

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2025-05-15 10:07:05 +01:00
dependabot[bot] 3e892f15d6
Bump golang.org/x/net from 0.39.0 to 0.40.0 (#6061)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/net/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-14 11:51:23 -03:00
kfox1111 66559bc70f
Add file mode to oidc-discovery-provider (#6025)
* Add file mode to oidc-discovery-provider

This enables the oidc-discovery-provider to read the trust bundle from a
file.

Fixes: https://github.com/spiffe/spire/issues/6017

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2025-05-13 16:24:11 -03:00
dependabot[bot] 4dd9a149eb
Bump golang.org/x/sys from 0.32.0 to 0.33.0 (#6047)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/sys/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-08 19:37:44 +01:00
dependabot[bot] 662da58da3
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#6045)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.52.0 to 1.53.0
- [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/spanner/v1.52.0...spanner/v1.53.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-version: 1.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-08 07:30:50 +01:00
Marcos Yacob e5ad056d5e
Bump SPIRE v1.12.2 (#6052)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2025-05-07 13:39:56 -03:00
dependabot[bot] 4741d49d88
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#6040)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.212.0 to 1.213.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.212.0...service/ec2/v1.213.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.213.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 13:33:03 -07:00
dependabot[bot] f1692f46dc
Bump github.com/shirou/gopsutil/v4 from 4.25.3 to 4.25.4 (#6041)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.25.3 to 4.25.4.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.3...v4.25.4)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-version: 4.25.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 11:38:11 -07:00
dependabot[bot] 449b6bf68a
Bump github.com/open-policy-agent/opa from 1.3.0 to 1.4.0 (#6042)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 11:06:08 -07:00
Sorin Dumitru 9ba374537d
Include SPIFFE ID in audit logs for NewJWTSVID (#6036)
This is present in the logs for BatchNewX509SVID so it should also be present here.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-04-30 06:56:11 +01:00
Sorin Dumitru 59f23995d2
Fix the BuildSQL benchmark (#6033)
Without including the alias in the name we get duplicate entry errors and the benchmark fails completely.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-04-29 20:34:06 +01:00
Faisal Memon 2bb1232798
Reduce event timeout to 5 minutes (#5966)
* Reduce event timeout to 5 minutes

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2025-04-29 18:25:50 +01:00
Mike Brown 7015e3a502
pipe through IGNORE_SUITES (#6020)
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2025-04-29 09:52:29 -03:00
kfox1111 31b855eefc
Extract the trust bundle code from agent/cli/run (#6021)
* Extract the trust bundle code from agent/cli/run

The trust bundle fetching code is only available from the cli run file.
It will need to be in a more common location for reattestation code to
come. We move the existing code to a common location with as few changes
as possible. This will make future reviews easier as changes will not
involve moving large blocks of code at the same time as changing
behavior for reattestation support.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add tests

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix path

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2025-04-28 23:49:24 -03:00
Mike Brown 5248b48d78
adding additional unit test variations for sigstore (#6023)
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2025-04-28 14:56:24 -03:00
dependabot[bot] a95033336c
Bump github.com/sigstore/sigstore from 1.9.3 to 1.9.4 (#6032)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.9.3...v1.9.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-version: 1.9.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 09:51:23 +01:00
dependabot[bot] 1c2456c95d
Bump the k8s-io group with 5 updates (#6031)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.4` | `0.33.0` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.4` | `0.33.0` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.4` | `0.33.0` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.32.4` | `0.33.0` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.32.4` | `0.33.0` |


Updates `k8s.io/api` from 0.32.4 to 0.33.0
- [Commits](https://github.com/kubernetes/api/compare/v0.32.4...v0.33.0)

Updates `k8s.io/apimachinery` from 0.32.4 to 0.33.0
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.4...v0.33.0)

Updates `k8s.io/client-go` from 0.32.4 to 0.33.0
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.4...v0.33.0)

Updates `k8s.io/kube-aggregator` from 0.32.4 to 0.33.0
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.32.4...v0.33.0)

Updates `k8s.io/mount-utils` from 0.32.4 to 0.33.0
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.32.4...v0.33.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 08:07:24 +01:00
dependabot[bot] 5ef3d8dd1e
Bump google.golang.org/api from 0.229.0 to 0.230.0 (#6029)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.229.0 to 0.230.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.229.0...v0.230.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.230.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-27 18:33:05 +01:00
dependabot[bot] 3badfa8b37
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#6027)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.51.0 to 1.52.0
- [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/spanner/v1.51.0...spanner/v1.52.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-version: 1.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-27 06:26:12 +01:00
Sorin Dumitru acbbb296d1
Add more details to the AWS Roles Anywhere publisher (#5989)
This came up on Slack and I think having some more details in here about the reasons we need an UpstreamAuthority plugin would help

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-04-26 07:10:03 +01:00
Mike Brown 01ebc0e982
correct wording of error message; add unified cgroups test (#6030)
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2025-04-25 20:07:01 +01:00
dependabot[bot] 3d68fd28e5
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#6026)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.211.1 to 1.212.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.211.1...service/ec2/v1.212.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.212.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-24 19:43:35 +01:00
dependabot[bot] 8e3588f1dd
Bump the k8s-io group with 5 updates (#6028)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.3` | `0.32.4` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.3` | `0.32.4` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.3` | `0.32.4` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.32.3` | `0.32.4` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.32.3` | `0.32.4` |


Updates `k8s.io/api` from 0.32.3 to 0.32.4
- [Commits](https://github.com/kubernetes/api/compare/v0.32.3...v0.32.4)

Updates `k8s.io/apimachinery` from 0.32.3 to 0.32.4
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.3...v0.32.4)

Updates `k8s.io/client-go` from 0.32.3 to 0.32.4
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.3...v0.32.4)

Updates `k8s.io/kube-aggregator` from 0.32.3 to 0.32.4
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.32.3...v0.32.4)

Updates `k8s.io/mount-utils` from 0.32.3 to 0.32.4
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.32.3...v0.32.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.32.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.32.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-version: 0.32.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-version: 0.32.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-version: 0.32.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-24 16:11:10 +01:00
dependabot[bot] 66d95c8f54
Bump google.golang.org/grpc from 1.71.1 to 1.72.0 (#6022)
* Bump google.golang.org/grpc from 1.71.1 to 1.72.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.71.1 to 1.72.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.71.1...v1.72.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.72.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add new grpc_health_v1 rpc

Latest version of gRPC added a new rpc to the service so we need to add the scaffolding for it.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-04-23 21:50:43 +01:00
dependabot[bot] 94b907137a
Bump github.com/docker/docker from 28.0.4+incompatible to 28.1.1+incompatible (#6018)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.0.4+incompatible to 28.1.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.0.4...v28.1.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.1.1+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update docker engine API version in test

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-04-20 10:59:11 -03:00
Mike Brown 8ce1b369ba
update urls to security assessments (#6012)
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2025-04-20 06:15:24 +01:00
dependabot[bot] ed5f781fcb
Bump github.com/sigstore/rekor from 1.3.9 to 1.3.10 (#6010)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.9 to 1.3.10.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.9...v1.3.10)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-version: 1.3.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-19 17:35:45 +02:00
dependabot[bot] 31a32b1781
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.6 to 1.37.7 (#6015)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.6 to 1.37.7.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.7/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.6...v1.37.7)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-version: 1.37.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-19 16:44:55 +02:00
Faisal Memon 7a7ad6e894
Fetch updated cache entries in bulk (#5970)
Use the new FetchRegistrationEntries API from #5910 to get the full list of updated entries rather than fetching them individually.

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2025-04-19 08:37:36 +01:00
dependabot[bot] 9ce2aef3ce
Bump github.com/mattn/go-sqlite3 from 1.14.27 to 1.14.28 (#6014)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.27 to 1.14.28.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.27...v1.14.28)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-version: 1.14.28
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-18 19:32:21 +01:00
dependabot[bot] 3420abfe3e
Bump google.golang.org/api from 0.228.0 to 0.229.0 (#6013)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.228.0 to 0.229.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.228.0...v0.229.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.229.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-18 13:03:27 -03:00
Sorin Dumitru d47d6a32e4
Upgrade to go 1.24.2 (#6009)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-04-18 11:26:09 -03:00
kfox1111 d76a21aaeb
Unix socket support for trust bundle URL (#5932)
* Unix socket support for trust bundle URL

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Pass metadata to the remote

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix test

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix extra space

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Revert param passing bit for now.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Reserve params for later use

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Update path

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Apply suggestions from code review

Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add socket test

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add config tests

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-04-17 10:01:15 -07:00
dependabot[bot] 83be5079d2
Bump github.com/sigstore/sigstore from 1.9.1 to 1.9.3 (#6006)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.9.1 to 1.9.3.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.9.1...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-version: 1.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 20:33:13 +02:00
Tyler Schade 392bafd482
remove dead make target (#6008)
Signed-off-by: tjons <tylerschade99@gmail.com>
2025-04-11 07:19:26 +01:00
dependabot[bot] 6440c58f74
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#6005)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.2 to 1.9.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/azidentity/v1.8.2...sdk/azcore/v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-10 17:38:04 +01:00
dependabot[bot] a9f27c9b8c
Bump golang.org/x/net from 0.38.0 to 0.39.0 (#6003)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.38.0 to 0.39.0.
- [Commits](https://github.com/golang/net/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-10 16:55:11 +01:00
dependabot[bot] f769f54d6a
Bump github.com/prometheus/client_golang from 1.21.1 to 1.22.0 (#6004)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.21.1 to 1.22.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.21.1...v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-09 07:16:42 +01:00
dependabot[bot] 91da9d334c
Bump github.com/go-jose/go-jose/v4 from 4.0.5 to 4.1.0 (#6001)
* Bump github.com/go-jose/go-jose/v4 from 4.0.5 to 4.1.0

Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.0.5 to 4.1.0.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.0.5...v4.1.0)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Resolve test issue

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-04-08 16:43:39 -03:00
dependabot[bot] f99f8e3131
Bump github.com/sigstore/cosign/v2 from 2.4.3 to 2.5.0 (#6000)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.4.3 to 2.5.0.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.4.3...v2.5.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 15:17:56 -03:00
dependabot[bot] dfb104403e
Bump github.com/go-sql-driver/mysql from 1.9.1 to 1.9.2 (#5999)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.9.1...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-version: 1.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 19:48:02 +01:00
dependabot[bot] 9302a6ef78
Bump google.golang.org/grpc from 1.71.0 to 1.71.1 (#5998)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.71.0 to 1.71.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.71.0...v1.71.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.71.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 19:12:10 +01:00
dependabot[bot] 3d9a1f5ddb
Bump golang.org/x/crypto from 0.36.0 to 0.37.0 (#5995)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 18:40:01 +01:00
dependabot[bot] ceee48c14e
Bump github.com/gofrs/uuid/v5 from 5.3.1 to 5.3.2 (#5978)
Bumps [github.com/gofrs/uuid/v5](https://github.com/gofrs/uuid) from 5.3.1 to 5.3.2.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v5.3.1...v5.3.2)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 22:01:20 +01:00
dependabot[bot] 7c0778b5ed
Bump github.com/uber-go/tally/v4 from 4.1.16 to 4.1.17 (#5992)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.16 to 4.1.17.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.16...v4.1.17)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-version: 4.1.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 20:40:04 +01:00
dependabot[bot] 3997503420
Bump cloud.google.com/go/iam in the google-cloud-sdk group (#5983)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/iam` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/tpu/v1.4.1...ids/v1.5.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-version: 1.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 19:22:01 +01:00
dependabot[bot] 4acd4a0de8
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore in the azure-sdk group (#5991)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.17.1 to 1.18.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.17.1...sdk/azcore/v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-version: 1.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 18:25:04 +01:00
dependabot[bot] a25a6527e2
Bump github.com/shirou/gopsutil/v4 from 4.25.2 to 4.25.3 (#5984)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.25.2 to 4.25.3.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.2...v4.25.3)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-version: 4.25.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 17:53:02 +01:00
dependabot[bot] 1c547ab293
Bump the aws-sdk group across 1 directory with 3 updates (#5986)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.210.0 to 1.211.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.210.0...service/ec2/v1.211.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.40.0 to 1.41.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.40.0...service/s3/v1.41.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.78.0 to 1.79.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.78.0...service/s3/v1.79.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.211.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-version: 1.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-version: 1.79.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 17:24:36 +01:00
dependabot[bot] c4aef297cb
Bump golang.org/x/net from 0.37.0 to 0.38.0 (#5979)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 16:41:58 +01:00
dependabot[bot] f0f6c2018e
Bump github.com/mattn/go-sqlite3 from 1.14.24 to 1.14.27 (#5990)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.24 to 1.14.27.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.24...v1.14.27)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-version: 1.14.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 16:14:20 +01:00
Dmytro A a56fb1face
Fix OIDC Discovery Provider debug log handler (#5981)
There is no UserAgent field available on Request to access. Instead, we need to use UserAgent method, which extracts the data from the header:
```
// UserAgent returns the client's User-Agent, if sent in the request.
func (r *Request) UserAgent() string {
	return r.Header.Get("User-Agent")
}
```

Signed-off-by: Dmytro A <hippers@gmail.com>
2025-04-01 15:02:10 +01:00
dependabot[bot] 3816e90181
Bump github.com/open-policy-agent/opa from 1.2.0 to 1.3.0 (#5976)
* Bump github.com/open-policy-agent/opa from 1.2.0 to 1.3.0

Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Tidy go.mod

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-03-27 12:47:52 -07:00
Sorin Dumitru 2b23ecdef4
Cleanup some temporary checks in journal loading (#5918)
These were added a long time ago and are not needed anymore.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-27 18:33:37 +00:00
dependabot[bot] 84c9f8c0c5
Bump github.com/jackc/pgx/v5 from 5.7.2 to 5.7.4 (#5974)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.2 to 5.7.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.2...v5.7.4)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-26 21:51:56 -07:00
dependabot[bot] 8bb9df8d1c
Bump sigs.k8s.io/controller-runtime from 0.20.3 to 0.20.4 (#5973)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.3 to 0.20.4.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.3...v0.20.4)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-26 19:58:30 -07:00
Ryan Turner ef6b95ebd9
Bump protobuf compiler to v29.4 (#5972)
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-03-26 10:31:03 -07:00
dependabot[bot] 010b34ee05
Bump github.com/docker/docker (#5975)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.0.3+incompatible to 28.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.0.3...v28.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-26 10:06:36 -07:00
Sorin Dumitru 76adc18d21
integration tests: wait for spire-server to come up (#5967)
* integration tests: wait for spire-server to come up

We don't wait for spire-server to be up before trying to make use of it. This sometimes leads to failures in integration tests, for example when trying to read the bundle because it might not be available yet.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-26 06:45:07 +00:00
Sorin Dumitru af1a686c04
Add stalebot configuration for blocked issues (#5959)
In the case issues are waiting on some update or are blocked on some other project, we want to be mark those issues as stale quicker, so we can have a look at the blocking issue.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-03-25 22:02:09 -07:00
dependabot[bot] 7a9fc4ca23
Bump google.golang.org/api from 0.225.0 to 0.227.0 (#5958)
* Bump google.golang.org/api from 0.225.0 to 0.227.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.225.0 to 0.227.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.225.0...v0.227.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regenerate protos

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-03-25 20:48:50 -07:00
dependabot[bot] 2db7e8969a
Bump github.com/go-sql-driver/mysql from 1.9.0 to 1.9.1 (#5963)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 15:56:08 -07:00
dependabot[bot] 2317be876c
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore in the azure-sdk group (#5962)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.17.0 to 1.17.1
- [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.17.0...sdk/azcore/v1.17.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 14:47:08 -07:00
dependabot[bot] 4ad6c1b55d
Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#5965)
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:49:37 -07:00
dependabot[bot] acd8d02800
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.5 to 1.37.6 (#5964)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.5 to 1.37.6.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.6/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.5...v1.37.6)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 18:30:02 +00:00
dependabot[bot] 8489f7b35d
Bump github.com/docker/docker (#5971)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.0.1+incompatible to 28.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.0.1...v28.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 17:42:39 +00:00
Faisal Memon 826a819422
Add FetchRegistrationEntries API (#5910)
* Add FetchRegistrationEntries API

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Cleanup, add unit test

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Typo

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix linter errors

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Update pkg/server/datastore/sqlstore/sqlstore.go

Co-authored-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Use map

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Deleted entry unit test

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix unit tests

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Function naming

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Cleanup, more unit tests

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Preallocate array

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Minor cleanup

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Improve unit testing

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix issue with selectors not showing up

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix linter error

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fill in sql variants

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

---------

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Sorin Dumitru <sorin@returnze.ro>
2025-03-24 10:08:55 +00:00
Sorin Dumitru 8f909c8422
Bump SPIRE 1.12.1 (#5968)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-22 12:11:54 -03:00
dependabot[bot] 458652ee47
Bump the aws-sdk group with 2 updates (#5951)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.39.0 to 1.40.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.39.0...service/s3/v1.40.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.209.0 to 1.210.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.209.0...service/ec2/v1.210.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-20 14:42:40 -03:00
Sorin Dumitru ada8855749
valid_csr test: move mock clock initialisation before any operations (#5942)
Otherwise by the time we run the test the seconds of the clock might have rolled and cause us to think that the CA is valid for 1 hour - 1 second instead of 1 hour.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-03-18 15:47:07 -03:00
jananiarunachalam e35cb7eb08
Update database connections defaults (#5853)
* Update database connections defaults

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* Update test

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* PR comment: SetConnMaxIdleTime

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* PR comment: update doc

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* Update doc: 30s -> unlimited

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* SetConnMaxLifetime -> SetConnMaxIdleTime

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

* Update doc w ConnMaxIdleTime

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>

---------

Signed-off-by: jananiarunachalam <jananiarunachalam17@gmail.com>
2025-03-14 17:47:12 +00:00
dependabot[bot] ecec291c9c
Bump the k8s-io group with 5 updates (#5947)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.2` | `0.32.3` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.2` | `0.32.3` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.2` | `0.32.3` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.32.2` | `0.32.3` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.32.2` | `0.32.3` |


Updates `k8s.io/api` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/api/compare/v0.32.2...v0.32.3)

Updates `k8s.io/apimachinery` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.2...v0.32.3)

Updates `k8s.io/client-go` from 0.32.2 to 0.32.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.2...v0.32.3)

Updates `k8s.io/kube-aggregator` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.32.2...v0.32.3)

Updates `k8s.io/mount-utils` from 0.32.2 to 0.32.3
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.32.2...v0.32.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-14 14:36:50 +00:00
dependabot[bot] ccb4914983
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5949)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.50.0 to 1.51.0
- [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/spanner/v1.50.0...spanner/v1.51.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-14 13:47:18 +00:00
Amit Upadhyay 136a77dbcc
Remove the deprecated k8s_sat node attestor plugin (#5703)
Signed-off-by: Amit Upadhyay <amit.upadhyay021@outlook.com>
2025-03-14 12:47:26 +00:00
Dmitry Kartsev 84ef545c58
Adding support for publishing bundle to Minio Object Storage (#5395) (#5757)
Signed-off-by: Dmitry Kartsev <dimssss@gmail.com>
2025-03-13 18:13:40 +00:00
dependabot[bot] 40fa690c7b
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5946)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.208.0 to 1.209.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.208.0...service/ec2/v1.209.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 21:04:54 +00:00
dependabot[bot] 9dcdf4c362
Bump google.golang.org/api from 0.224.0 to 0.225.0 (#5948)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.224.0 to 0.225.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.224.0...v0.225.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 20:33:14 +00:00
Carlo Teubner f6a11a0ae0
Apply gopls modernize pass (#5909)
* Apply gopls modernize pass

Recent gopls version contain a "modernize" pass that can also be run
standalone. Run this on the spire repo, with small manual fixups
afterwards.

The command I ran was:

    go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix ./...

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>

* More simplifications per review comments

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>

---------

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2025-03-12 07:00:32 +00:00
Faisal Memon 384a1a99ed
Allow reads for cache events to go to RO DB (#5911)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2025-03-11 19:38:41 +00:00
dependabot[bot] 11d5780015
Bump github.com/sigstore/sigstore from 1.9.0 to 1.9.1 (#5943)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 17:24:55 +00:00
dependabot[bot] ca7d7d6b26
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5940)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.207.1 to 1.208.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.207.1...service/ec2/v1.208.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 10:54:12 +00:00
dependabot[bot] eba9465b05
Bump sigs.k8s.io/controller-runtime from 0.20.2 to 0.20.3 (#5941)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.2 to 0.20.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.2...v0.20.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 09:25:32 +00:00
Sorin Dumitru 266a98da1c
Update default integration test binary and image versions (#5934)
For k8s related versions I chose 1.30.10 since it's currently the oldest stable release.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-10 21:48:23 +00:00
Sorin Dumitru 98176459c0
Upgrade to Go 1.24.1 (#5933)
* Upgrade to go 1.24.1

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Also update go.mod

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-10 21:22:06 +00:00
Sorin Dumitru 851dbbf451
Make 'use_sync_authorized_entries' the default (#5906)
* Make 'use_sync_authorized_entries' the default

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-10 20:56:31 +00:00
Kelly Kane 6670ee71da
Update to Ubuntu 24.04 base dev image image. (#5936)
Signed-off-by: Kelly Kane <kelly@hawknetworks.com>
2025-03-10 20:29:31 +00:00
dependabot[bot] 866412ade7
Bump github.com/sigstore/sigstore from 1.8.15 to 1.9.0 (#5930)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.15 to 1.9.0.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.15...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 12:48:34 +00:00
dependabot[bot] 079033d370
Bump google.golang.org/api from 0.223.0 to 0.224.0 (#5929)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.223.0 to 0.224.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.223.0...v0.224.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-08 07:50:18 +00:00
Sorin Dumitru 1a4f6f0146
Default 'use_legacy_downstream_x509_ca_ttl' to false (#5917)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-03-06 21:42:17 +00:00
dependabot[bot] 267ef8e40f
Bump golang.org/x/net from 0.35.0 to 0.37.0 (#5928)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.37.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 09:56:04 +00:00
dependabot[bot] 99f6f5bacd
Bump google.golang.org/grpc from 1.70.0 to 1.71.0 (#5926)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.70.0 to 1.71.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.70.0...v1.71.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 06:35:05 +00:00
dependabot[bot] 46a98d46da
Bump golang.org/x/sync from 0.11.0 to 0.12.0 (#5927)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sync/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 20:44:18 +00:00
dependabot[bot] 2adcd08c2b
Bump golang.org/x/time from 0.10.0 to 0.11.0 (#5923)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/time/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 20:15:03 +00:00
dependabot[bot] f4bf647fe5
Bump golang.org/x/sys from 0.30.0 to 0.31.0 (#5924)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/sys/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 19:00:16 +00:00
dependabot[bot] 64722ec925
Bump github.com/aws/aws-sdk-go-v2/service/ec2 (#5922)
Bumps the aws-sdk group with 1 update in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.206.0 to 1.207.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.206.0...service/ec2/v1.207.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 09:49:29 +00:00
dependabot[bot] bb33927e65
Bump github.com/prometheus/client_golang from 1.21.0 to 1.21.1 (#5921)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.21.0...v1.21.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 07:57:23 +00:00
dependabot[bot] e6714a4c3f
Bump github.com/shirou/gopsutil/v4 from 4.25.1 to 4.25.2 (#5915)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.25.1 to 4.25.2.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.1...v4.25.2)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 07:15:54 +00:00
Ryan Turner 0057a45d64
Manage golangci-lint with `go tool` (#5914)
Go 1.24.0 gained support for managing Go tools using the `go tool` command.
Manage golangci-lint as a Go tool to simplify how it's set up and so
that we can get auto-raised Dependabot PRs for it.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-03-04 21:48:44 +00:00
dependabot[bot] c98e904ba5
Bump the aws-sdk group with 8 updates (#5912)
Bumps the aws-sdk group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.38.1` | `1.39.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.205.0` | `1.206.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.39.1` | `1.40.0` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.37.18` | `1.38.0` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.37.0` | `1.38.0` |
| [github.com/aws/aws-sdk-go-v2/service/rolesanywhere](https://github.com/aws/aws-sdk-go-v2) | `1.16.0` | `1.17.0` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.77.0` | `1.78.0` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.34.0` | `1.35.0` |


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.38.1 to 1.39.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.38.1...service/s3/v1.39.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.205.0 to 1.206.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.205.0...service/ec2/v1.206.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.39.1 to 1.40.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.39.1...service/s3/v1.40.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.37.18 to 1.38.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.38.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/kms/v1.37.18...service/s3/v1.38.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.37.0 to 1.38.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.38.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.37.0...service/s3/v1.38.0)

Updates `github.com/aws/aws-sdk-go-v2/service/rolesanywhere` from 1.16.0 to 1.17.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.17.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.0...v1.17.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.77.0 to 1.78.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.77.0...service/s3/v1.78.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.34.0 to 1.35.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.34.0...v1.35.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rolesanywhere
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 09:58:07 +00:00
dependabot[bot] d9198c6051
Bump github.com/open-policy-agent/opa from 1.1.0 to 1.2.0 (#5913)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-02 06:24:27 +00:00
dependabot[bot] e2c3055005
Bump github.com/hashicorp/vault/sdk from 0.15.0 to 0.15.2 (#5908)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.15.0 to 0.15.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.15.0...sdk/v0.15.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-28 15:48:15 +00:00
Ryan Turner 90c6753d30
Update to Go 1.24.0 (#5880)
* [WIP] Update to Go 1.24.0

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Make RSA keys in TPM unit tests larger

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Suppress staticcheck linter warnings for deprecated OPA v1 packages

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Fix merge

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

* Replace hardcoded keys with ones generated by testkey

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-02-28 10:37:43 +00:00
Valentin Fadeev 8a8253894e
Edited and formatted x509pop server nodeattestor doc (#5876)
* Edited and formatted x509pop server nodeattestor doc

Signed-off-by: Valentin Fadeev <vfadeev@bloomberg.net>

* applied suggestions from code review

Signed-off-by: Valentin Fadeev <vfadeev@bloomberg.net>

---------

Signed-off-by: Valentin Fadeev <vfadeev@bloomberg.net>
2025-02-28 07:53:59 +00:00
Sorin Dumitru 76f6104c37
spire-server: improve entry lookup for NewJWTSvid and BatchX509SVID requests (#5819)
* server: speed up specific entry lookup

When we know the entry or entries we are looking up we can do
a faster lookup since we only have to find and copy the entries specified
in the lookup request.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-28 06:28:24 +00:00
dependabot[bot] 9307432c4f
Bump github.com/google/go-tpm-tools from 0.4.4 to 0.4.5 (#5907)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.4.4...v0.4.5)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 16:09:04 -03:00
dependabot[bot] 81cc2c173c
Bump github.com/aws/aws-sdk-go-v2/service/ec2 (#5903)
Bumps the aws-sdk group with 1 update in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.203.0 to 1.205.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.203.0...service/ec2/v1.205.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 11:01:40 +00:00
dependabot[bot] 8175933e52
Bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4 (#5904)
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 09:29:34 +00:00
dependabot[bot] 67b2d2230f
Bump google.golang.org/api from 0.222.0 to 0.223.0 (#5900)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.222.0 to 0.223.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.222.0...v0.223.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 07:42:30 +00:00
dependabot[bot] dd52118e19
Bump golang.org/x/crypto from 0.33.0 to 0.35.0 (#5898)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.33.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 07:00:54 +00:00
dependabot[bot] ebbf4516a9
Bump github.com/docker/docker (#5901)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.0.0+incompatible to 28.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.0.0...v28.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 21:45:01 +00:00
dependabot[bot] 7d03385f70
Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#5897)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 15:20:41 -03:00
dependabot[bot] 73a1ddb8bb
Bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5 (#5895)
Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.0.4...v4.0.5)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 14:54:48 -03:00
dependabot[bot] 2ae3be687f
Bump github.com/docker/docker from 27.5.1+incompatible to 28.0.0+incompatible (#5890)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.5.1+incompatible to 28.0.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.5.1...v28.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Stop using deprecated types

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-02-21 12:38:24 -08:00
dependabot[bot] 1a52b23ea1
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#5891)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.20.5 to 1.21.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.20.5...kms/v1.21.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-21 10:09:54 -08:00
Carlo Teubner 5f3487ed5a
golangci-lint: update to latest version & related tweaks (#5737)
* Update golangci-lint to latest version & tweaks

The latest golangci-lint version comes with two new detected issues,
both of which we choose to silence here:

1) staticcheck: Deprecation of (crypto/x509).CertPool.Subjects():
   This is still useful to us in the tests and there seems to be no good
   alternative (we use it merely to count the number of certs).
2) gosec: Potential integer overflow:
   This is a potentially useful check, but I didn't want to address this
   as part of this PR. https://github.com/ccoVeille/go-safecast might be
   useful for this (in fact it looks like it was inspired by the recent
   addition of this gosec rule).

Additionally, change the Makefile to tell golangci-lint to emit all
lints, as opposed to imposing its default limits. Those limits could
actually be misleading, as it could e.g. lead to someone disabling lints
without having seen all the reported issues.

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-02-20 15:08:00 -08:00
dependabot[bot] fc71cb9ba4
Bump github.com/aws/smithy-go from 1.22.2 to 1.22.3 (#5888)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.22.2 to 1.22.3.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.22.2...v1.22.3)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-20 12:27:46 -08:00
dependabot[bot] 9b00a58ceb
Bump github.com/sigstore/cosign/v2 from 2.4.1 to 2.4.3 (#5886)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.4.1 to 2.4.3.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.4.1...v2.4.3)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-20 11:35:47 -08:00
dependabot[bot] e755bddad7
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.4 to 1.37.5 (#5889)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.4 to 1.37.5.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.5/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.4...v1.37.5)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-20 11:07:59 -08:00
Shiva Shankar Bidadi Nanjundasamy 4878988646
Add support for San selectors in x509pop node attestor plugin (#5775)
* Add support for San selectors in x509pop node attestor plugin

Signed-off-by: snanjundaswamy <snanjundaswamy@roblox.com>

* modified plugin to use first part in the URI path to be the key of the selector

Signed-off-by: snanjundaswamy <snanjundaswamy@roblox.com>

* removed warning for non-x509pop scheme based sans and redundant selector sorting method

Signed-off-by: snanjundaswamy <snanjundaswamy@roblox.com>

* reformatted x509pop san selector table and fixed log message in san selector parsing logic

Signed-off-by: snanjundaswamy <snanjundaswamy@roblox.com>

---------

Signed-off-by: snanjundaswamy <snanjundaswamy@roblox.com>
2025-02-20 08:44:09 +00:00
dependabot[bot] 653410069c
Bump google.golang.org/api from 0.220.0 to 0.222.0 (#5885)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.220.0 to 0.222.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.220.0...v0.222.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-19 15:42:12 -08:00
dependabot[bot] 518176b889
Bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 (#5884)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.5 to 1.21.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.5...v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-19 15:15:44 -08:00
Sorin Dumitru 532b51964e
Upgrade to OPA v1 (#5769)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-02-19 13:16:42 -08:00
dependabot[bot] 95d7f9fa06
Bump github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0 (#5883)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-19 12:52:20 -08:00
dependabot[bot] 85461f1175
Bump github.com/sigstore/sigstore from 1.8.12 to 1.8.15 (#5882)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.12 to 1.8.15.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.12...v1.8.15)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-19 12:01:08 -08:00
Sorin Dumitru 3fe67eabc7
spire: switch logs to include nanoseconds (#5798)
It makes a bit easier to look at the timing of things inside the server and agent.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-02-19 07:18:53 -08:00
dependabot[bot] 37736e0d96
Bump sigs.k8s.io/controller-runtime from 0.20.1 to 0.20.2 (#5879)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.1 to 0.20.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.1...v0.20.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-18 22:27:35 -08:00
dependabot[bot] 73a5705ddf
Bump the google-cloud-sdk group with 4 updates (#5877)
Bumps the google-cloud-sdk group with 4 updates: [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go), [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go), [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) and [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/iam` from 1.3.0 to 1.4.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/run/v1.3.0...iap/v1.4.0)

Updates `cloud.google.com/go/kms` from 1.20.4 to 1.20.5
- [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.20.4...kms/v1.20.5)

Updates `cloud.google.com/go/secretmanager` from 1.14.2 to 1.14.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/dlp/v1.14.2...dlp/v1.14.3)

Updates `cloud.google.com/go/security` from 1.18.2 to 1.18.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.18.2...kms/v1.18.3)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-18 17:12:08 -08:00
Sorin Dumitru eae6b6da1b
SyncAuthorizedEntries: fix issue with entry id reuse and add integration test (#5764)
* Integration test for sync-authorized-entries

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2025-02-18 13:07:20 -08:00
dependabot[bot] b9a5cb360e
Bump the k8s-io group with 5 updates (#5878)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.1` | `0.32.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.1` | `0.32.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.1` | `0.32.2` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.32.1` | `0.32.2` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.32.1` | `0.32.2` |


Updates `k8s.io/api` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/api/compare/v0.32.1...v0.32.2)

Updates `k8s.io/apimachinery` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.1...v0.32.2)

Updates `k8s.io/client-go` from 0.32.1 to 0.32.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.1...v0.32.2)

Updates `k8s.io/kube-aggregator` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.32.1...v0.32.2)

Updates `k8s.io/mount-utils` from 0.32.1 to 0.32.2
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.32.1...v0.32.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-18 12:31:43 -08:00
dependabot[bot] ec2a110073
Bump github.com/hashicorp/vault/api from 1.15.0 to 1.16.0 (#5862)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 00:19:11 -03:00
dependabot[bot] 1d2aba2969
Bump the aws-sdk group across 1 directory with 3 updates (#5875)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.37.0 to 1.38.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.38.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.37.0...service/s3/v1.38.1)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.202.1 to 1.203.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.202.1...service/ec2/v1.203.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.76.0 to 1.77.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.76.0...service/s3/v1.77.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-16 23:38:00 -03:00
dependabot[bot] b18dad4332
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#5868)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.1 to 1.8.2
- [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/azidentity/v1.8.1...sdk/azidentity/v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-16 22:32:48 -03:00
jzeng04 9754ba1936
Change return type of keymanagerbase Generator to crypto.Signer (#5843)
Signed-off-by: jzeng4 <jzeng04@gmail.com>
2025-02-16 19:03:25 -03:00
Keegan Witt f48d0218c9
Fix spelling error (#5873)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2025-02-16 18:03:55 -03:00
Marcos Yacob b9bfb4f198
Bump spire 1.12.0 (#5870)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2025-02-16 15:29:48 -03:00
dependabot[bot] 05a8531190
Bump github.com/hashicorp/vault/sdk from 0.14.1 to 0.15.0 (#5866)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.14.1 to 0.15.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.14.1...sdk/v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-12 18:25:35 -03:00
dependabot[bot] 53574b864b
Bump github.com/gofrs/uuid/v5 from 5.3.0 to 5.3.1 (#5861)
Bumps [github.com/gofrs/uuid/v5](https://github.com/gofrs/uuid) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v5.3.0...v5.3.1)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 16:26:39 -03:00
dependabot[bot] 2bcb0f0a69
Bump github.com/shirou/gopsutil/v4 from 4.24.12 to 4.25.1 (#5857)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.24.12 to 4.25.1.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.24.12...v4.25.1)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 14:58:59 -03:00
dependabot[bot] db984991bb
Bump golang.org/x/crypto from 0.32.0 to 0.33.0 (#5858)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 21:42:13 +00:00
dependabot[bot] 7ef7e19d7d
Bump github.com/envoyproxy/go-control-plane/envoy from 1.32.3 to 1.32.4 (#5838)
Bumps [github.com/envoyproxy/go-control-plane/envoy](https://github.com/envoyproxy/go-control-plane) from 1.32.3 to 1.32.4.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/envoy/v1.32.3...envoy/v1.32.4)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane/envoy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 22:10:16 +00:00
dependabot[bot] fd833dcd18
Bump google.golang.org/protobuf from 1.36.4 to 1.36.5 (#5851)
* Bump google.golang.org/protobuf from 1.36.4 to 1.36.5

Bumps google.golang.org/protobuf from 1.36.4 to 1.36.5.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regenerate protobuf files

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-09 21:20:05 +00:00
dependabot[bot] 1b343d9c4b
Bump the aws-sdk group across 1 directory with 2 updates (#5849)
Bumps the aws-sdk group with 2 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.38.1 to 1.39.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.38.1...service/ecs/v1.39.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.75.1 to 1.76.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.75.1...service/s3/v1.76.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 20:22:19 +00:00
dependabot[bot] 03fee0ee5d
Bump golang.org/x/sync from 0.10.0 to 0.11.0 (#5852)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sync/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-09 19:52:46 +00:00
Sorin Dumitru 9e098516cc
server: check NotAfter when loading journal (#5836)
Otherwise we can end up with expired CAs which leads to issues

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-06 20:55:44 +00:00
Sorin Dumitru 433a9b218a
Upgrade to go 1.23.6 (#5844)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-06 20:07:19 +00:00
Sorin Dumitru 5f2eb42962
Fix events based cache issues introduced in 1.11.0 (#5842)
* First capture last and skipped events before loading cache

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* events cache: don't drop entries that were not fetched

If we encounter issues fetching any of the entries we need
to fetch we should retry later.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-06 19:39:06 +00:00
dependabot[bot] 5c619829a5
Bump google.golang.org/api from 0.219.0 to 0.220.0 (#5846)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.219.0 to 0.220.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.219.0...v0.220.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 18:42:59 +00:00
dependabot[bot] 5f74f356fa
Bump golang.org/x/time from 0.9.0 to 0.10.0 (#5847)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/time/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 18:12:13 +00:00
kfox1111 03f3db9661
[oidc-discovery-provider] Fix keys url (#5690)
* [oidc-discovery-provider] Fix keys url

When jwt_issuer is specified, it is overriding the jwks key url in
addition to the issuer property. This may cause the subsequent key
retrieval to hit the wrong server, or fail if that server doesn't
actually exist.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Update tests

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add advertised_url support

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Simplify change

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Revert domain name check

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add prefix support

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Cleanup

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix typo

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Update names after feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix typo

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix tests

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix test

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add test for compat behavior. Fix lint.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Update docs

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint issue

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-02-06 14:34:03 +00:00
dependabot[bot] f120f0a9a3
Bump github.com/aws/aws-sdk-go-v2 from 1.35.0 to 1.36.0 (#5834)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.35.0 to 1.36.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.35.0...v1.36.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-04 11:11:42 +00:00
Sorin Dumitru 447bf18382
sdsv3: Don't log error when connection closes (#5835)
If we receive a nil error on the errch it means that the connection
has been closed cleanly. We shouldn't log an error in that case.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-04 08:46:09 +00:00
dependabot[bot] b9de1fe94d
Bump github.com/docker/docker (#5839)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.5.0+incompatible to 27.5.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.5.0...v27.5.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-04 07:45:10 +00:00
dependabot[bot] 7d36608324
Bump github.com/spiffe/go-spiffe/v2 from 2.4.0 to 2.5.0 (#5840)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.4.0...v2.5.0)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-04 07:14:21 +00:00
Sorin Dumitru ba81582525
Use a temporary file for the fakedatastore (#5815)
With a in memory sqlite datastore the database gets cleaned up when all connections to it get closed. If that happens, the next connection to be opened will see an empty database and usually error out.

I've noticed this in tests ocassionally and this seems to make running the db using  not fail.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-02-03 15:03:35 +00:00
dependabot[bot] 925bc9c644
Bump sigs.k8s.io/controller-runtime from 0.20.0 to 0.20.1 (#5833)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.0...v0.20.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 10:45:49 +00:00
dependabot[bot] 8a49547ff2
Bump github.com/hashicorp/go-plugin from 1.6.2 to 1.6.3 (#5832)
Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 10:11:53 +00:00
dependabot[bot] ba05cb7f35
Bump the aws-sdk group across 1 directory with 2 updates (#5830)
Bumps the aws-sdk group with 2 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.200.0 to 1.202.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.200.0...service/ec2/v1.202.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.73.0 to 1.75.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.73.0...service/s3/v1.75.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 07:41:47 +00:00
Sorin Dumitru 79dc6c0351
Fix flaky test TestUpstreamProcessTaintedAuthorityBackoff (#5805)
We need to wait for the backoff to hit the clock.After() call before moving the clock

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-01-31 12:18:18 -03:00
Agustín Martínez Fayó f21ab10c98
Introduce Sorin Dumitru as a CODEOWNER (#5827)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-01-30 18:36:31 -03:00
dependabot[bot] 6952f3c5f9
Bump github.com/sigstore/rekor from 1.3.8 to 1.3.9 (#5825)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.8 to 1.3.9.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.8...v1.3.9)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-30 18:09:03 -03:00
dependabot[bot] 81c4d29107
Bump google.golang.org/api from 0.217.0 to 0.219.0 (#5823)
* Bump google.golang.org/api from 0.217.0 to 0.219.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.217.0 to 0.219.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.217.0...v0.219.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regenerate .pb.go files

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-01-30 16:09:51 -03:00
dependabot[bot] 138f283d7d
Bump github.com/aws/aws-sdk-go-v2 from 1.33.0 to 1.34.0 (#5820)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.33.0...v1.34.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-28 16:55:07 -03:00
Carlo Teubner 33f2cc9a90
golangci-lint: enable copyloopvar & address issues (#5741)
Add the copyloopvar linter, which enforces not creating explicit copies
of the for loop iterator variable, which is no longer necessary as of
Go 1.22.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2025-01-28 15:05:29 -03:00
dependabot[bot] 93587cc58e
Bump github.com/sigstore/rekor from 1.3.7 to 1.3.8 (#5800)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.7 to 1.3.8.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.7...v1.3.8)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 16:46:28 -03:00
Caleb Jonasson 605a4ca239
Docker documentation was incorrectly referencing an invalid tag format (#5809)
Signed-off-by: calebjonasson <caleb.jonasson@gmail.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-24 15:26:54 -03:00
Sorin Dumitru ab1b3411e8
Close fakedatastore when test finishes (#5804)
Generally this isn't needed because the DB object gets cleaned up when the process exits. But when running  I something get crashes with lots of goroutine stack traces from database pools.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-24 13:16:33 -03:00
Ryan Turner 26f547d08b
Update to Go 1.23.5 (#5795)
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-01-24 12:44:03 -03:00
Sorin Dumitru aa532ce382
Temporarily ignore kindes/node:v1.32.1 to unblock CI (#5814)
See https://github.com/kubernetes-sigs/kind/issues/3853 for issues

fixes #5812

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-01-24 11:47:15 -03:00
dependabot[bot] c71fc9111a
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5799)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.199.1 to 1.200.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.199.1...service/ec2/v1.200.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-23 10:38:32 -03:00
dependabot[bot] 50976c35a4
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.3 to 1.37.4 (#5794)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.3 to 1.37.4.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.4/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.3...v1.37.4)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-21 16:05:57 -03:00
dependabot[bot] 349018c3da
Bump github.com/google/go-containerregistry from 0.20.2 to 0.20.3 (#5792)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.20.2 to 0.20.3.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.2...v0.20.3)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-21 11:25:25 -03:00
Ryan Turner 5521b425e7
Remove usage of deprecated grpc-go methods (#5725)
* Remove usage of deprecated grpc-go methods

Replace usage of deprecated `grpc.Dial()`/`grpc.DialContext()` methods
with `grpc.NewClient()`. Also remove usage of `grpc.WithBlock()`,
`grpc.FailOnNonTempDialError()`, and `grpc.WithReturnConnectionError()`
options.

The combination of these changes results in a couple behavioral changes
when setting up gRPC clients:

1. gRPC will no longer dial when creating the client. Instead, it will
wait until the client is used for the first time with an RPC invocation.

2. gRPC uses the DNS resolver by default when building the
`*grpc.ClientConn` using `grpc.NewClient()`, whereas previously it used
to resolve addresses the `passthrough` resolver by default. The result
of this change in behavior is that for any invocations of
`grpc.Dial()`/`grpc.DialContext()` that did not specify a URI scheme,
gRPC now implicitly tries to resolve the address passed to
`grpc.NewClient()` using DNS. This breaks some assumptions in the code.
The workaround to preserve the previous address resolution behavior is
to prepend addresses with no scheme defined with the resolver URI scheme
`passthrough:`.

Also refactored some test-related code in `cmd/spire-server/cli/common`
into a new `test/clitest` package, since it is not intended
for use in production code.

Fixes #5152.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-01-20 13:38:55 -03:00
jenshornan 05c641aa0b
Svidstore gcp region (#5718)
* Add support for regions
* Add support for multiple regions
* Add that regions selector is immutable

Signed-off-by: Jens Hörnström <jens.hornstrom@gmail.com>
2025-01-20 13:08:10 -03:00
dependabot[bot] 50d73f49b5
Bump google.golang.org/protobuf from 1.36.2 to 1.36.3 (#5791)
* Bump google.golang.org/protobuf from 1.36.2 to 1.36.3

Bumps google.golang.org/protobuf from 1.36.2 to 1.36.3.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regenerate .pb.go files

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-20 12:39:26 -03:00
dependabot[bot] 23b524356b
Bump github.com/docker/docker (#5793)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.4.1+incompatible to 27.5.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.4.1...v27.5.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-17 13:42:02 -08:00
dependabot[bot] 5015374576
Bump github.com/hashicorp/vault/sdk from 0.14.0 to 0.14.1 (#5790)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v1.10-v1.15.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.14.0...sdk/v0.14.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-17 11:19:07 -08:00
dependabot[bot] 4e2bc5ed30
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#5785)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.0 to 1.8.1
- [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.8.0...sdk/azidentity/v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 13:31:31 -08:00
dependabot[bot] a208df7186
Bump sigs.k8s.io/controller-runtime from 0.19.4 to 0.20.0 (#5787)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.4 to 0.20.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.4...v0.20.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 11:35:25 -08:00
dependabot[bot] 87f5a06f2d
Bump the k8s-io group with 5 updates (#5786)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.0` | `0.32.1` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.0` | `0.32.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.0` | `0.32.1` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.32.0` | `0.32.1` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.32.0` | `0.32.1` |


Updates `k8s.io/api` from 0.32.0 to 0.32.1
- [Commits](https://github.com/kubernetes/api/compare/v0.32.0...v0.32.1)

Updates `k8s.io/apimachinery` from 0.32.0 to 0.32.1
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.32.0...v0.32.1)

Updates `k8s.io/client-go` from 0.32.0 to 0.32.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.0...v0.32.1)

Updates `k8s.io/kube-aggregator` from 0.32.0 to 0.32.1
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.32.0...v0.32.1)

Updates `k8s.io/mount-utils` from 0.32.0 to 0.32.1
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.32.0...v0.32.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 11:07:10 -08:00
dependabot[bot] f091810e5c
Bump the aws-sdk group with 5 updates (#5784)
Bumps the aws-sdk group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.28.3` | `1.29.0` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.17.44` | `1.17.53` |
| [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) | `1.16.19` | `1.16.24` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.72.0` | `1.73.0` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.33.1` | `1.33.8` |


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.28.3 to 1.29.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.28.3...v1.29.0)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.17.44 to 1.17.53
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/credentials/v1.17.44...credentials/v1.17.53)

Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.16.19 to 1.16.24
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ram/v1.16.19...service/ram/v1.16.24)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.72.0 to 1.73.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.72.0...service/s3/v1.73.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.33.1 to 1.33.8
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.33.1...service/fms/v1.33.8)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 10:14:28 -08:00
dependabot[bot] 5012e1bed8
Bump github.com/hashicorp/go-metrics from 0.5.3 to 0.5.4 (#5782)
Bumps [github.com/hashicorp/go-metrics](https://github.com/hashicorp/go-metrics) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/hashicorp/go-metrics/releases)
- [Commits](https://github.com/hashicorp/go-metrics/compare/v0.5.3...v0.5.4)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-metrics
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 11:54:47 -08:00
dependabot[bot] 6b6c0e1d74
Bump google.golang.org/api from 0.214.0 to 0.217.0 (#5781)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.214.0 to 0.217.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.214.0...v0.217.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 11:25:23 -08:00
dependabot[bot] a93df1d9c8
Bump google.golang.org/grpc from 1.69.2 to 1.69.4 (#5779)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.69.2 to 1.69.4.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.69.2...v1.69.4)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 10:49:15 -08:00
dependabot[bot] 278521c793
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5777)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.198.0 to 1.199.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.198.0...service/ec2/v1.199.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 10:18:18 -08:00
dependabot[bot] d272210700
Bump actions/upload-artifact from 4.4.3 to 4.6.0 (#5773)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.3 to 4.6.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b4b15b8c7c...65c4c4a1dd)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 17:08:02 -08:00
dependabot[bot] ac1e60fd83
Bump github.com/sigstore/sigstore from 1.8.11 to 1.8.12 (#5767)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.11 to 1.8.12.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.11...v1.8.12)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 16:40:09 -08:00
Ryan Turner 07bfe791a5
Clean up integration test Docker warnings (#5762)
Docker doesn't like it when Dockerfile keywords on the same line don't
match in capitalization, e.g. `FROM foo as bar`.

Also remove deprecated `version` property from a Docker Compose file.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-01-14 16:10:40 -08:00
dependabot[bot] f118a472a8
Bump sigs.k8s.io/controller-runtime from 0.19.3 to 0.19.4 (#5768)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.3 to 0.19.4.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.3...v0.19.4)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 14:56:26 -08:00
Ryan Turner 6a22b99dfc
Remove github.com/zeebo/errs dependency (#5716)
* Remove github.com/zeebo/errs dependency

We don't really use this dependency for much other than to group some
errors together with a common error message prefix. The same can now
be accomplished with a couple custom error types and the `errors`
standard library package.

This package also wasn't consistently adopted throughout the project, so
at this point it's probably better to just rely on the standard library
functionality, since it's sufficient for the project's use cases.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2025-01-14 13:37:53 -08:00
dependabot[bot] 649411e07c
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5765)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.49.0 to 1.50.0
- [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/spanner/v1.49.0...spanner/v1.50.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 12:56:47 -08:00
Sorin Dumitru c780197273
Upgrade protobuf dependency to 1.36.2 (#5772)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-01-14 16:47:17 -03:00
Grace Ajibade a49eaad627
Enable optional trust domain label for all metrics (#5673)
* Enable optional trust domain label for all metrics

Signed-off-by: gajibade <gajibade@bloomberg.net>

* Added enableTrustDomainLabel to MetricsConfig and updated tests

Signed-off-by: gajibade <gajibade@bloomberg.net>

* Clean up

Signed-off-by: gajibade <gajibade@bloomberg.net>

* clean up

Signed-off-by: gajibade <gajibade@bloomberg.net>

---------

Signed-off-by: gajibade <gajibade@bloomberg.net>
Co-authored-by: gajibade <gajibade@bloomberg.net>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-09 17:37:35 -03:00
Carlo Teubner ddabe36ae4
golangci-lint: add nilerr & misc error reporting improvements (#5742)
* golangci-lint: add nilerr & address issues

Signed-off-by: Carlo Teubner <carlo@cteubner.net>

* Change a few 'errors.New' to 'fmt.Errorf'

These were not found by a linter but just something I noticed where it
would be better to include a bit more info.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>

---------

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2025-01-09 16:34:19 -03:00
Carlo Teubner 68ee015453
golangci-lint: add gofmt (#5738)
Note that unlike goimports (which we already use and which includes most
of the gofmt functionality), this gofmt linter is equivalent to "gofmt
-s" i.e. including some code simplifications.

Bring current code base into compliance with the new linter.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2025-01-09 15:57:20 -03:00
dependabot[bot] 15e08ba8d6
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore in the azure-sdk group (#5763)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.16.0 to 1.17.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.16.0...sdk/azcore/v1.17.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: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-09 11:46:55 -03:00
Nikhil Babu df376209ea
Update regctl-installer dependency to latest SHA for Github Actions (#5730)
Signed-off-by: Nikhil Babu <nikhilbabu213@gmail.com>
2025-01-09 08:54:04 -03:00
Carlo Teubner bd0a2a00d5
golangci-lint: add intrange & update code (#5740)
Add the 'intrange' linter, which enforces usage of the hip new-ish
"range over int" feature in Go.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2025-01-08 23:55:24 -03:00
Carlo Teubner 75204e6472
golangci-lint: add wastedassign & update code (#5743)
This linter caught an oversight that is probably inconsequential, but it
shows its potential to catch more serious oversights as well.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2025-01-08 23:26:28 -03:00
Carlo Teubner 803b107147
Enable more govet checks and address issues (#5739)
It turns out that the 'govet' linter has a few more tricks up its
sleeve, you just need to enable them.

This find a couple of bugs in the tests which are also being fixed in
this commit:

1. The spire-server tests for BatchCreateFederatedBundle and friends
   were accidentally not including JWT keys in the bundle they were
   testing. This ended up only affecting assertions on log message
   fields, which are being fixed here.
   The fix for this engendered a bit of refactoring to enable access to
   the required JWT struct conversion function.
2. The spire-server tests for the CA journal were _almost_ failing in
   their attempt to list CA journals; it ended up working anyway because
   a conversion between different struct types happened to be
   unnecessary because gorm could work with either one due to matching
   struct field names.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2025-01-08 21:38:08 -03:00
dependabot[bot] ecd3f463ad
Bump the aws-sdk group with 2 updates (#5758)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.36.0 to 1.37.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.37.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.36.0...service/s3/v1.37.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.71.0 to 1.72.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.71.0...service/s3/v1.72.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-07 16:15:12 -03:00
Sorin Dumitru b2e432cb04
svidstore: ParseMetadata to handle ':' in values (#5750)
It's possible that the metadata stored in entry selectors for the SvidStore plugins will contain ':'. For example the AWS secret manager one can specify an arn, which can include ':'. Modify the parsing to take this into account

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2025-01-03 10:15:58 -03:00
kfox1111 acdaee592a
Enable expand env for oidc discovery provider (#5689)
* Enable expand env for oidc discovery provider

Fixes: https://github.com/spiffe/spire/issues/5688

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix test

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Add test

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix Lint

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-02 19:58:03 -03:00
dependabot[bot] 5ff6a34db5
Bump google.golang.org/protobuf from 1.36.0 to 1.36.1 (#5753)
* Bump google.golang.org/protobuf from 1.36.0 to 1.36.1

Bumps google.golang.org/protobuf from 1.36.0 to 1.36.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* generate code

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2025-01-02 15:47:14 -03:00
dependabot[bot] f8b12163ac
Bump google.golang.org/grpc from 1.68.1 to 1.69.2 (#5734)
* Bump google.golang.org/grpc from 1.68.1 to 1.69.2

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.68.1 to 1.69.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.68.1...v1.69.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run go mod tidy

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2025-01-02 14:09:58 -03:00
dependabot[bot] d4b0de73d9
Bump github.com/shirou/gopsutil/v4 from 4.24.11 to 4.24.12 (#5756)
Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.24.11 to 4.24.12.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v4.24.11...v4.24.12)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 11:44:22 -03:00
dependabot[bot] 802ea39381
Bump github.com/googleapis/gax-go/v2 from 2.14.0 to 2.14.1 (#5744)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.14.0 to 2.14.1.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.14.0...v2.14.1)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-31 15:37:00 -03:00
dependabot[bot] 9efbd1c212
Bump github.com/jackc/pgx/v5 from 5.7.1 to 5.7.2 (#5751)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.1 to 5.7.2.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-31 14:21:39 -03:00
James Hiew e3e8033894
Fix CompareObjectHandles check to run if syscall is available (#5749)
Check would previously be skipped if CompareObjectHandles syscall was found

Signed-off-by: James Hiew <james@hiew.net>
2024-12-31 08:45:36 -03:00
dependabot[bot] c2bbf6b00e
Bump github.com/envoyproxy/go-control-plane from 0.13.1 to 0.13.2 (#5752)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.13.1...v0.13.2)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 23:46:15 -03:00
dependabot[bot] c761302ff6
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5747)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.48.0 to 1.49.0
- [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/spanner/v1.48.0...spanner/v1.49.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 10:16:45 -03:00
Carlo Teubner 6928ff1833
doc: Fix telemetry config links (#5720)
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2024-12-19 14:05:55 -03:00
dependabot[bot] d759f55883
Bump google.golang.org/protobuf from 1.35.2 to 1.36.0 (#5722)
* Bump google.golang.org/protobuf from 1.35.2 to 1.36.0

Bumps google.golang.org/protobuf from 1.35.2 to 1.36.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Generate proto files

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-12-19 13:21:59 -03:00
dependabot[bot] 80b11f245c
Bump github.com/docker/docker (#5732)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.4.0+incompatible to 27.4.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.4.0...v27.4.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 11:40:49 -03:00
dependabot[bot] 4761b11216
Bump github.com/google/go-tpm from 0.9.2 to 0.9.3 (#5733)
Bumps [github.com/google/go-tpm](https://github.com/google/go-tpm) from 0.9.2 to 0.9.3.
- [Release notes](https://github.com/google/go-tpm/releases)
- [Commits](https://github.com/google/go-tpm/compare/v0.9.2...v0.9.3)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 11:13:40 -03:00
dependabot[bot] ef736065dc
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5729)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.197.0 to 1.198.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.197.0...service/ec2/v1.198.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 10:35:41 -03:00
dependabot[bot] 9010c8bc64
Bump docker/setup-buildx-action from 3.7.1 to 3.8.0 (#5726)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](c47758b77c...6524bf65af)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 16:08:47 -03:00
dependabot[bot] 50cc52b402
Bump github.com/google/go-tpm from 0.9.1 to 0.9.2 (#5724)
Bumps [github.com/google/go-tpm](https://github.com/google/go-tpm) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/google/go-tpm/releases)
- [Commits](https://github.com/google/go-tpm/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 13:36:46 -03:00
dependabot[bot] e83f8844e1
Bump google.golang.org/api from 0.211.0 to 0.212.0 (#5723)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.211.0 to 0.212.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.211.0...v0.212.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 11:17:04 -03:00
dependabot[bot] 70e86f05d8
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5721)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.196.0 to 1.197.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.196.0...service/ec2/v1.197.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 10:45:22 -03:00
Ryan Turner 5c023a0633
Remove dependency on github.com/lestrrat-go/jwx (#5715)
We were using this package in only one place where we were parsing a
JWK. go-jose, which we use extensively throughout the project, already
provides this functionality. So we can eliminate this dependency by
leveraging that existing functionality in go-jose.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2024-12-16 13:36:12 -03:00
Ryan Turner 4d2298042c
Bump gopsutil to v4 (#5714)
v3 is no longer maintained other than for security fixes. The breaking
change in v4 that impacts our code is that `process.Uids()` and
`process.Gids()` now returns values of type `uint32` instead of `int32`.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2024-12-16 12:05:29 -03:00
Ryan Turner c06b91e51c
Bump Go to v1.23.4 (#5712)
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2024-12-16 10:09:24 -03:00
kfox1111 befc54f99d
x509pop server plugin support for servers trust bundle (#5572)
* x509pop server plugin support for servers trust bundle
Enables the x509pop node attestor server plugin to be
configured to use the SPIRE Servers own trust bundle.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-12-16 09:24:32 -03:00
dependabot[bot] 65d6f003f7
Bump github.com/sigstore/sigstore from 1.8.10 to 1.8.11 (#5711)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.10 to 1.8.11.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.10...v1.8.11)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-13 11:18:12 -08:00
dependabot[bot] c8f94c4b55
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.2 to 1.37.3 (#5706)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.2 to 1.37.3.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.3/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.2...v1.37.3)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 14:19:19 -08:00
Ryan Turner 11fba75466
Bump versions on main after v1.11.1 release (#5708)
* Update CHANGELOG with v1.11.1 release (#5698)

* Update with v1.11.1 release

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Signed-off-by: Ryan Turner <rturner3@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Bump versions after v1.11.1 release

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Signed-off-by: Ryan Turner <rturner3@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-12-12 13:20:44 -08:00
dependabot[bot] e2924bf4e3
Bump the k8s-io group with 5 updates (#5705)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.31.4` | `0.32.0` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.31.4` | `0.32.0` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.31.4` | `0.32.0` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.31.4` | `0.32.0` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.31.4` | `0.32.0` |


Updates `k8s.io/api` from 0.31.4 to 0.32.0
- [Commits](https://github.com/kubernetes/api/compare/v0.31.4...v0.32.0)

Updates `k8s.io/apimachinery` from 0.31.4 to 0.32.0
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.4...v0.32.0)

Updates `k8s.io/client-go` from 0.31.4 to 0.32.0
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.4...v0.32.0)

Updates `k8s.io/kube-aggregator` from 0.31.4 to 0.32.0
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.31.4...v0.32.0)

Updates `k8s.io/mount-utils` from 0.31.4 to 0.32.0
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.31.4...v0.32.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 11:09:13 -08:00
dependabot[bot] 25ecc2c19e
Bump the aws-sdk group across 1 directory with 4 updates (#5695)
Bumps the aws-sdk group with 4 updates in the / directory: [github.com/aws/aws-sdk-go-v2/feature/rds/auth](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/feature/rds/auth` from 1.4.2 to 1.5.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/pi/v1.5.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/mq/v1.4.2...service/pi/v1.5.1)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.194.0 to 1.196.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.194.0...service/ec2/v1.196.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.35.1 to 1.36.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.36.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fms/v1.35.1...service/s3/v1.36.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.69.0 to 1.71.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.69.0...service/s3/v1.71.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/rds/auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 10:36:32 -08:00
dependabot[bot] 82dc630768
Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#5704)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 09:52:07 -08:00
dependabot[bot] 78229b2a02
Bump google.golang.org/grpc from 1.68.0 to 1.68.1 (#5701)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.68.0 to 1.68.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.68.0...v1.68.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 17:17:46 -08:00
dependabot[bot] 935bc31e3b
Bump github.com/docker/docker (#5702)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.3.1+incompatible to 27.4.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.3.1...v27.4.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 15:45:29 -08:00
dependabot[bot] c94a570908
Bump the k8s-io group with 5 updates (#5700)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.31.3` | `0.31.4` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.31.3` | `0.31.4` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.31.3` | `0.31.4` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.31.3` | `0.31.4` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.31.3` | `0.31.4` |


Updates `k8s.io/api` from 0.31.3 to 0.31.4
- [Commits](https://github.com/kubernetes/api/compare/v0.31.3...v0.31.4)

Updates `k8s.io/apimachinery` from 0.31.3 to 0.31.4
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.3...v0.31.4)

Updates `k8s.io/client-go` from 0.31.3 to 0.31.4
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.3...v0.31.4)

Updates `k8s.io/kube-aggregator` from 0.31.3 to 0.31.4
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.31.3...v0.31.4)

Updates `k8s.io/mount-utils` from 0.31.3 to 0.31.4
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.31.3...v0.31.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 13:11:27 -08:00
dependabot[bot] 478d79ead0
Bump actions/setup-go from 5.1.0 to 5.2.0 (#5699)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](41dfa10bad...3041bf56c9)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 10:55:58 -08:00
dependabot[bot] 687d2db635
Bump the google-cloud-sdk group with 2 updates (#5694)
Bumps the google-cloud-sdk group with 2 updates: [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) and [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/iam` from 1.2.2 to 1.3.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/iam/v1.2.2...iam/v1.3.0)

Updates `cloud.google.com/go/storage` from 1.47.0 to 1.48.0
- [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/spanner/v1.47.0...spanner/v1.48.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 14:20:47 -08:00
dependabot[bot] 768bdbecf1
Bump google.golang.org/api from 0.209.0 to 0.211.0 (#5693)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.209.0 to 0.211.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.209.0...v0.211.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 13:08:40 -08:00
dependabot[bot] b585e01b31
Bump msys2/setup-msys2 from 2.25.0 to 2.26.0 (#5691)
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.25.0 to 2.26.0.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](c52d1fa9c7...d44ca8e88d)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 16:18:51 -03:00
dependabot[bot] a89ce437e2
Bump sigs.k8s.io/controller-runtime from 0.19.2 to 0.19.3 (#5676)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.2 to 0.19.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.2...v0.19.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 15:51:12 -03:00
dependabot[bot] 0206502ef6
Bump github.com/sigstore/rekor from 1.3.6 to 1.3.7 (#5672)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.6...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 15:11:29 -03:00
dependabot[bot] 2a4506ad2e
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.1 to 1.37.2 (#5669)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.1 to 1.37.2.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.2/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.1...v1.37.2)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 14:37:02 -03:00
dependabot[bot] 7b3181d814
Bump actions/cache from 4.1.2 to 4.2.0 (#5684)
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](6849a64899...1bd1e32a3b)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-06 09:16:52 -08:00
Sorin Dumitru 683f59a337
agent: Accept registration entries with RevisionNumber 0 (#5680)
When using the SyncAuthorizedEntries API we verify that the
RevisionNumber of the entries is at least 1. Unfortunately,
the RevisionNumber as assigned by spire-server starts at 0,
leading to the following error:
```
WARN[0004] Received malformed entry revision from SPIRE server; are the server and agent versions compatible?  entry_id=f1a26ecf-1043-4905-b5d9-789e60f88695 revision_number=0 subsystem_name=manager
````

I'm guessing the check is there in the unlikely case of a wrap-around,
so I'm keeping it and verifying that the RevisionNumber is positive.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-12-05 17:17:26 -03:00
Szilárd Vincze a0dd78b198
Flexible handling of IPv6 addresses (#5623)
Signed-off-by: Szilard Vincze <szilard.vincze@est.tech>
2024-12-05 16:09:37 -03:00
Ayush Luthra 40fb0df46b
Configurable JWT Issuer for the OIDC Discovery Provider (#5657)
* Adding support for configurable jwt issuer + test cases

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

* Moving verifyhost check + adding more test cases

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

* Adding test case of jwt issuer with just a host

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

* Updating readme docs + fixing spacing

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

* Fixing spacing in readme table

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

* fixing windows test cases + minor refactor

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>

---------

Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
2024-12-03 17:02:12 -03:00
dependabot[bot] 791c8e34fa
Bump sigs.k8s.io/controller-runtime from 0.19.1 to 0.19.2 (#5671)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.1 to 0.19.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.1...v0.19.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 21:40:25 -03:00
dependabot[bot] 7228a60ce3
Bump github.com/lestrrat-go/jwx/v2 from 2.1.2 to 2.1.3 (#5668)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/v2.1.3/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 21:02:53 -03:00
dependabot[bot] b0965b6dec
Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#5670)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 16:03:24 -03:00
Hugo Landau ef5a697991
Allow requiring use of a post-quantum-safe KEM (#5601)
* Allow configuration of mandatory PQ KEM: implementation
* Allow configuration of mandatory PQ KEM: docs
* Allow configuration of mandatory PQ KEM: tests

---------

Signed-off-by: Hugo Landau <hl@messier42.com>
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2024-11-27 12:35:57 -03:00
dependabot[bot] ae25343d43
Bump google.golang.org/api from 0.204.0 to 0.209.0 (#5662)
* Bump google.golang.org/api from 0.204.0 to 0.209.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.204.0 to 0.209.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.204.0...v0.209.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update protoc-gen-go version

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-11-27 11:09:22 -03:00
dependabot[bot] 20954d7540
Bump actions/dependency-review-action from 4.4.0 to 4.5.0 (#5658)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](4081bf99e2...3b139cfc5f)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 09:04:21 -03:00
dependabot[bot] a2a71646a7
Bump msys2/setup-msys2 from 2.24.1 to 2.25.0 (#5651)
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.24.1 to 2.25.0.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](ddf331adae...c52d1fa9c7)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 08:35:34 -03:00
dependabot[bot] a42f0a39b0
Bump the aws-sdk group across 1 directory with 5 updates (#5667)
Bumps the aws-sdk group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.187.0` | `1.194.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.37.0` | `1.38.1` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.34.0` | `1.35.1` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.66.2` | `1.69.0` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.32.3` | `1.33.1` |



Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.187.0 to 1.194.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.187.0...service/ec2/v1.194.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.37.0 to 1.38.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.38.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.37.0...service/s3/v1.38.1)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.34.0 to 1.35.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.34.0...service/fms/v1.35.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.66.2 to 1.69.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.66.2...service/s3/v1.69.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.32.3 to 1.33.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.33.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.32.3...service/s3/v1.33.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 07:44:09 -03:00
dependabot[bot] ad4410787c
Bump the k8s-io group with 5 updates (#5661)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.31.2` | `0.31.3` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.31.2` | `0.31.3` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.31.2` | `0.31.3` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.31.2` | `0.31.3` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.31.2` | `0.31.3` |


Updates `k8s.io/api` from 0.31.2 to 0.31.3
- [Commits](https://github.com/kubernetes/api/compare/v0.31.2...v0.31.3)

Updates `k8s.io/apimachinery` from 0.31.2 to 0.31.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.2...v0.31.3)

Updates `k8s.io/client-go` from 0.31.2 to 0.31.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.2...v0.31.3)

Updates `k8s.io/kube-aggregator` from 0.31.2 to 0.31.3
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.31.2...v0.31.3)

Updates `k8s.io/mount-utils` from 0.31.2 to 0.31.3
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.31.2...v0.31.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-26 23:18:16 -03:00
dependabot[bot] 6d726a2af1
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5656)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.46.0 to 1.47.0
- [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/spanner/v1.46.0...spanner/v1.47.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-26 22:26:49 -03:00
dependabot[bot] 4db02379dc
Bump github.com/hashicorp/hcl from 1.0.1-vault-6 to 1.0.1-vault-7 (#5646)
Bumps [github.com/hashicorp/hcl](https://github.com/hashicorp/hcl) from 1.0.1-vault-6 to 1.0.1-vault-7.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v1.0.1-vault-6...v1.0.1-vault-7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-26 21:36:10 -03:00
Emmanuel Ferdman 53b84ecb11
Update `telemetry.md` reference (#5650)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-11-26 19:00:49 -03:00
Sorin Dumitru 34c697a00f
spire-agent: limit JWT-SVID cache size (#5633)
* spire-agent: use a LRU cache for the JWT-SVID cache

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-11-21 12:31:30 -08:00
dependabot[bot] bcf001750e
Bump golang.org/x/sync from 0.8.0 to 0.9.0 (#5645)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sync/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 16:33:07 -03:00
dependabot[bot] bb711a011b
Bump golang.org/x/time from 0.7.0 to 0.8.0 (#5644)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/time/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 11:29:20 -03:00
Agustín Martínez Fayó 5677207e78
Fix for TestRotator flaky test (#5643)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-11-19 16:04:27 -03:00
dependabot[bot] d564650fc2
Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#5640)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.67.1 to 1.68.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.67.1...v1.68.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 14:52:30 -03:00
kfox1111 a5a4269c71
Add basic documentation about the template engine (#5625)
* Add basic documentation about the template engine
* Update doc/template_engine.md

Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov>
2024-11-19 12:33:40 -03:00
Agustín Martínez Fayó a746e9835c
Rely on the authority ID instead of the issued time when updating the journal (#5622)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-11-19 11:05:23 -03:00
nweisenauer a8857bafda
Fixes how upstream-authority-ejbca integration test calls kubectl and helm (#5613)
* call tool binaries from prepared path

00-setup-kind downloads kubectl, helm and kind to ./bin folder
upstream-authority-ejbca test now calls the binaries from this prepared bin folder

Signed-off-by: Nico Weisenauer <137267159+nweisenauer-sap@users.noreply.github.com>

* fixes bin path inside conf folder

Signed-off-by: Nico Weisenauer <137267159+nweisenauer-sap@users.noreply.github.com>

---------

Signed-off-by: Nico Weisenauer <137267159+nweisenauer-sap@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-11-08 12:29:41 -03:00
dependabot[bot] 0d701488b4
Bump github.com/envoyproxy/go-control-plane from 0.13.0 to 0.13.1 (#5636)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-08 11:26:46 -03:00
Agustín Martínez Fayó 970122c321
Update URL to download kubectl for integration tests (#5642)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-11-08 10:45:09 -03:00
Sorin Dumitru 6fd9e75d47
spire-server/agent: log version at start up (#5637)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-11-05 16:04:23 -07:00
dependabot[bot] ac5eb6aa0f
Bump github.com/hashicorp/hcl from 1.0.1-vault-5 to 1.0.1-vault-6 (#5635)
Bumps [github.com/hashicorp/hcl](https://github.com/hashicorp/hcl) from 1.0.1-vault-5 to 1.0.1-vault-6.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v1.0.1-vault-5...v1.0.1-vault-6)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 17:15:54 -03:00
dependabot[bot] 3445432e00
Bump sigs.k8s.io/controller-runtime from 0.19.0 to 0.19.1 (#5634)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.0 to 0.19.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.0...v0.19.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 16:33:59 -03:00
dependabot[bot] 3d257b2070
Bump github.com/hashicorp/go-plugin from 1.6.1 to 1.6.2 (#5630)
Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.6.1...v1.6.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 16:04:32 -03:00
dependabot[bot] 9fa2afd769
Bump google.golang.org/api from 0.203.0 to 0.204.0 (#5629)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.203.0 to 0.204.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.203.0...v0.204.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 15:22:22 -03:00
dependabot[bot] 4d1c8e7b02
Bump github.com/open-policy-agent/opa from 0.69.0 to 0.70.0 (#5628)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.69.0 to 0.70.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.69.0...v0.70.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 14:37:53 -03:00
dependabot[bot] 4a4670c248
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5627)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.45.0 to 1.46.0
- [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/pubsub/v1.45.0...spanner/v1.46.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 14:09:06 -03:00
dependabot[bot] 98ad13af13
Bump github.com/zeebo/errs from 1.3.0 to 1.4.0 (#5581)
* Bump github.com/zeebo/errs from 1.3.0 to 1.4.0

Bumps [github.com/zeebo/errs](https://github.com/zeebo/errs) from 1.3.0 to 1.4.0.
- [Commits](https://github.com/zeebo/errs/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/zeebo/errs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Use errors.As instead of the deprecated errs.Unwrap function

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2024-11-05 11:59:17 -03:00
Keegan Witt 20d4242832
Spelling and grammar fixes (#5571)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2024-11-04 16:18:44 -07:00
dependabot[bot] 89ee655ca4
Bump actions/setup-python from 5.2.0 to 5.3.0 (#5606)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](f677139bbe...0b93645e9f)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-01 23:46:45 -03:00
dependabot[bot] bf50f9768a
Bump the k8s-io group with 5 updates (#5617)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.31.1` | `0.31.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.31.1` | `0.31.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.31.1` | `0.31.2` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.31.1` | `0.31.2` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.31.1` | `0.31.2` |


Updates `k8s.io/api` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/api/compare/v0.31.1...v0.31.2)

Updates `k8s.io/apimachinery` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.1...v0.31.2)

Updates `k8s.io/client-go` from 0.31.1 to 0.31.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.1...v0.31.2)

Updates `k8s.io/kube-aggregator` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.31.1...v0.31.2)

Updates `k8s.io/mount-utils` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.31.1...v0.31.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-01 23:13:19 -03:00
dependabot[bot] 6d7e66f042
Bump github.com/lestrrat-go/jwx/v2 from 2.1.1 to 2.1.2 (#5618)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v3/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-01 22:37:32 -03:00
dependabot[bot] 0a8e074d8c
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.37.0 to 1.37.1 (#5619)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.37.0 to 1.37.1.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.1/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.37.0...v1.37.1)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-01 16:36:05 -03:00
dependabot[bot] 17d7067f06
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5616)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.186.1 to 1.187.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.186.1...service/ec2/v1.187.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-01 15:55:37 -03:00
Marcos Yacob 530930d134
Resolve flakiness in Evit agent IT (#5621)
* Evict IT is trying to ban an agent that is not initialized yet, retry until agent is present

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-11-01 15:05:37 -03:00
Marcos Yacob 714110de8e
Stop preparing a new authority before tainting (#5614)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-10-31 19:03:14 -03:00
Andrew Harding 2287067116
Use timestamp invalidate kubelet response cache (#5620)
Changes the K8s workload attestor to invalidate the cache response based
on a timestamp instead of kicking off a goroutine.

While this means that the plugin will always have a cached response in
memory, it simplifies the code for both the plugin and tests. In
practice, only an idle agent would waste memory holding onto the
response.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-10-31 17:09:35 -03:00
dependabot[bot] e6920857b8
Bump actions/setup-go from 5.0.2 to 5.1.0 (#5605)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0a12ed9d6a...41dfa10bad)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-31 08:25:57 -03:00
dependabot[bot] 902c21a67f
Bump actions/checkout from 4.2.1 to 4.2.2 (#5600)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-31 06:52:59 -03:00
dependabot[bot] 9051f2fb58
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5603)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.44.0 to 1.45.0
- [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/pubsub/v1.44.0...pubsub/v1.45.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 22:21:31 -03:00
dependabot[bot] 23b8f7a2ea
Bump google.golang.org/api from 0.200.0 to 0.203.0 (#5599)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.200.0 to 0.203.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.200.0...v0.203.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 18:28:14 -03:00
dependabot[bot] 548e5bed27
Bump the aws-sdk group across 1 directory with 6 updates (#5612)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.27.33 to 1.28.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.33...config/v1.28.1)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.17.32 to 1.17.42
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/credentials/v1.17.32...credentials/v1.17.42)

Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.16.13 to 1.16.18
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.13...service/ram/v1.16.18)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.182.0 to 1.186.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.182.0...service/ec2/v1.186.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.65.0 to 1.66.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.65.0...service/s3/v1.66.2)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.32.0 to 1.32.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.32.0...v1.32.3)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 16:07:00 -03:00
dependabot[bot] 8571e0a2c7
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore (#5591)
Bumps the azure-sdk group with 1 update in the / directory: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.14.0 to 1.16.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.14.0...sdk/azcore/v1.16.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: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 14:51:00 -03:00
dependabot[bot] a53b196712
Bump actions/dependency-review-action from 4.3.4 to 4.4.0 (#5610)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.4 to 4.4.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](5a2ce3f5b9...4081bf99e2)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 11:21:21 -03:00
Andrew Harding 4a70b8b2d7
Update CHANGELOG and version after 1.11.0 release (#5609)
* Update CHANGELOG and version after 1.11.0 release

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* remove extra newline

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-10-28 18:40:11 -03:00
dependabot[bot] 8eeb884435
Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#5580)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.4 to 1.20.5.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.4...v1.20.5)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-24 11:31:04 -03:00
kfox1111 915b0e7724
Add sprig functions (#5593)
Fixes: #5575

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-10-23 15:21:54 -06:00
dependabot[bot] a573d647df
Bump github.com/sigstore/sigstore from 1.8.9 to 1.8.10 (#5579)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.9 to 1.8.10.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.9...v1.8.10)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-23 17:51:03 -03:00
dependabot[bot] 80facb470a
Bump actions/cache from 4.1.1 to 4.1.2 (#5597)
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](3624ceb22c...6849a64899)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-23 17:16:05 -03:00
kfox1111 2d784fc74a
Allow escaping $ in config files that use expand env (#5576)
* Allow escaping $ in config files that use expand env

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-10-17 18:31:37 -03:00
Sorin Dumitru d7d1ccde86
Return InvalidArgument for invalid input entries (#5506)
fixes #5444

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-10-17 17:21:52 -03:00
Agustín Martínez Fayó c8d35fed00
Update telemetry documentation with metrics related with forced rotation (#5589)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-17 16:35:44 -03:00
Agustín Martínez Fayó a67d0563c6
Add documentation for `spire-server localauthority` and `spire-server upstreamauthority` commands (#5588)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-17 16:09:16 -03:00
Agustín Martínez Fayó 7abee0acc3
Remove `forced_rotation` feature flag (#5586)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-17 15:34:51 -03:00
Edwin Buck 518621220d
Implement cache update deduplication per fetch cycle (#5509)
Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-10-17 11:54:56 -06:00
Marcos Yacob 20ad838822
Force rotation: adds an integration test to verify that the JWT autho… (#5583)
* Force rotation: adds an integration test to verify that the JWT authority correctly handles forced rotation. Ensures that JWT tokens are invalidated and reissued as expected.

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-10-16 16:54:38 -03:00
Agustín Martínez Fayó b80bf4e567
Forced rotation: Remove cached JWT-SVIDs using tainted keys (#5565)
* Remove from the agent cache the JWT-SVIDs using tainted keys

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-16 00:11:23 -03:00
kfox1111 371571425d
Add missing TrustDomain support in x509pop template (#5577)
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-10-15 08:12:46 -06:00
dependabot[bot] 12a68dfdf7
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5569)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.181.0 to 1.182.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.181.0...service/ec2/v1.182.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 11:33:11 -03:00
dependabot[bot] 77e2c2ac07
Bump google.golang.org/api from 0.199.0 to 0.200.0 (#5566)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.199.0 to 0.200.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.199.0...v0.200.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-12 10:24:18 -03:00
dependabot[bot] 248ee0e31f
Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 (#5550)
* Bump google.golang.org/protobuf from 1.34.2 to 1.35.1

Bumps google.golang.org/protobuf from 1.34.2 to 1.35.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update generated files

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
2024-10-11 10:57:23 -03:00
dependabot[bot] b1d603f7cb
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#5562)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.7.0 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.0...sdk/azcore/v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 16:25:01 -03:00
dependabot[bot] c744ba19fe
Bump actions/cache from 4.1.0 to 4.1.1 (#5559)
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](2cdf405574...3624ceb22c)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 14:27:03 -03:00
dependabot[bot] 8fd25a24bd
Bump github.com/mattn/go-sqlite3 from 1.14.23 to 1.14.24 (#5557)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.23 to 1.14.24.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.23...v1.14.24)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 13:42:15 -03:00
dependabot[bot] f1437815a5
Bump actions/upload-artifact from 4.4.2 to 4.4.3 (#5564)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](84480863f2...b4b15b8c7c)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 10:01:24 -03:00
Agustín Martínez Fayó 3b4de184dd
When processing tainted authorities in the agent cache, use the bundles from the cache update, not the initial bundles (#5560)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-09 20:21:03 -03:00
dependabot[bot] 0ab6497d47
Bump golang.org/x/net from 0.29.0 to 0.30.0 (#5556)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/net/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 15:19:49 -03:00
dependabot[bot] 8d431bd365
Bump github.com/spiffe/go-spiffe/v2 from 2.3.0 to 2.4.0 (#5555)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 12:40:57 -03:00
dependabot[bot] 22030ab88a
Bump actions/checkout from 4.2.0 to 4.2.1 (#5553)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 11:51:38 -03:00
dependabot[bot] 9ea47abb3f
Bump actions/upload-artifact from 4.4.0 to 4.4.2 (#5558)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](50769540e7...84480863f2)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 10:27:18 -03:00
Marcos Yacob 82701eaf01
Add integration tests for force rotation and revocation (#5526)
* Add integration tests for force rotation and revocation

- Self-singed authority: Starts a nested SPIRE server to test force rotation and revocation scenarios.
- Upstream authority: Use a disk-based upstream authority to test force rotation and revocation scenarios.

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-10-08 22:51:34 -03:00
dependabot[bot] 202205fc02
Bump actions/cache from 4.0.2 to 4.1.0 (#5546)
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c45773b62...2cdf405574)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-08 10:11:24 -03:00
dependabot[bot] 4b674af67b
Bump docker/setup-buildx-action from 3.7.0 to 3.7.1 (#5547)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](8026d2bc36...c47758b77c)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 16:37:11 -03:00
dependabot[bot] bc2374816f
Bump the aws-sdk group with 9 updates (#5548)
Bumps the aws-sdk group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.36.3` | `1.37.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.180.0` | `1.181.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.36.3` | `1.37.0` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.36.3` | `1.37.0` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.33.1` | `1.34.0` |
| [github.com/aws/aws-sdk-go-v2/service/rolesanywhere](https://github.com/aws/aws-sdk-go-v2) | `1.15.3` | `1.16.0` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.64.0` | `1.65.0` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.33.3` | `1.34.0` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.31.3` | `1.32.0` |


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.36.3 to 1.37.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.37.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ssm/v1.36.3...service/s3/v1.37.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.180.0 to 1.181.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.180.0...service/ec2/v1.181.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.36.3 to 1.37.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.37.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ssm/v1.36.3...service/s3/v1.37.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.36.3 to 1.37.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.37.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ssm/v1.36.3...service/s3/v1.37.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.33.1 to 1.34.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.33.1...service/s3/v1.34.0)

Updates `github.com/aws/aws-sdk-go-v2/service/rolesanywhere` from 1.15.3 to 1.16.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.16.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.15.3...v1.16.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.64.0 to 1.65.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.64.0...service/s3/v1.65.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.33.3 to 1.34.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fms/v1.33.3...service/s3/v1.34.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.31.3 to 1.32.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.3...v1.32.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rolesanywhere
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 14:37:07 -03:00
dependabot[bot] 383ae3de3d
Bump github.com/sigstore/cosign/v2 from 2.4.0 to 2.4.1 (#5552)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.4.0...v2.4.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 14:07:27 -03:00
dependabot[bot] 3f73fc2ead
Bump sigstore/cosign-installer from 3.6.0 to 3.7.0 (#5545)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](4959ce089c...dc72c7d5c4)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 12:31:33 -03:00
Ryan Turner aa7ef27a50
Eliminate some raciness from gcpkms plugin tests (#5544)
* Eliminate some raciness from gcpkms plugin tests

`TestDisposeActiveCryptoKeys` has a race condition where a goroutine
that was processing keys for disposal was executing in parallel to some
assertions on state of the same keys. Rework this test to address
this race in the following ways:

- Enhance the fake KMS client used in the test to consider the filter condition
  for the `spire-last-update` label passed in the `ListCryptoKeys()`
  request. The test was not considering this field before, even though
  it is one of the primary factors in the plugin determining how to
  handle the key.
- Enrich the crypto keys set up in the fake KMS client by setting the
  `spire-last-update` label such that the plugin recognizes these keys
  as active based on last update time.
- Assert that the keys are not scheduled for destruction. The
  destruction of the keys is handled asynchronously in the plugin.
  The current test could have passed if the keys were queued for
  destruction, but the other goroutine processing the destruction
  operations hadn't completed yet. This is a potential source of raciness
  in the test.
- Make the mock clock used in the tests start at `time.Now()` instead of
  the Unix epoch because starting at the epoch causes some weird times
  to generated in the tests that are before the Unix epoch.

Making these changes broke a couple other tests. Summary of changes to
fix those tests:

`TestDisposeStaleCryptoKeys`:

- Start setting the `spire-last-update` label in the crypto keys set up
  in the fake KMS client so that the new filtering logic in
  `ListCryptoKeys()` in the fake KMS client gets exercised.
- Set up an unbuffered `chan error` for the `keepActiveCryptoKeySignal`
  so that we can block the goroutine that is renewing the active key
  last update time. Without blocking this goroutine, it will keep
  renewing the last update time of the active keys, potentially before
  another parallel goroutine can process it as stale.
- Advance the mock clock by the maximum of:
    - The duration that is the frequency of how often the stale key disposal
    goroutine runs
    - The maximum stale duration of a key
  The way the test is currently written assumes that the stale key disposal
  goroutine will run more frequently than the maximum stale duration, but it
  doesn't necessarily need to be the case.

`TestKeepActiveCryptoKeys`:

- Base the times in the test off of the current time rather than the
  Unix epoch as a start to align with other tests.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2024-10-05 14:40:00 -07:00
dependabot[bot] ebd5a1f7b5
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5539)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.43.0 to 1.44.0
- [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/pubsub/v1.43.0...spanner/v1.44.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-05 13:30:48 -07:00
Edwin Buck 500e291bbd
Fix undesirable regex pattern compliation approach. (#5537)
closes #5515

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-10-05 10:39:51 -06:00
Andrew Harding 3d48ac3474
Fix data race in agent manager tests (#5543)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-10-05 08:15:24 -06:00
dependabot[bot] 0665536ba9
Bump golang.org/x/time from 0.6.0 to 0.7.0 (#5540)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/time/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-04 14:48:42 -07:00
dependabot[bot] a716305379
Bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#5542)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-04 13:49:09 -07:00
dependabot[bot] a89c5b9226
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5538)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.179.2 to 1.180.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.179.2...service/ec2/v1.180.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-04 10:11:11 -07:00
dependabot[bot] 5c2faee427
Bump docker/setup-buildx-action from 3.6.1 to 3.7.0 (#5536)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](988b5a0280...8026d2bc36)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-04 09:20:56 -07:00
dependabot[bot] 962c8cd127
Bump github.com/aws/aws-sdk-go-v2/service/s3 in the aws-sdk group (#5535)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.63.3 to 1.64.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.63.3...service/s3/v1.64.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-03 10:17:21 -07:00
Marcos Yacob 3070ee5974
Upgrade golang 1.23.2 (#5534)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-10-03 13:22:57 -03:00
Ryan Turner c4505eaf57
Remove flaky `gcpkms` TestEnqueueDestruction (#5533)
This test has been historically very flaky on CI.

This test covers a very rare edge case that is difficult to simulate in
tests and is not covered in other plugins. Opened #5532 to create a more
robust test to cover this case.

Closes #3687.

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
2024-10-02 15:39:28 -03:00
Agustín Martínez Fayó 110ec0c321
Have `x509_svid_cache_max_size` as agent config setting (not experimental) (#5531)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-10-02 15:15:20 -03:00
dependabot[bot] 26b2d9323a
Bump github.com/open-policy-agent/opa from 0.68.0 to 0.69.0 (#5528)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.68.0 to 0.69.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.68.0...v0.69.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 22:12:27 -07:00
dependabot[bot] 4c4cd827c0
Bump google.golang.org/api from 0.197.0 to 0.199.0 (#5520)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.197.0 to 0.199.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.197.0...v0.199.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 21:25:08 -07:00
dependabot[bot] 82d6843ec2
Bump google.golang.org/grpc from 1.66.2 to 1.67.1 (#5529)
* Bump google.golang.org/grpc from 1.66.2 to 1.67.1

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.2 to 1.67.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.2...v1.67.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Configure ALPN correctly in test

Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <ryan.turner253@icloud.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <ryan.turner253@icloud.com>
2024-10-01 15:22:43 -07:00
dependabot[bot] 5323e76ff3
Bump actions/checkout from 4.1.7 to 4.2.0 (#5519)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 11:32:43 -07:00
dependabot[bot] 4c43f60857
Bump the aws-sdk group across 1 directory with 9 updates (#5527)
Bumps the aws-sdk group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.35.0` | `1.36.3` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.177.0` | `1.179.2` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.35.0` | `1.36.3` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.35.3` | `1.36.3` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.31.0` | `1.33.1` |
| [github.com/aws/aws-sdk-go-v2/service/rolesanywhere](https://github.com/aws/aws-sdk-go-v2) | `1.14.0` | `1.15.3` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.61.0` | `1.63.3` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.32.1` | `1.33.3` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.30.3` | `1.31.3` |



Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.35.0 to 1.36.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.35.0...service/ssm/v1.36.3)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.177.0 to 1.179.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.177.0...service/ec2/v1.179.2)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.35.0 to 1.36.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.35.0...service/ssm/v1.36.3)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.35.3 to 1.36.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/iot/v1.35.3...service/ssm/v1.36.3)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.31.0 to 1.33.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.33.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.31.0...service/s3/v1.33.1)

Updates `github.com/aws/aws-sdk-go-v2/service/rolesanywhere` from 1.14.0 to 1.15.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.14.0...config/v1.15.3)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.61.0 to 1.63.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.61.0...service/s3/v1.63.3)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.32.1 to 1.33.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/sns/v1.32.1...service/fms/v1.33.3)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.30.3 to 1.31.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.30.3...service/s3/v1.31.3)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rolesanywhere
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 09:54:33 -07:00
dependabot[bot] a772f83e5e
Bump github.com/aws/aws-sdk-go-v2 from 1.30.4 to 1.31.0 (#5510)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.30.4 to 1.31.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.30.4...v1.31.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 09:40:59 -03:00
dependabot[bot] e137e0d8ae
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#5507)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.19.0 to 1.20.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.19.0...kms/v1.20.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 08:56:13 -03:00
Marcos Yacob 8f82ebae23
Force rotation X.509 SVIDs in Agent side (#5446)
* Force rotation of X.509 workload SVIDs in lru cache
* Force rotation of X.509 workload SVIDs in store SVID cache
* Force rotation of Agent SVID

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-09-28 09:18:55 -03:00
amoore877 182b594b71
Delete non-LRU cache in SPIRE Agent (#5383)
* Delete non-LRU cache in SPIRE Agent

Signed-off-by: amoore877 <andrew.s.moore@uber.com>
2024-09-27 16:38:42 -03:00
Agustín Martínez Fayó cfb994a283
Add `upstreamauthority` commands and leverage the `UpstreamAuthoritySubjectKeyId` field in `AuthorityState` messages (#5518)
- Add `upstreamauthority revoke` and `upstreamauthority taint` commands
- Leverage the `UpstreamAuthoritySubjectKeyId` field in `AuthorityState` messages

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-27 14:45:05 -03:00
dependabot[bot] e9179be0eb
Bump github.com/docker/docker (#5511)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.2.1+incompatible to 27.3.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.2.1...v27.3.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 15:19:59 -03:00
dependabot[bot] 47b9eb8972
Bump github.com/prometheus/client_golang from 1.20.3 to 1.20.4 (#5498)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.3 to 1.20.4.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.3...v1.20.4)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 11:16:03 -03:00
Edwin Buck 41746f0df4
Implement the Validate RPC on built-in plugins (#5303)
The old API performed all configuration checks coupled with plugin
reconfiguration under the Configure() func.

The new API adds a Validation() func that only performs configuration
checks but has no impact on the running plugin.

To facilitate easier user, the pluginconf package was added that makes
it easier to handle the merged code streams through a pluginconf.Status
struct that will capture the first error (for integration with
Configure() while permitting the Validation() to capture all errors
that can be captured.

Unit tests had to be reworked, as a side-effect of using the new
pluginconf package is that all plugins now automatically check their
trustdomain, instead of each plugin checking it in a haphazard manner.

Occasionally, very small fixes were performed on plugins, and plugin
coding standards were tweaked in small ways to be more similar to each
other.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-09-23 17:18:45 -06:00
Marcos Yacob 2328715f5f
Fix flaky TestUpstreamProcessTaintedAuthority test (#5504)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-09-22 09:24:15 -03:00
Agustín Martínez Fayó 3d158ce563
Fix version support policy in Releasing document (#5499)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-18 10:59:26 -03:00
dependabot[bot] 29115b7584
Bump the k8s-io group with 5 updates (#5492)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.31.0` | `0.31.1` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.31.0` | `0.31.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.31.0` | `0.31.1` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.31.0` | `0.31.1` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.31.0` | `0.31.1` |


Updates `k8s.io/api` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/api/compare/v0.31.0...v0.31.1)

Updates `k8s.io/apimachinery` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.0...v0.31.1)

Updates `k8s.io/client-go` from 0.31.0 to 0.31.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.0...v0.31.1)

Updates `k8s.io/kube-aggregator` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.31.0...v0.31.1)

Updates `k8s.io/mount-utils` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.31.0...v0.31.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-15 14:57:41 -03:00
dependabot[bot] 37c41ea92f
Bump google.golang.org/api from 0.196.0 to 0.197.0 (#5491)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.196.0 to 0.197.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.196.0...v0.197.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-15 12:25:53 -03:00
dependabot[bot] 7652a94755
Bump github.com/hashicorp/vault/sdk from 0.13.0 to 0.14.0 (#5490)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.13.0...sdk/v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-15 00:48:37 -03:00
dependabot[bot] eca4c0ff68
Bump google.golang.org/grpc from 1.66.1 to 1.66.2 (#5493)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.1 to 1.66.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.1...v1.66.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-14 18:21:20 -03:00
Ryan Turner a81a43d900
No longer test against MySQL 5.7 (#5487)
* No longer test against MySQL 5.7

MySQL 5.7 is EOL as of October 2023.

Stop using MySQL 5.7 in integration tests, since it is not easy for the
project to support end-of-life database versions. Also log a warning
when MySQL 5.7 is used with SPIRE.

Importantly, this commit does not remove any existing support for MySQL
5.7. SPIRE may continue to work for some time with MySQL 5.7, but the
project makes no compatibility guarantees with MySQL 5.7 anymore, and
any existing compatibility with MySQL 5.7 may break at any time without
notice.

It is recommended that all SPIRE users using MySQL as a SQL backend
upgrade to MySQL 8.0.

Signed-off-by: Ryan Turner <turner@uber.com>

* Fix MySQL version check

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-14 16:03:56 -03:00
Marcos Yacob 3f3b2053c1
Force rotation intermediate and Server SVIDs (#5431)
* Force rotation of intermediates signed by a compromised authority
* Force rotation of Server SVIDs signed by a compromised authority
* Force rotation of server SVIDs when not using an upstream authority

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-09-14 14:51:29 -03:00
Marcos Yacob bd91b6d72c
Update CHANGELOG and tests to cover 1.10.4 (#5496)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-09-14 14:02:20 -03:00
dependabot[bot] c03d109626
Bump github.com/hashicorp/vault/api from 1.14.0 to 1.15.0 (#5489)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-14 10:07:15 -03:00
Faisal Memon 69cebe009e
AWS KMS CustomerMasterKeySpec to KeySpec (#5477)
* AWS KMS CustomerMasterKeySpec to KeySpec

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-09-13 10:05:50 -03:00
Andrew Harding d7ca5f207d
Log panics originating from built-in plugins (#5476)
* Logs panics originating from built-in plugins

Panics are swallowed by the grpc server middleware that hosts the
built-in plugins, making it hard to debug.

This PR changes the panic middleware to log the panic stack to the ERROR
log.

Also changed the plugintest framework to wire up a logger to the
testing.T so we can observe these in tests.

```
ERRO[0000] Plugin panicked                               cause="oh no" external=false plugin_name=disk plugin_type=UpstreamAuthority stack="goroutine 84 [running]:\nruntime/debug.Stack()\n\t/Users/azdagron/sdk/go1.23.0/src/runtime/debug/stack.go:26 +0x64\ngithub.com/spiffe/spire/pkg/common/catalog.convertPanic({0x106b43a90, 0x1400028a8c0}, {0x1060c5900, 0x106aa42c0})\n\t/Users/azdagron/spiffe/spire/pkg/common/catalog/host.go:69 +0xb0\ngithub.com/spiffe/spire/pkg/common/catalog.newBuiltInServer.unaryPanicInterceptor.func3.1()\n\t/Users/azdagron/spiffe/spire/pkg/common/catalog/host.go:59 +0x54\npanic({0x1060c5900?, 0x106aa42c0?})\n\t/Users/azdagron/sdk/go1.23.0/src/runtime/panic.go:785 +0x124\ngithub.com/spiffe/spire/pkg/server/plugin/upstreamauthority/disk.(*Plugin).Configure(0x108b4ba80?, {0x1067789a0?, 0x106abf0f0?}, 0x14000399f80?)\n\t/Users/azdagron/spiffe/spire/pkg/server/plugin/upstreamauthority/disk/disk.go:76 +0x2c\ngithub.com/spiffe/spire-plugin-sdk/proto/spire/service/common/config/v1._Config_Configure_Handler.func1({0x106b0f3f8?, 0x14000962120?}, {0x1066e0260?, 0x14000399240?})\n\t/Users/azdagron/go/pkg/mod/github.com/spiffe/spire-plugin-sdk@v1.4.4-0.20230721151831-bf67dde4721d/proto/spire/service/common/config/v1/config_grpc.pb.go:96 +0xd0\ngithub.com/spiffe/spire/pkg/common/catalog.newBuiltInServer.unaryPanicInterceptor.func3({0x106b0f3f8?, 0x14000962120?}, {0x1066e0260?, 0x14000399240?}, 0x14000931828?, 0x102920bcc?)\n\t/Users/azdagron/spiffe/spire/pkg/common/catalog/host.go:62 +0x78\ngoogle.golang.org/grpc.getChainUnaryHandler.func1({0x106b0f3f8, 0x14000962120}, {0x1066e0260, 0x14000399240})\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1211 +0xa0\ngithub.com/spiffe/spire/pkg/common/catalog.(*drainHandlers).UnaryServerInterceptor(0x1400033c3b0, {0x106b0f3f8, 0x14000962120}, {0x1066e0260, 0x14000399240}, 0x0?, 0x140003992c0)\n\t/Users/azdagron/spiffe/spire/pkg/common/catalog/builtin.go:184 +0x90\ngoogle.golang.org/grpc.NewServer.chainUnaryServerInterceptors.chainUnaryInterceptors.func1({0x106b0f3f8, 0x14000962120}, {0x1066e0260, 0x14000399240}, 0x140005c8240, 0x1068e1260?)\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1202 +0x88\ngithub.com/spiffe/spire-plugin-sdk/proto/spire/service/common/config/v1._Config_Configure_Handler({0x1067789a0, 0x14000596780}, {0x106b0f3f8, 0x14000962120}, 0x14000938480, 0x1400039c720)\n\t/Users/azdagron/go/pkg/mod/github.com/spiffe/spire-plugin-sdk@v1.4.4-0.20230721151831-bf67dde4721d/proto/spire/service/common/config/v1/config_grpc.pb.go:98 +0x148\ngoogle.golang.org/grpc.(*Server).processUnaryRPC(0x14000924000, {0x106b0f3f8, 0x14000962090}, {0x106b21480, 0x140000fe1a0}, 0x14000394fc0, 0x1400059cde0, 0x108b4ba40, 0x0)\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1393 +0xb78\ngoogle.golang.org/grpc.(*Server).handleStream(0x14000924000, {0x106b21480, 0x140000fe1a0}, 0x14000394fc0)\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1804 +0xb20\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1()\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1029 +0x84\ncreated by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 81\n\t/Users/azdagron/go/pkg/mod/google.golang.org/grpc@v1.66.0/server.go:1040 +0x13c\n" subsystem_name=catalog
```

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-09-12 21:18:18 -03:00
Sorin Dumitru 2ffe1764d4
Fix "Rettestable" typo in telemetry name (#5269)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-09-12 17:05:06 -03:00
Marcel Levy 32eaecaf0b
Remove deprecated -ttl flag from spire server cli (#5483)
* Remove deprecated -ttl flag from spire server cli

This commit removes the deprecated `-ttl` flag from `spire entry
create` and `spire entry update`. Docs are also updated.

See discussion in https://github.com/spiffe/spire/issues/5254

Signed-off-by: Marcel Levy <marcel@spirl.com>

* Remove -ttl from integration tests

Signed-off-by: Marcel Levy <marcel@spirl.com>

* Fix windows unit test

Signed-off-by: Marcel Levy <marcel@spirl.com>

---------

Signed-off-by: Marcel Levy <marcel@spirl.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-09-12 16:22:20 -03:00
dependabot[bot] 92143cb5ea
Bump google.golang.org/grpc from 1.66.0 to 1.66.1 (#5485)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.0 to 1.66.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/commits)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 11:40:07 -03:00
dependabot[bot] 86ade3cc8c
Bump github.com/jackc/pgx/v5 from 5.7.0 to 5.7.1 (#5486)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.0 to 5.7.1.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.0...v5.7.1)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 11:01:39 -03:00
dependabot[bot] 0ee32336a4
Bump github.com/docker/docker (#5482)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.2.0+incompatible to 27.2.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.2.0...v27.2.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 10:00:20 -03:00
dependabot[bot] ec031e6428
Bump github.com/jackc/pgx/v5 from 5.6.0 to 5.7.0 (#5481)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.6.0 to 5.7.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.6.0...v5.7.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 12:14:56 -03:00
Marco Franssen 281d0b8033
Bump tonistiigi/xx from 1.3.0 to 1.5.0 in Dockerfile (#5448)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2024-09-09 10:56:37 -03:00
Agustín Martínez Fayó d202d4e4f8
Expose already added localauthority commands in the commands list (fflag required) (#5479)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-08 13:45:19 -03:00
Faisal Memon b21a7ffdbd
Fix small typos in PCA unit tests (#5478)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-09-08 11:46:08 -03:00
dependabot[bot] 67b86c036a
Bump golang.org/x/net from 0.28.0 to 0.29.0 (#5474)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/net/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-07 09:49:00 -03:00
dependabot[bot] 3232561638
Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#5473)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 16:40:27 -03:00
dependabot[bot] 58150b8c4f
Bump github.com/sigstore/sigstore from 1.8.8 to 1.8.9 (#5475)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.8 to 1.8.9.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.8...v1.8.9)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 16:16:13 -03:00
dependabot[bot] 03f86eb43b
Bump google.golang.org/api from 0.195.0 to 0.196.0 (#5472)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.195.0 to 0.196.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.195.0...v0.196.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 15:09:51 -03:00
kfox1111 024435d7e1
Fix test breaking when a proxy is configured on the host (#5471)
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-09-06 13:38:01 -03:00
Andrew Harding b64a2255e8
Use new container locator by default (#5454)
Custom matchers can still be used in the docker attestor but require
explicitly disabling the new container locator.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-09-06 08:14:26 -06:00
dependabot[bot] f0ad426bae
Bump github.com/opencontainers/runc from 1.1.13 to 1.1.14 (#5467)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.13 to 1.1.14.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.13...v1.1.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 09:57:25 -03:00
dependabot[bot] e49fbc3676
Bump golang.org/x/sys from 0.24.0 to 0.25.0 (#5465)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/sys/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 18:26:31 -03:00
dependabot[bot] f027c5415f
Bump github.com/mattn/go-sqlite3 from 1.14.22 to 1.14.23 (#5464)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.22 to 1.14.23.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.22...v1.14.23)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 16:09:36 -03:00
dependabot[bot] e07dfc6dcf
Bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 (#5469)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.2 to 1.20.3.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.20.3/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.2...v1.20.3)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 15:14:53 -03:00
dependabot[bot] 1d1e686828
Bump github.com/open-policy-agent/opa from 0.67.1 to 0.68.0 (#5453)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.67.1 to 0.68.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.67.1...v0.68.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 13:48:06 -03:00
Faisal Memon d6b1a91474
Small typo in AWS PCA Upstream tests (#5432)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-09-05 13:05:02 -03:00
Andrew Harding 39982e69b1
Fix racy spire upstreamauthority plugin tests (#5468)
The mock clock was not being threaded through everywhere causing
sporadic NotAfter related assertions to fail.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-09-05 12:34:37 -03:00
Hayden 7118533129
Introduce EJBCA UpstreamAuthority plugin for SPIRE Server (#5378)
* feat(ejbca): Initial EJBCA UpstreamAuthority plugin

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(test): Create EJBCA UpstreamAuthority integraiton test and
refactor EJBCA config to only support certs from file

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* Resolve bug in EJBCA integration test and resolve linting issue in EJBCA docs

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(oauth): Remove OAuth from EJBCA UpstreamAuthority plugin

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(integration): Resolve bug in EJBCA integration test and refactor to use non-OAuth server config

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(docs): Remove link fragment from EJBCA docs

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(codereview): Resolve comments from code review

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* chore(test): Refactor EJBCA integration test to use client_cert_key_path

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

* fix(ejbca): Replace ToPluginProtos with ToPluginFromCertificates

Signed-off-by: Hayden Roszell <hroszell@gmail.com>

---------

Signed-off-by: Hayden Roszell <hroszell@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-05 11:58:42 -03:00
dependabot[bot] 904f9a9cb4
Bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#5451)
* Bump google.golang.org/grpc from 1.65.0 to 1.66.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.65.0 to 1.66.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.65.0...v1.66.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* prevent panic

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-09-05 11:02:46 -03:00
dependabot[bot] 5e184c4c1c
Bump github.com/docker/docker from 27.1.2+incompatible to 27.2.0+incompatible (#5456)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.1.2+incompatible to 27.2.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.1.2...v27.2.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* upgrade version

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-09-05 10:22:10 -03:00
Agustín Martínez Fayó 763ebe5fbc
Prune non supported migrations (#5466)
* Prune non-supported migrations

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-04 16:36:49 -03:00
Agustín Martínez Fayó 6cb89e8757
Add v1.10.2 and v1.10.3 to the changelog and update upgrade test (#5462)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-04 14:49:04 -03:00
Agustín Martínez Fayó db42b6c315
Revert "add SVID check to agent health check (#5298)" in main branch (#5461)
This reverts commit 033d8d6094.

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-04 14:08:16 -03:00
Agustín Martínez Fayó bf6725d96d
Bump SPIRE to v1.11.0 (#5463)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-04 13:42:07 -03:00
dependabot[bot] 3dc31a8e21
Bump google.golang.org/api from 0.194.0 to 0.195.0 (#5452)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.194.0 to 0.195.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.194.0...v0.195.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 18:20:22 -03:00
dependabot[bot] 6a8524a258
Bump actions/upload-artifact from 4.3.6 to 4.4.0 (#5447)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](834a144ee9...50769540e7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 17:14:01 -03:00
dependabot[bot] 6b428ee75e
Bump actions/setup-python from 5.1.1 to 5.2.0 (#5443)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](39cd14951b...f677139bbe)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 16:04:19 -03:00
dependabot[bot] fd243f55b2
Bump the aws-sdk group across 1 directory with 3 updates (#5441)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.175.1 to 1.177.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.175.1...service/ec2/v1.177.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.30.2 to 1.31.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.30.2...service/s3/v1.31.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.59.0 to 1.61.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.59.0...service/s3/v1.61.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 14:05:07 -03:00
dependabot[bot] 1d874f2b05
Bump the k8s-io group across 1 directory with 2 updates (#5450)
Bumps the k8s-io group with 2 updates in the / directory: [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) and [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils).


Updates `k8s.io/kube-aggregator` from 0.30.3 to 0.31.0
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.30.3...v0.31.0)

Updates `k8s.io/mount-utils` from 0.30.3 to 0.31.0
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.30.3...v0.31.0)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 13:38:21 -03:00
dependabot[bot] 730121dca8
Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0 (#5405)
* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.18.4 to 0.19.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.18.4...v0.19.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.19.0

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.18.4 to 0.19.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.18.4...v0.19.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* - Updated to not check for nil responses in GetNode, GetPod, and ValidateToken functions
- Replced NewSimpleClientset() (deprecated) in favor of NewClientset()
- Updated tests to make sure that nil results are converted to empty responses

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-09-02 13:12:01 -03:00
dependabot[bot] 3979cd4ca0
Bump github.com/google/btree from 1.1.2 to 1.1.3 (#5438)
Bumps [github.com/google/btree](https://github.com/google/btree) from 1.1.2 to 1.1.3.
- [Commits](https://github.com/google/btree/compare/v1.1.2...v1.1.3)

---
updated-dependencies:
- dependency-name: github.com/google/btree
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 12:21:48 -03:00
dependabot[bot] dd0ea1e359
Bump the google-cloud-sdk group with 4 updates (#5437)
Bumps the google-cloud-sdk group with 4 updates: [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go), [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go), [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) and [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/iam` from 1.1.12 to 1.2.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/iam/v1.1.12...iot/v1.2.0)

Updates `cloud.google.com/go/kms` from 1.18.4 to 1.19.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.18.4...kms/v1.19.0)

Updates `cloud.google.com/go/secretmanager` from 1.13.5 to 1.14.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/automl/v1.13.5...kms/v1.14.0)

Updates `cloud.google.com/go/security` from 1.17.4 to 1.18.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/retail/v1.17.4...kms/v1.18.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 10:18:39 -03:00
Steven Dang e91897bd74
Add gauge metrics to track missedEvents and cache sizes (#5411)
Signed-off-by: stevend <stevend@uber.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-27 16:37:03 -03:00
Faisal Memon 7982e3995b
Fix spire_server.md formatting (#5433)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-27 15:07:22 -03:00
dependabot[bot] 68fd559b6c
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.36.0 to 1.37.0 (#5403)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.36.0 to 1.37.0.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.37.0/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.36.0...v1.37.0)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 12:22:31 -03:00
Faisal Memon ca751018a4
Update spire_server.md (#5430)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-08-26 19:24:09 -03:00
dependabot[bot] 6e9b8a3715
Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.2 (#5429)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.1 to 1.20.2.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 13:15:47 -06:00
dependabot[bot] 1883ed693c
Bump google.golang.org/api from 0.192.0 to 0.194.0 (#5415)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.192.0 to 0.194.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.192.0...v0.194.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 11:13:50 -06:00
Andrew Harding cfb4f27ba9
Fix racy manager tests (#5428)
This PR fixes races in the manager tests when utilizing the fake
upstream authority. The fake upstream authority implementation did not
use the test clock set up by the tests, which caused expected time
fields on certificates to be populated with real time, causing sporadic
test failures when they diverged.

Threading the test clock into the fake upstream authority fixes the
races.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-08-26 10:26:14 -03:00
Kevin Nisbet 48397e9f66
Add microcaching and merging of parallel requests to kubelet in the k8s workload attestor (#5408)
Adds a short lived cache for the responses from Kubelet reducing memory and CPU usage of the k8s workload attestor plugin.

Signed-off-by: Kevin Nisbet <kevin.nisbet+github@xybyte.com>
2024-08-25 19:40:07 -06:00
Agustín Martínez Fayó 755ace1134
Small changes in tests for localauthority server commands (#5426)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-25 11:00:43 -03:00
amoore877 6e3b32c965
Eagerly fail a test suite if a step is not executable (#5389)
Signed-off-by: amoore877 <andrew.s.moore@uber.com>
2024-08-24 09:33:31 -06:00
amoore877 1eb43407b8
reduce flakiness in evict-agent CI (#5386)
Signed-off-by: amoore877 <andrew.s.moore@uber.com>
2024-08-24 08:57:51 -06:00
Agustín Martínez Fayó d4215536b3
Add `localauthority jwt revoke` server command (#5425)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 22:03:19 -03:00
Agustín Martínez Fayó f3d3b5214b
Add `localauthority x509 revoke` server command (#5424)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 21:36:16 -03:00
Agustín Martínez Fayó 5abec25ffa
Add `localauthority jwt taint` server command (#5423)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 20:10:41 -03:00
Agustín Martínez Fayó 5d445fd64f
Add `localauthority x509 taint` server command (#5422)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 19:00:40 -03:00
Agustín Martínez Fayó 4e802eeb64
Add `localauthority jwt activate` server command (#5421)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 18:34:58 -03:00
Agustín Martínez Fayó 4e21243ed2
Add `localauthority x509 activate` server command (#5420)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 18:01:46 -03:00
Agustín Martínez Fayó 3766a42a09
Add `localauthority x509 prepare` server command (#5419)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 17:22:03 -03:00
Agustín Martínez Fayó 5c6b0f422b
Add `localauthority jwt prepare` server command (#5418)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-23 15:54:53 -03:00
Agustín Martínez Fayó 4f34e43880
Add `localauthority jwt show` command to the server (#5412)
* Add `localauthority jwt show command` to the server

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-22 19:44:06 -03:00
Andrew Harding 399ce63748
Clean up httpchallenge agent config (#5413)
* Clean up httpchallenge agent config
* Also enable testing on darwin.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-08-21 18:21:38 -03:00
Agustín Martínez Fayó 57db16bbd5
Introduce support to localauthority CLI - x509 show (#5400)
* Introduce support to localauthority CLI - x509 show

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-21 11:56:56 -03:00
Agustín Martínez Fayó d623d4c916
Allow enabling the LocalAuthority API through the `forced_rotation` fflag (#5399)
* Allow exposing the LocalAuthority API through the `forced_rotation` fflag

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-20 13:55:25 -03:00
amoore877 e438218e9b
Remove list of CI (#5388)
* Remove list of CI
* note location
* remove section ref

Signed-off-by: amoore877 <andrew.s.moore@uber.com>
2024-08-20 11:37:47 -03:00
Faisal Memon 42225bf150
Add comments to events based cache code (#5327)
* Add comments to events based cache
* Remove scrolling debug log

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-08-20 10:57:54 -03:00
Max Lambrecht 65ec692240
Refactor and Enhance Sigstore Attestor (#5255)
* Refactor Sigstore Attestor Implementation
* Add sigstore attestation to docker attestor

Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
2024-08-20 10:28:23 -03:00
dependabot[bot] 13a88157b6
Bump github.com/envoyproxy/go-control-plane from 0.12.0 to 0.13.0 (#5406)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 10:05:54 -03:00
Sorin Dumitru 04352496f5
Document some missing configuration items (#5393)
* Document some missing configuration items

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Adjust deprecation message

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-08-19 09:07:02 -03:00
dependabot[bot] fbe0fedcf8
Bump the aws-sdk group across 1 directory with 3 updates (#5392)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.174.0 to 1.175.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.174.0...service/ec2/v1.175.1)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.34.1 to 1.35.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.35.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.34.1...service/s3/v1.35.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.58.2 to 1.59.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.58.2...service/s3/v1.59.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-18 12:00:34 -03:00
dependabot[bot] d2809febbc
Bump github.com/docker/docker (#5381)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.1.1+incompatible to 27.1.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.1.1...v27.1.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-18 10:55:07 -03:00
dependabot[bot] 5be704afa4
Bump github.com/aws/smithy-go from 1.20.3 to 1.20.4 (#5391)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.20.3 to 1.20.4.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.20.3...v1.20.4)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-18 09:09:32 -03:00
dependabot[bot] e67da93f79
Bump github.com/gofrs/uuid/v5 from 5.2.0 to 5.3.0 (#5376)
Bumps [github.com/gofrs/uuid/v5](https://github.com/gofrs/uuid) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-18 01:06:43 -03:00
amoore877 fb5c7447c0
Address flake in spire-server-cli CI (#5396)
Signed-off-by: amoore877 <andrew.s.moore@uber.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-18 00:04:49 -03:00
Marcos Yacob e3dac17cd1
Add taint upstream authority (#5340)
* POC to add taint upstream authority

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Propagate taining and revoke into downstream server, updating upstream
client

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* start working in unit tests for 'common/coretypes/jwtkey'

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* refactor x509certificate package

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Add update test in coretypes bundle

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Add more tests for api bundle

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Add tests for local authority service

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* more test

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* more tests

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* more

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* more test

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* resolve some lints

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* more

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* upgrade spire-api-sdk, and resolve lint

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Resolve lint...

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* PR changes

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

---------

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-08-16 11:28:38 -03:00
Andrew Harding 0738b8256b
Upgrade to go1.23 (#5384)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-08-15 14:31:59 -06:00
dependabot[bot] ea4a4a46ad
Bump google.golang.org/api from 0.190.0 to 0.192.0 (#5385)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.190.0 to 0.192.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.190.0...v0.192.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-15 08:01:01 -06:00
Sorin Dumitru bb44487aa0
unix attestor: fix discover_workload_path on mac os (#5324)
When enabling 'discover_workload_path' on mac os the agent fails to
attest any workload due to it trying to access a procfs path:
```
ERRO[0068] Failed to collect all selectors for PID       error="workload attestor \"unix\" failed: rpc error: code = Internal desc = workloadattestor(unix): SHA256 digest: open /proc/16470/exe: no such file or directory" pid=16470 subsystem_name=workload_attestor
DEBU[0068] PID attested to have selectors                pid=16470 selectors="[]" subsystem_name=workload_attestor
ERRO[0068] No identity issued                            method=FetchX509SVID pid=16470 registered=false service=WorkloadAPI subsystem_name=endpoints
```

I assume this is needed to be able to get a path that is accessible by the
spire-agent, for example if it runs in a different namespace. I assume
it's mostly intended for Linux, for most other OSes `proc.Exe()` might
be better. Either way, it's likely to be wrong on various oses since they
either have no procfs, they have no link to the executable in procfs, or
they link is named differently (e.g. `a.out` or `file`).

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-08-15 06:23:35 -06:00
Ben Leggett 9f002a4420
Allow DelegatedIdentity API clients to subscribe by PID (#5272)
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
2024-08-14 08:20:32 -06:00
Federico Nahuel Quijada 0f3a3eecaa
SVID count update (#5352)
Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2024-08-12 14:59:00 -06:00
dependabot[bot] c13acf6012
Bump sigstore/cosign-installer from 3.5.0 to 3.6.0 (#5367)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](59acb6260d...4959ce089c)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-11 09:31:48 -03:00
dependabot[bot] 929da5282d
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore in the azure-sdk group (#5374)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.13.0 to 1.14.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.13.0...sdk/azcore/v1.14.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: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-11 01:49:28 -03:00
dependabot[bot] 39df5b915c
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5373)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.173.0 to 1.174.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.173.0...service/ec2/v1.174.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 19:52:43 -03:00
dependabot[bot] 011b775881
Bump golang.org/x/net from 0.27.0 to 0.28.0 (#5366)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 18:42:21 -03:00
dependabot[bot] 92c3f72c94
Bump actions/upload-artifact from 4.3.4 to 4.3.6 (#5363)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.4 to 4.3.6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](0b2256b8c0...834a144ee9)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 12:21:17 -03:00
dependabot[bot] 4c34228fad
Bump msys2/setup-msys2 from 2.24.0 to 2.24.1 (#5355)
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.24.0 to 2.24.1.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](5df0ca6cbf...ddf331adae)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 11:37:23 -03:00
dependabot[bot] c4dd32d12a
Bump golang.org/x/time from 0.5.0 to 0.6.0 (#5358)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.5.0 to 0.6.0.
- [Commits](https://github.com/golang/time/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 10:19:29 -03:00
dependabot[bot] 6fccda8a27
Bump github.com/open-policy-agent/opa from 0.67.0 to 0.67.1 (#5357)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.67.0 to 0.67.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/v0.67.1/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.67.0...v0.67.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-10 09:36:38 -03:00
dependabot[bot] a593fc4061
Bump golang.org/x/sys from 0.22.0 to 0.24.0 (#5369)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.22.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.22.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 06:59:52 -06:00
dependabot[bot] 9e389adce9
Bump github.com/google/go-containerregistry from 0.20.1 to 0.20.2 (#5365)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.20.1 to 0.20.2.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.1...v0.20.2)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08 13:46:20 -06:00
dependabot[bot] b3833ae20f
Bump github.com/sigstore/cosign/v2 from 2.2.4 to 2.4.0 (#5364)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.2.4 to 2.4.0.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.2.4...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 07:59:28 -06:00
Andrew Harding 7a0a5f1a7a
Upgrade to go1.22.6 (#5362)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-08-07 08:59:37 -03:00
y1nhui e87f1c5c64
Bump golang:1.22.3-alpine3.18 to golang:1.22.4-alpine3.20 (#5361)
Signed-off-by: y1nhui <yinhui.zzy@gmail.com>
2024-08-06 20:30:58 -06:00
kfox1111 5b1966b5c8
Add http node attestor (#4909)
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-08-05 21:37:45 -06:00
James Ribe 033d8d6094
add SVID check to agent health check (#5298)
Signed-off-by: James Ribe <manbeardo@gmail.com>
2024-08-04 22:01:24 -03:00
dependabot[bot] 562be0d28e
Bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#5339)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.5.0 to 3.6.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](aa33708b10...988b5a0280)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-04 18:45:45 -03:00
Faisal Memon cdf8645708
Propogate SQLTransactionTimeout (#5345)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-08-04 11:15:08 -03:00
dependabot[bot] 25b4613ba0
Bump github.com/aws/aws-sdk-go-v2/service/rolesanywhere (#5344)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/rolesanywhere](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/rolesanywhere` from 1.13.1 to 1.14.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.14.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rolesanywhere
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-04 10:48:26 -03:00
dependabot[bot] 89b05657e3
Bump github.com/lestrrat-go/jwx/v2 from 2.1.0 to 2.1.1 (#5338)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-04 09:54:56 -03:00
dependabot[bot] 3ade7f4e34
Bump github.com/open-policy-agent/opa from 0.66.0 to 0.67.0 (#5334)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.66.0 to 0.67.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.66.0...v0.67.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-04 09:14:16 -03:00
dependabot[bot] 24e0708ef5
Bump google.golang.org/api from 0.189.0 to 0.190.0 (#5350)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.189.0 to 0.190.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.189.0...v0.190.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-04 08:45:30 -03:00
Rahul Jadhav 9da4d0ffb7
added AccuKnox as adopter (#5326)
Signed-off-by: Rahul Jadhav <nyrahul@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-08-04 01:36:49 -03:00
Marcos Yacob a682bb9d8b
Update ITs to use docker v2 (#5353)
* Update ITs to use docker compose

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-08-04 01:00:57 -03:00
Marcos Yacob 0859e827dd
Bump SPIRE v1.10.2 (#5347)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-08-03 10:39:32 -03:00
James Ribe d52216d43b
[aws_iid] tolerate network interfaces not being ordered by device index (#5300)
Signed-off-by: James Ribe <manbeardo@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-07-30 15:00:00 -03:00
dependabot[bot] 14a390881c
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5333)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.172.0 to 1.173.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.172.0...service/ec2/v1.173.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 10:33:37 -03:00
dependabot[bot] 47be462989
Bump msys2/setup-msys2 from 2.23.0 to 2.24.0 (#5337)
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](d0e80f58df...5df0ca6cbf)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 11:33:23 -03:00
dependabot[bot] 7c371d828d
Bump github.com/go-jose/go-jose/v4 from 4.0.2 to 4.0.4 (#5336)
* Bump github.com/go-jose/go-jose/v4 from 4.0.2 to 4.0.4

Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update error message expected from the go-jose library in TestErrorOnMissingKid

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-07-29 10:57:45 -03:00
dependabot[bot] 862502a428
Bump docker/setup-qemu-action from 3.1.0 to 3.2.0 (#5321)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](5927c834f5...49b3bc8e6b)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 10:15:42 -03:00
dependabot[bot] 727094daca
Bump docker/login-action from 3.2.0 to 3.3.0 (#5323)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](0d4c9c5ea7...9780b0c442)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:31:02 -03:00
dependabot[bot] 472539a05a
Bump docker/setup-buildx-action from 3.4.0 to 3.5.0 (#5322)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](4fd812986e...aa33708b10)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 09:29:52 -03:00
dependabot[bot] 1e032c58fc
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5328)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.171.0 to 1.172.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.171.0...service/ec2/v1.172.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 09:03:24 -03:00
dependabot[bot] d99d720133
Bump github.com/docker/docker (#5329)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.1.0+incompatible to 27.1.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.1.0...v27.1.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 08:31:15 -03:00
Aleksei Zakharov bdf5bf9425
Print prometheus address and port in logs and name it "exporter listen" instead of "server" (#5307)
Signed-off-by: a.g.zakharov <zakharov.a.g@yandex.ru>
2024-07-24 10:05:21 -06:00
Faisal Memon 01bedb8e87
Check missed events before start (#5289)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-07-24 06:45:08 -06:00
dependabot[bot] 7c5e72ea14
Bump github.com/docker/docker (#5320)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.0.3+incompatible to 27.1.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.0.3...v27.1.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 13:59:46 -03:00
dependabot[bot] 7986dbbad7
Bump google.golang.org/api from 0.188.0 to 0.189.0 (#5319)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.188.0 to 0.189.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.188.0...v0.189.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 11:05:38 -03:00
dependabot[bot] 55235be5b7
Bump github.com/googleapis/gax-go/v2 from 2.12.5 to 2.13.0 (#5318)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.12.5 to 2.13.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.12.5...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 10:23:53 -03:00
dependabot[bot] 5b186b0daf
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.35.4 to 1.36.0 (#5310)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.35.4 to 1.36.0.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.36.0/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.35.4...v1.36.0)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 12:46:23 -06:00
dependabot[bot] d1403de5b0
Bump the aws-sdk group with 2 updates (#5315)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.34.0 to 1.35.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.35.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.34.0...service/s3/v1.35.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.170.0 to 1.171.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.170.0...service/ec2/v1.171.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 11:17:06 -06:00
dependabot[bot] 550447498e
Bump the k8s-io group with 5 updates (#5312)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.30.2` | `0.30.3` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.30.2` | `0.30.3` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.30.2` | `0.30.3` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.30.2` | `0.30.3` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.30.2` | `0.30.3` |


Updates `k8s.io/api` from 0.30.2 to 0.30.3
- [Commits](https://github.com/kubernetes/api/compare/v0.30.2...v0.30.3)

Updates `k8s.io/apimachinery` from 0.30.2 to 0.30.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.30.2...v0.30.3)

Updates `k8s.io/client-go` from 0.30.2 to 0.30.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.30.2...v0.30.3)

Updates `k8s.io/kube-aggregator` from 0.30.2 to 0.30.3
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.30.2...v0.30.3)

Updates `k8s.io/mount-utils` from 0.30.2 to 0.30.3
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.30.2...v0.30.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 10:50:59 -06:00
dependabot[bot] 516016d1db
Bump github.com/google/go-containerregistry from 0.20.0 to 0.20.1 (#5309)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.0...v0.20.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-18 11:07:12 -03:00
dependabot[bot] ac55e589bd
Bump the azure-sdk group with 2 updates (#5308)
Bumps the azure-sdk group with 2 updates: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) and [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.12.0 to 1.13.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.12.0...sdk/azcore/v1.13.0)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.6.0 to 1.7.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.6.0...sdk/azcore/v1.7.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: azure-sdk
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-18 10:04:46 -03:00
dependabot[bot] 4fdff039f3
Bump actions/dependency-review-action from 4.3.3 to 4.3.4 (#5295)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](72eb03d02c...5a2ce3f5b9)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 11:56:58 -03:00
dependabot[bot] a6ae9d8451
Bump github.com/sigstore/sigstore from 1.8.6 to 1.8.7 (#5296)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.6 to 1.8.7.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.6...v1.8.7)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 10:27:42 -03:00
Sorin Dumitru c75c151323
lru cache: Only send notifications to the new subscriber (#5281)
When there's a new subscription to the cache we shouldn't notify all existing
subscriptions. That causes them to receive updates even if there was no
change to the SVIDs or bundles.

This can cause issues with users that trigger side effects, such as
restarting a service, when they receive updates on the X509 stream.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-07-17 09:27:08 -03:00
dependabot[bot] f1619e2185
Bump github.com/aws/aws-sdk-go-v2/service/acmpca in the aws-sdk group (#5302)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.33.0 to 1.34.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.33.0...service/s3/v1.34.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 09:02:04 -03:00
dependabot[bot] 2796ea1d80
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5276)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.42.0 to 1.43.0
- [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/spanner/v1.42.0...spanner/v1.43.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 08:36:40 -03:00
dependabot[bot] 3f118b07cc
Bump the aws-sdk group across 1 directory with 3 updates (#5294)
Bumps the aws-sdk group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.167.1 to 1.170.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.167.1...service/ec2/v1.170.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.29.1 to 1.30.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.1...v1.30.2)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.57.1 to 1.58.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.57.1...service/s3/v1.58.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-07-11 15:53:00 -03:00
dependabot[bot] e2d5396f25
Bump google.golang.org/api from 0.187.0 to 0.188.0 (#5287)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.187.0 to 0.188.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.187.0...v0.188.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 15:23:50 -03:00
dependabot[bot] f4c77b8503
Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#5283)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65462800fd...0b2256b8c0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 14:34:28 -03:00
dependabot[bot] 6cce8244da
Bump actions/download-artifact from 4.1.7 to 4.1.8 (#5282)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](65a9edc588...fa0a91b85d)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 13:49:35 -03:00
dependabot[bot] 0537036367
Bump docker/setup-buildx-action from 3.3.0 to 3.4.0 (#5279)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](d70bba72b1...4fd812986e)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 13:23:22 -03:00
dependabot[bot] 74098027c0
Bump actions/setup-python from 5.1.0 to 5.1.1 (#5292)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](82c7e631bb...39cd14951b)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 12:58:33 -03:00
dependabot[bot] 557562ee39
Bump actions/setup-go from 5.0.1 to 5.0.2 (#5293)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](cdcb360436...0a12ed9d6a)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 11:38:35 -03:00
Andrés Vega 0371053d72
Remove broken slack badge from README.md (#5290)
Signed-off-by: Andrés Vega <av@messier42.com>
2024-07-11 08:59:43 -03:00
Faisal Memon 93141e656e
Events based cache code reorg (#5274)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-07-10 10:05:42 -03:00
dependabot[bot] c50fc95d68
Bump github.com/google/go-containerregistry from 0.19.2 to 0.20.0 (#5286)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.19.2 to 0.20.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.19.2...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 15:07:17 -03:00
dependabot[bot] 5f705c972c
Bump golang.org/x/net from 0.26.0 to 0.27.0 (#5285)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/net/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 14:07:07 -07:00
Andrew Harding 7d38c52c1b
Optionally prefer downstream X509 CA TTL (#5264)
Plumbs through and uses the "preferred TTL" value from the downstream
server when minting downstream X509 CA.

This behavior is still off by default. It can be turned on by setting
the `use_legacy_downstream_x509_ca_ttl=false` configuration value.

This configuration value will remain false by default through SPIRE
v1.11.xx. The default can change to true, and the flag deprecated, in
SPIRE v1.12.0.
2024-07-08 10:12:46 -07:00
dependabot[bot] 955b614451
Bump google.golang.org/grpc from 1.64.0 to 1.65.0 (#5270)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.64.0 to 1.65.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.64.0...v1.65.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 05:09:06 -06:00
dependabot[bot] d0931cef6f
Bump golang.org/x/sys from 0.21.0 to 0.22.0 (#5277)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-07 22:38:10 -03:00
dependabot[bot] d25b906094
Bump google.golang.org/api from 0.186.0 to 0.187.0 (#5271)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.186.0 to 0.187.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.186.0...v0.187.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-07 21:24:18 -03:00
dependabot[bot] 89d3c2d714
Bump docker/setup-qemu-action from 3.0.0 to 3.1.0 (#5275)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](68827325e0...5927c834f5)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06 16:55:19 -03:00
dependabot[bot] 59ab04f673
Bump github.com/docker/docker (#5267)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.0.2+incompatible to 27.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.0.2...v27.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06 14:56:34 -03:00
dependabot[bot] a62344a4c9
Bump the aws-sdk group across 1 directory with 8 updates (#5266)
Bumps the aws-sdk group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.31.0` | `1.33.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.166.0` | `1.167.1` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.33.0` | `1.34.1` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.34.0` | `1.35.1` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.28.0` | `1.29.1` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.56.0` | `1.57.1` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.31.0` | `1.32.1` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.29.0` | `1.30.1` |



Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.31.0 to 1.33.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.33.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.0...service/s3/v1.33.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.166.0 to 1.167.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.166.0...service/ec2/v1.167.1)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.33.0 to 1.34.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.33.0...service/s3/v1.34.1)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.34.0 to 1.35.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.34.0...service/fms/v1.35.1)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.28.0 to 1.29.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.28.0...service/s3/v1.29.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.56.0 to 1.57.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.56.0...service/s3/v1.57.1)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.31.0 to 1.32.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.0...service/emr/v1.32.1)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.29.0 to 1.30.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.29.0...v1.30.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 10:09:06 -03:00
ajay1135 be8667ebdf
Introduce `aws_rolesanywhere_trustanchor` BundlePublisher plugin (#5048)
* Introduce the aws_rolesanywhere_trustanchor BundlePublisher plugin

* Implement and add tests for the plugin

Signed-off-by: Ajay Gupta <apg76@cornell.edu>

* Add documentation for aws_rolesanywhere_trustanchor BundlePublisher plugin

Signed-off-by: Ajay Gupta <apg76@cornell.edu>

* Apply suggestions from code review

Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: ajay1135 <32616412+ajay1135@users.noreply.github.com>

* Address comments on PR

* Only required rolesanywhere:UpdateTrustAnchor permissions (no creating
  or listing)
* Add note about how this plugin is only supported when an
  UpstreamAuthority plugin is also used
* Use ID instead of trust anchor name to identify trust anchors, as it's
  unique
* Check that certificate bundles don't exceed a length of 8000 before
  making the UpdateTrustAnchor API call
* Make corresponding changes to unit tests

Signed-off-by: Ajay Gupta <apg76@cornell.edu>

* Apply suggestions from code review

Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Signed-off-by: ajay1135 <32616412+ajay1135@users.noreply.github.com>

---------

Signed-off-by: Ajay Gupta <apg76@cornell.edu>
Signed-off-by: ajay1135 <32616412+ajay1135@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-07-01 09:07:24 -03:00
dependabot[bot] 0b6aa87f55
Bump github.com/aws/smithy-go from 1.20.2 to 1.20.3 (#5265)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.20.2 to 1.20.3.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.20.2...v1.20.3)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28 15:20:21 -03:00
dependabot[bot] 7254d75388
Bump github.com/sigstore/sigstore from 1.8.5 to 1.8.6 (#5262)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.5 to 1.8.6.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.5...v1.8.6)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28 14:31:28 -03:00
dependabot[bot] 3776aa94f3
Bump github.com/docker/docker (#5261)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.0.1+incompatible to 27.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.0.1...v27.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28 14:04:22 -03:00
dependabot[bot] 17d2b76078
Bump github.com/open-policy-agent/opa from 0.65.0 to 0.66.0 (#5263)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.65.0 to 0.66.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.65.0...v0.66.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-27 17:17:19 -03:00
dependabot[bot] 0d3928db86
Bump google.golang.org/api from 0.185.0 to 0.186.0 (#5258)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.185.0 to 0.186.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.185.0...v0.186.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-27 16:50:49 -03:00
dependabot[bot] 9de20a2fde
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5257)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.165.0 to 1.166.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.165.0...service/ec2/v1.166.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-27 10:13:54 -03:00
Faisal Memon 27f8c36e67
Events based cache: Address missed code review comments (#5249)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-06-25 17:31:50 -06:00
dependabot[bot] 4d1fc9eb3e
Bump github.com/sigstore/sigstore from 1.8.4 to 1.8.5 (#5252)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.4 to 1.8.5.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.4...v1.8.5)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 15:02:23 -03:00
dependabot[bot] e2a4cc0586
Bump github.com/docker/docker (#5251)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.0.0+incompatible to 27.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/commits/v27.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:36:46 -03:00
dependabot[bot] 8cf9f3100b
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#5246)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.17.1 to 1.18.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.17.1...kms/v1.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-06-25 11:13:38 -03:00
dependabot[bot] a8bc661938
Bump github.com/hashicorp/go-retryablehttp from 0.7.6 to 0.7.7 (#5250)
Bumps [github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp) from 0.7.6 to 0.7.7.
- [Changelog](https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-retryablehttp/compare/v0.7.6...v0.7.7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-retryablehttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 10:31:11 -03:00
Marcos Yacob 477ff538be
Bump SPIRE v1.10.1 (#5248)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-06-24 15:21:34 -03:00
dependabot[bot] bd69238aba
Bump google.golang.org/api from 0.184.0 to 0.185.0 (#5242)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.184.0 to 0.185.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.184.0...v0.185.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 10:26:31 -03:00
dependabot[bot] 633a9afaef
Bump github.com/googleapis/gax-go/v2 from 2.12.4 to 2.12.5 (#5241)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.12.4 to 2.12.5.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.12.4...v2.12.5)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 11:44:08 -03:00
dependabot[bot] 86deddb563
Bump github.com/aws/aws-sdk-go-v2 from 1.29.0 to 1.30.0 (#5243)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.29.0...v1.30.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 10:59:05 -03:00
dependabot[bot] 2f36b0fdcf
Bump github.com/google/go-tpm from 0.9.0 to 0.9.1 (#5239)
Bumps [github.com/google/go-tpm](https://github.com/google/go-tpm) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/google/go-tpm/releases)
- [Commits](https://github.com/google/go-tpm/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-20 15:04:32 -03:00
dependabot[bot] afe587c17f
Bump the aws-sdk group with 8 updates (#5238)
Bumps the aws-sdk group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.30.0` | `1.31.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.164.2` | `1.165.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.32.0` | `1.33.0` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.33.1` | `1.34.0` |
| [github.com/aws/aws-sdk-go-v2/service/organizations](https://github.com/aws/aws-sdk-go-v2) | `1.27.3` | `1.28.0` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.55.2` | `1.56.0` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.30.1` | `1.31.0` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.28.5` | `1.29.0` |


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.30.0...service/s3/v1.31.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.164.2 to 1.165.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.164.2...service/ec2/v1.165.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.32.0 to 1.33.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.33.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.32.0...service/s3/v1.33.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.33.1 to 1.34.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.33.1...service/s3/v1.34.0)

Updates `github.com/aws/aws-sdk-go-v2/service/organizations` from 1.27.3 to 1.28.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.3...v1.28.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.55.2 to 1.56.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.55.2...service/s3/v1.56.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.30.1 to 1.31.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.30.1...service/s3/v1.31.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.28.5 to 1.29.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.28.5...v1.29.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/organizations
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-20 12:03:41 -03:00
Andrew Harding 763bcdb027
Document SDK release process (#5235)
* Document SDK release process

Resolves: #4284

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* fix lint

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* Updated with suggestions

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-06-19 12:21:02 -03:00
Federico Nahuel Quijada 7e7f487df1
Provide Grafana dashboard JSON configuration (#5188)
* add documentation and grafana dashboard

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2024-06-18 17:05:27 -03:00
Sorin Dumitru 60e88443ec
Allow specifying a cert and a key manually for federation endpoint. (#5163)
Allow specifying a cert and a key manually for federation endpoint.

* Move DiskCertManager to pkg/common
* Rename TLSConfig to GetTLSConfig
* spire-server: allow directly specifying a certificate and key for the bundle endpoint
* Update documentation
* Start file watcher as a task
* Update conf/server/server_full.conf

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
2024-06-18 16:34:30 -03:00
dependabot[bot] cdb79555cd
Bump github.com/spiffe/go-spiffe/v2 from 2.2.0 to 2.3.0 (#5231)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 16:07:43 -03:00
dependabot[bot] 251b37d4a5
Bump the aws-sdk group across 1 directory with 4 updates (#5229)
* Bump the aws-sdk group across 1 directory with 4 updates

Bumps the aws-sdk group with 4 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.162.0 to 1.164.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.162.0...service/ec2/v1.164.2)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.32.0 to 1.33.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.33.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.32.0...service/s3/v1.33.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.54.1 to 1.55.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.54.1...service/s3/v1.55.2)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.29.0 to 1.30.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.0...service/s3/v1.30.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>

* Stop using deprecated resolver

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-06-18 12:31:46 -06:00
dependabot[bot] d8a1827d43
Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 (#5232)
* Bump google.golang.org/protobuf from 1.34.1 to 1.34.2

Bumps google.golang.org/protobuf from 1.34.1 to 1.34.2.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Generate protobuf code

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-06-18 15:04:56 -03:00
dependabot[bot] 8dc8dd5373
Bump github.com/lestrrat-go/jwx/v2 from 2.0.21 to 2.1.0 (#5233)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.21 to 2.1.0.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.21...v2.1.0)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 14:40:30 -03:00
dependabot[bot] 6c036eccb7
Bump github.com/google/go-containerregistry from 0.19.1 to 0.19.2 (#5230)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.19.1 to 0.19.2.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.19.1...v0.19.2)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 14:16:13 -03:00
Agustín Martínez Fayó 52c79e05be
Update plugin_agent_workloadattestor_docker.md based on #5040 contribution (#5220)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-18 12:13:47 -03:00
dependabot[bot] c584a10c6b
Bump github.com/docker/docker from 26.1.4+incompatible to 27.0.0+incompatible (#5222)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.4+incompatible to 27.0.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/commits)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade docket client in unit test

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-06-18 11:21:54 -03:00
dependabot[bot] e6cb671dcd
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.35.3 to 1.35.4 (#5225)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.35.3 to 1.35.4.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.35.4/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.35.3...v1.35.4)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:29:37 -03:00
dependabot[bot] f3741c14e3
Bump google.golang.org/api from 0.183.0 to 0.184.0 (#5223)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.183.0 to 0.184.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.183.0...v0.184.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 09:57:04 -03:00
dependabot[bot] 840afc8d65
Bump the k8s-io group with 5 updates (#5221)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.30.1` | `0.30.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.30.1` | `0.30.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.30.1` | `0.30.2` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.30.1` | `0.30.2` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.30.1` | `0.30.2` |


Updates `k8s.io/api` from 0.30.1 to 0.30.2
- [Commits](https://github.com/kubernetes/api/compare/v0.30.1...v0.30.2)

Updates `k8s.io/apimachinery` from 0.30.1 to 0.30.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.30.1...v0.30.2)

Updates `k8s.io/client-go` from 0.30.1 to 0.30.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.30.1...v0.30.2)

Updates `k8s.io/kube-aggregator` from 0.30.1 to 0.30.2
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.30.1...v0.30.2)

Updates `k8s.io/mount-utils` from 0.30.1 to 0.30.2
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.30.1...v0.30.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 16:41:28 -03:00
dependabot[bot] d3cf0fcc63
Bump sigs.k8s.io/controller-runtime from 0.18.3 to 0.18.4 (#5200)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.18.3 to 0.18.4.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.18.3...v0.18.4)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 16:06:51 -03:00
Agustín Martínez Fayó 826a59f7c7
Build the SPIRE Agent Docker image to run as root by default (#5227)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-17 12:30:59 -03:00
Edwin Buck e2e765ca7e
Remove configuration constraint for k8s_psat (#5216)
* Remove configuration constraint.

Closes #5211

We already scan the map of clusters at runtime, sending an error when
the cluster is not found in the hclConfig.Clusters map.  So, this just
removes the need for at least one cluster to be configured.

When zero clusters are configured, all requests will fail.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>

* Updates requested in reveiw.

1. Log a warning when the k8s psat server count is zero.
2. Fix the documentation (markdown) to present better.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>

* Add in the block markers to make the Warning work.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>

* Clarify the setting value with code highlighting.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>

* Moved warning about zero configured clusters after errors.

By moving the warning to after the errors, the errors will
mask a warning on a config that doesn't get applied.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>

---------

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-06-14 11:27:58 -06:00
Andrew Harding 2fc296cd28
Update alias regex used in fake client (#5224)
It does not match that specified by
https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateAlias.html#API_CreateAlias_RequestSyntax

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-06-14 10:00:10 -06:00
dependabot[bot] bf6850280f
Bump actions/checkout from 4.1.6 to 4.1.7 (#5218)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](a5ac7e51b4...692973e3d9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 15:21:45 -03:00
dependabot[bot] 8795d31e54
Bump actions/dependency-review-action from 4.3.2 to 4.3.3 (#5194)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](0c155c5e85...72eb03d02c)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 13:09:31 -03:00
dependabot[bot] 0581e3e317
Bump the azure-sdk group across 1 directory with 2 updates (#5213)
Bumps the azure-sdk group with 2 updates in the / directory: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) and [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.11.1 to 1.12.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.11.1...sdk/azcore/v1.12.0)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.5.2 to 1.6.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/internal/v1.5.2...sdk/azcore/v1.6.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: azure-sdk
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 09:52:24 -03:00
dependabot[bot] 1ec43252fc
Bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#5192)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/crypto/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 09:08:34 -03:00
Andrew Harding 99f6675d20
Remove disable_reattest_to_renew functionality (#5217)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-06-12 11:57:56 -06:00
dependabot[bot] 8f9fa036e1
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5212)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.41.0 to 1.42.0
- [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/spanner/v1.41.0...spanner/v1.42.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 14:21:36 -03:00
Agustín Martínez Fayó 04a0bcd1ad
Remove the key_metadata_file and use_msi (azure_key_vault only) settings (#5207)
* Remove the key_metadata_file and use_msi (azure_key_vault only) settings

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Address PR comments

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-10 15:28:23 -03:00
Agustín Martínez Fayó 31dbc474b8
Remove the `use_msi` setting from the `azure_msi` plugin (#5209)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-10 15:01:52 -03:00
Andrew Harding 18767a7a2b
Enforce reattest to renew on server (#5204)
* Enforce reattest to renew on server

This has been a warning but is now enforced for 1.10.0.

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* adjust node-attestation test

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* fix lint

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-10 14:17:55 -03:00
Andrew Harding 91279aa628
No longer remove deprecated bundle/svid files (#5205)
These deprecated files were unused since 1.4 but kept up-to-date until
1.9.0, which actively removed them. The removal code is no longer needed
for 1.10 onwards.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-10 13:25:06 -03:00
Andrew Harding 61d498e64e
Remove deprecated exclude_sn_from_ca_subject configurable (#5203)
This flag has been deprecated since 1.9.0 and is ready for removal.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-06-10 11:06:03 -03:00
Agustín Martínez Fayó b1d423e184
Do not save the CA journal file anymore (#5202)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-10 06:41:37 -06:00
Agustín Martínez Fayó ecabb6cc4d
Fix Dockerfile to have the proper permissions in directories (#4967)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-06-07 10:25:34 -06:00
dependabot[bot] 7e9964e9cd
Bump github.com/docker/docker (#5195)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.3+incompatible to 26.1.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.3...v26.1.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 09:57:46 -06:00
dependabot[bot] d0517aa61b
Bump golang.org/x/sys from 0.20.0 to 0.21.0 (#5185)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/sys/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 12:00:06 -03:00
dependabot[bot] efdf7e3b87
Bump github.com/shirou/gopsutil/v3 from 3.24.4 to 3.24.5 (#5182)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.24.4 to 3.24.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.24.4...v3.24.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 13:30:55 -06:00
Edwin Buck 4da26fed17
Update Telemetry documentation for SPIRE DB Events (#5189)
* Update Telemetry documentation for SPIRE DB Events

Closes #4837

This covers the database interactions for both
registration entry events (list, prune, fetch)
and node events (list, prune, fetch)

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-06-04 18:40:41 -03:00
Edwin Buck 6ae09a498e
Fix spelling "amoount" -> "amount" (#5187)
Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-06-04 11:58:16 -06:00
Faisal Memon 09e0e360d5
Handle out of order events (#5071)
* Handle out of order events

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Marcos Yacob <marcosyacob@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-06-04 13:52:20 -03:00
Aaron Kaloti 4a90400616
Fixed bad hyperlink (#5181)
Signed-off-by: Aaron Kaloti <aarons.7007@gmail.com>
2024-06-01 22:25:42 -03:00
dependabot[bot] 894da5c317
Bump docker/login-action from 3.1.0 to 3.2.0 (#5175)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](e92390c5fb...0d4c9c5ea7)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 17:02:43 -03:00
dependabot[bot] 405e98735a
Bump github.com/open-policy-agent/opa from 0.64.1 to 0.65.0 (#5178)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.64.1 to 0.65.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.64.1...v0.65.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 14:46:34 -03:00
dependabot[bot] bec6530e6a
Bump github.com/sigstore/sigstore from 1.8.3 to 1.8.4 (#5173)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 12:30:42 -03:00
dependabot[bot] 0c80e69c8a
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5176)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.161.0 to 1.162.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.161.0...service/ec2/v1.162.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 11:49:39 -03:00
amoore877 70fe7a75c1
Mark LRU Cache disablement and sizing as deprecated (#5150)
* Mark LRU Cache disablement and sizing as deprecated

Signed-off-by: amoore877 <andrew.s.moore@uber.com>

* correct placement of accidentally moved line

Signed-off-by: amoore877 <andrew.s.moore@uber.com>

---------

Signed-off-by: amoore877 <andrew.s.moore@uber.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-05-31 11:25:23 -03:00
dependabot[bot] 4e7f835220
Bump github.com/jackc/pgx/v5 from 5.5.5 to 5.6.0 (#5172)
* Bump github.com/jackc/pgx/v5 from 5.5.5 to 5.6.0

Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.5 to 5.6.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.5...v5.6.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update error message in TestAWSRDS

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-05-31 10:44:15 -03:00
dependabot[bot] 89c24f8a7d
Bump google.golang.org/api from 0.181.0 to 0.182.0 (#5177)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.181.0 to 0.182.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.181.0...v0.182.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-30 15:46:54 -03:00
dependabot[bot] 0350171622
Bump sigs.k8s.io/controller-runtime from 0.18.2 to 0.18.3 (#5171)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.18.2 to 0.18.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.18.2...v0.18.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-27 10:28:25 -03:00
Andrew Harding 5539445966
Plugin reconfiguration support (#5166)
* Plugin reconfiguration support

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-05-23 17:49:35 -03:00
dependabot[bot] 111aa17f4f
Bump github.com/hashicorp/vault/sdk from 0.12.0 to 0.13.0 (#5170)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/sdk/v0.12.0...sdk/v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 17:25:26 -03:00
dependabot[bot] 6f749e7b28
Bump google.golang.org/grpc from 1.63.2 to 1.64.0 (#5148)
* Bump google.golang.org/grpc from 1.63.2 to 1.64.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.63.2 to 1.64.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.63.2...v1.64.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Make lint pass until we resolve migration issue

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Resolve windows lints

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Start to use grpc.NewClient in places where it is possible

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-05-23 16:45:15 -03:00
dependabot[bot] f463737c65
Bump github.com/hashicorp/vault/api from 1.13.0 to 1.14.0 (#5169)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 16:19:16 -03:00
dependabot[bot] 2104155ccb
Bump cloud.google.com/go/security in the google-cloud-sdk group (#5168)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/security` from 1.16.0 to 1.17.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.16.0...kms/v1.17.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 14:53:12 -03:00
dependabot[bot] 3e016b2900
Bump github.com/aws/aws-sdk-go-v2/service/kms in the aws-sdk group (#5167)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.31.0 to 1.32.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.32.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.0...service/s3/v1.32.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 14:27:07 -03:00
dependabot[bot] 9eae6ac2d9
--- (#5164)
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-22 10:35:16 -03:00
Sorin Dumitru e33fb849c2
spire-agent: re-attest without restarting (#4991)
* spire-agent: re-attest without restarting

When an agent is evicted it can re-attest to reconnect to spire-server but it currently needs to restart to do that. To avoid unavailability periods, which can lead to latency in applications, reattest in process

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-05-21 17:41:24 -03:00
Federico Nahuel Quijada b899683e80
Add spire-agent CLI commands integration test (#4969)
* Add agent cli command integration test
* Add check-valid-config
* add API WATCH command integration test
* Add api-watch-fail test

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2024-05-21 14:04:30 -03:00
dependabot[bot] a3c05412f2
Bump github.com/aws/aws-sdk-go-v2/service/acmpca in the aws-sdk group (#5159)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.29.1 to 1.30.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.30.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.1...service/s3/v1.30.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 14:51:52 -03:00
dependabot[bot] 3d8dc78337
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.35.2 to 1.35.3 (#5162)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.35.2 to 1.35.3.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.35.3/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.35.2...v1.35.3)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 12:21:33 -03:00
dependabot[bot] d68a6ce5c3
Bump github.com/aws/aws-sdk-go-v2 from 1.26.2 to 1.27.0 (#5161)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.26.2 to 1.27.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.26.2...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 10:52:43 -03:00
dependabot[bot] 469c7cf000
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#5160)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.16.0 to 1.17.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.16.0...kms/v1.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 10:09:07 -03:00
Marcos Yacob ba45cdd247
Improve setup-go latency when using windows (#5158)
* Set golang folders for windows runners, and start using cache, to improve CI performance
2024-05-17 14:21:36 -03:00
dependabot[bot] f3ee2bf653
Bump github.com/docker/docker (#5155)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.2+incompatible to 26.1.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.2...v26.1.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-17 09:49:40 -03:00
dependabot[bot] 88dc448c47
Bump actions/checkout from 4.1.5 to 4.1.6 (#5157)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.5 to 4.1.6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](44c2b7a8a4...a5ac7e51b4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-17 05:20:27 -06:00
Faisal Memon 1c6e1444cf
Update workflow Ubuntu to 22.04 (#4882)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-05-16 18:11:22 -06:00
dependabot[bot] 089de8a9ab
Bump github.com/go-jose/go-jose/v4 from 4.0.1 to 4.0.2 (#5156)
Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.0.1...v4.0.2)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 17:03:27 -03:00
dependabot[bot] 1e752f7986
Bump google.golang.org/api from 0.180.0 to 0.181.0 (#5154)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.180.0 to 0.181.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.180.0...v0.181.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 15:18:39 -03:00
dependabot[bot] 390b0fb1c5
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.35.1 to 1.35.2 (#5153)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.35.1 to 1.35.2.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.35.2/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.35.1...v1.35.2)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 14:29:57 -03:00
dependabot[bot] f5a007a101
Bump github.com/aws/aws-sdk-go-v2/service/s3 (#5149)
Bumps the aws-sdk group with 1 update in the / directory: [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.53.0 to 1.54.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.53.0...service/s3/v1.54.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 09:49:20 -03:00
dependabot[bot] 81b13bff4e
Bump the k8s-io group with 5 updates (#5147)
Bumps the k8s-io group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.30.0` | `0.30.1` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.30.0` | `0.30.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.30.0` | `0.30.1` |
| [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) | `0.30.0` | `0.30.1` |
| [k8s.io/mount-utils](https://github.com/kubernetes/mount-utils) | `0.30.0` | `0.30.1` |


Updates `k8s.io/api` from 0.30.0 to 0.30.1
- [Commits](https://github.com/kubernetes/api/compare/v0.30.0...v0.30.1)

Updates `k8s.io/apimachinery` from 0.30.0 to 0.30.1
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.30.0...v0.30.1)

Updates `k8s.io/client-go` from 0.30.0 to 0.30.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.30.0...v0.30.1)

Updates `k8s.io/kube-aggregator` from 0.30.0 to 0.30.1
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.30.0...v0.30.1)

Updates `k8s.io/mount-utils` from 0.30.0 to 0.30.1
- [Commits](https://github.com/kubernetes/mount-utils/compare/v0.30.0...v0.30.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/mount-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 18:20:24 -03:00
dependabot[bot] 9bd6aa4232
Bump cloud.google.com/go/storage in the google-cloud-sdk group (#5146)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.40.0 to 1.41.0
- [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/spanner/v1.40.0...spanner/v1.41.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 16:26:11 -03:00
dependabot[bot] 4140e3797c
Bump github.com/gofrs/uuid/v5 from 5.1.0 to 5.2.0 (#5141)
Bumps [github.com/gofrs/uuid/v5](https://github.com/gofrs/uuid) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 15:41:38 -03:00
Marcos Yacob 8dbf75912d
Bump spire v1.10.0 (#5144)
* Bump spire v1.10.0

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-05-15 14:36:36 -03:00
dependabot[bot] ade2b3dcd5
Bump github.com/hashicorp/go-plugin from 1.6.0 to 1.6.1 (#5139)
Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14 17:56:46 -03:00
dependabot[bot] 82d11b4bb5
Bump google.golang.org/api from 0.178.0 to 0.180.0 (#5138)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.178.0 to 0.180.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.178.0...v0.180.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14 15:29:53 -03:00
Andrew Harding 3b3c099c2d
Tighten up PSAT audience validation (#5142)
Kubernetes docs advise that callers of the TokenReview API should cross
check the audience fields in the spec and status just in case there is
a validator out there that is audience-unaware.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-05-14 07:43:20 -06:00
dependabot[bot] d56fe8fae7
Bump github.com/docker/docker (#5137)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.1+incompatible to 26.1.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.1...v26.1.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 15:43:14 -03:00
dependabot[bot] 08de26dd58
Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 (#5136)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.0 to 1.19.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.19.0...v1.19.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 13:10:11 -03:00
dependabot[bot] 70bbbe8f51
Bump golang.org/x/net from 0.24.0 to 0.25.0 (#5135)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 10:52:50 -03:00
dependabot[bot] 4da4470755
Bump cloud.google.com/go/kms in the google-cloud-sdk group (#5133)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/kms` from 1.15.8 to 1.16.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.15.8...kms/v1.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 15:22:45 -03:00
dependabot[bot] b3c8dd0860
Bump golang.org/x/sys from 0.19.0 to 0.20.0 (#5134)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/sys/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 14:12:25 -03:00
dependabot[bot] e3f0d7c71a
Bump msys2/setup-msys2 from 2.22.0 to 2.23.0 (#5125)
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](cc11e9188b...d0e80f58df)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 21:36:15 -03:00
dependabot[bot] b9c06009e3
Bump actions/checkout from 4.1.4 to 4.1.5 (#5124)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](0ad4b8fada...44c2b7a8a4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 20:58:55 -03:00
dependabot[bot] 0fabcce09d
Bump actions/setup-go from 5.0.0 to 5.0.1 (#5122)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0c52d547c9...cdcb360436)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 20:18:28 -03:00
dependabot[bot] 5387be6b2f
Bump github.com/aws/aws-sdk-go-v2/service/ec2 (#5131)
Bumps the aws-sdk group with 1 update in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.159.0 to 1.161.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.159.0...service/ec2/v1.161.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 17:44:13 -03:00
dependabot[bot] ba71ae85d1
Bump google.golang.org/api from 0.176.1 to 0.178.0 (#5129)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.176.1 to 0.178.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.176.1...v0.178.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 17:02:52 -03:00
dependabot[bot] bb8916e093
Bump google.golang.org/protobuf from 1.34.0 to 1.34.1 (#5128)
* Bump google.golang.org/protobuf from 1.34.0 to 1.34.1

Bumps google.golang.org/protobuf from 1.34.0 to 1.34.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regen protos

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-05-08 16:17:40 -03:00
dependabot[bot] 2349a4967b
Bump sigs.k8s.io/controller-runtime from 0.18.0 to 0.18.2 (#5127)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.18.0 to 0.18.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.18.0...v0.18.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 14:58:31 -03:00
dependabot[bot] 4d6a0184cf
Bump cloud.google.com/go/secretmanager in the google-cloud-sdk group (#5120)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/secretmanager` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.12.0...kms/v1.13.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 14:08:15 -03:00
Agustín Martínez Fayó 4df15ea2df
Bump SPIRE to v1.9.6 (#5130)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-05-08 09:03:50 -06:00
dependabot[bot] 31c847e723
Bump github.com/shirou/gopsutil/v3 from 3.24.3 to 3.24.4 (#5117)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.24.3 to 3.24.4.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.24.3...v3.24.4)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 12:25:05 -03:00
Agustín Martínez Fayó 00f2ca59e8
Fix the clock skew calculation in auth tokens for IAM-based authentication with AWS RDS (#5119)
* Fix the clock skew calculation in auth tokens for AWS RDS

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* - Rename isExpired() function to shouldRotate() and add a comment
- Use the newly added clockSkew constant

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-05-07 04:55:04 -06:00
dependabot[bot] 76a5e69ae5
Bump actions/dependency-review-action from 4.3.1 to 4.3.2 (#5116)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](e58c696e52...0c155c5e85)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 16:44:40 -06:00
nik 9deb3171e8
reset timestamps to integer when composer plugins are invoked for compatiblity with AWS (#5115)
Using credentialcomposer plugins forces Claims to be translated as protobuf structs which serializes integers as floats (#4982). AWS rejects validating JWT issued by SPIRE with timestamps that are in scientific notation. AWS STS only accepts integer timestamps as valid. We've discussed this with AWS, and while they agree it's an issue in AWS STS, there's no recourse available with them. This fix helps reset value type for timestamps and also includes unit tests that make the problem obvious. This is the minimal change needed for SPIRE to produce verifiable JWT for AWS when using credentialcomposer plugin.

Signed-off-by: Nikhil Arora <narora@indeed.com>
2024-05-01 12:39:24 -06:00
Max Lambrecht 59a30003dc
Use go-version-file in Setup go actions (#5099)
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-04-30 15:45:19 -06:00
dependabot[bot] 904cb3731f
Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 (#5103)
* Bump google.golang.org/protobuf from 1.33.0 to 1.34.0

Bumps google.golang.org/protobuf from 1.33.0 to 1.34.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* regen protos

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-04-30 14:35:24 -06:00
dependabot[bot] 8396ff7e8e
Bump github.com/docker/docker (#5104)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.0+incompatible to 26.1.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.0...v26.1.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 13:38:35 -06:00
dependabot[bot] 2f641ee61a
Bump actions/dependency-review-action from 4.2.5 to 4.3.1 (#5100)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.2.5 to 4.3.1.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](5bbc3ba658...e58c696e52)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 10:22:34 -06:00
dependabot[bot] aa0707ffa1
Bump github.com/open-policy-agent/opa from 0.63.0 to 0.64.1 (#5098)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.63.0 to 0.64.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.63.0...v0.64.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 09:20:02 -06:00
dependabot[bot] f8d5dd4dbb
Bump sigs.k8s.io/controller-runtime from 0.17.3 to 0.18.0 (#5095)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.17.3 to 0.18.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.17.3...v0.18.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 06:16:36 -06:00
dependabot[bot] a6776ebc05
Bump github.com/aws/aws-sdk-go-v2/service/ec2 (#5094)
Bumps the aws-sdk group with 1 update in the / directory: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.157.0 to 1.159.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.157.0...service/ec2/v1.159.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 14:28:04 -06:00
dependabot[bot] ca5ca91b9f
Bump actions/download-artifact from 4.1.5 to 4.1.7 (#5093)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.5 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](8caf195ad4...65a9edc588)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 13:39:12 -06:00
dependabot[bot] 26051c16eb
Bump actions/checkout from 4.1.2 to 4.1.4 (#5092)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](9bb56186c3...0ad4b8fada)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 12:27:40 -06:00
dependabot[bot] e5cd594c4a
Bump google.golang.org/api from 0.174.0 to 0.176.1 (#5091)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.174.0 to 0.176.1.
- [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.174.0...v0.176.1)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-26 13:19:13 -03:00
dependabot[bot] a8b40afd5c
Bump github.com/docker/docker (#5089)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.0.2+incompatible to 26.1.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.0.2...v26.1.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-26 12:24:47 -03:00
dependabot[bot] 555157ddbb
Bump actions/upload-artifact from 4.3.2 to 4.3.3 (#5087)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](1746f4ab65...65462800fd)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-26 10:43:37 -03:00
dependabot[bot] 9e23dbe97d
Bump github.com/Microsoft/go-winio from 0.6.1 to 0.6.2 (#5086)
Bumps [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.6.1...v0.6.2)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/go-winio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-25 11:22:55 -03:00
Andrew Harding 8090bf307f
New container locator for docker/k8s on linux (#5076)
* New container locator for docker/k8s on linux

The docker and k8s workload attestors work backwards from pid to
container by inspecting the proc filesystem. Today, this happens by
inspecting the cgroup file. Identifying the container ID (and pod UID)
from the cgroup file has been a continual arms race. The k8s and docker
workload attestors grew different mechanisms for trying to deal with the
large variety in the output.

Further, with cgroups v2 and private namespaces, the cgroup file might
not have the container ID or pod UID information within it.

This PR unifies the container ID (and pod UID) extraction for both the
docker and k8s workload attestors. The new implementation searches the
mountinfo file first for cgroups mounts. If not found, it will fall back
to the cgroup file (typically necessary only when the workload is
running in the same container as the agent).

The extraction algorithm is the same for both mountinfo and cgroup
entries, and is as follows:
1. Iterator over each entry in the file being searched, extracting
   either the cgroup mount root (mountinfo) or the cgroup group
   path (cgroup) as the source path.
2. Walk backwards through the segments in the source path looking for
   the 64-bit hex digit container ID.
3. If looking for the pod UID (K8s only), then walk backwards through
   the segments in the path looking for the pod UID pattern used by
   kubelet. Start with the segment the container ID was found in
   (truncated to remove the container ID portion).
4. If there are pod UID/container ID conflicts after searching these
   files then log and abort. Entries that have a pod UID override those
   that don't.

The container ID is very often contained in the last segment in the path
but there are situations where it isn't.

This new functionality is NOT enabled by default, but opted in using the
`use_new_container_locator` configurable in each plugin. In 1.10, we can
consider enabling it by default.

The testing for the new code is spread out a little bit. The cgroups
fallback functionality is mostly tested by the existing tests in the
k8s and docker plugin tests. The mountinfo tests are only in the new
containerinfo package.

In the long term, I'd like to see all of the container info extraction
related tests moved solely to the containerinfo package and removed from
the individual plugins.

Resolves #4004, resolves #4682, resolves #4917.

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* missing new arg

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* fix windows tests

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* fix windows tests and lint

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* address pr comments

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* markdown lint

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* add agent full conf

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* fix labels

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* change log to warn

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* use new locator in it

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-04-24 08:01:23 -06:00
dependabot[bot] 6760216d92
Bump github.com/hashicorp/vault/api from 1.12.2 to 1.13.0 (#5083)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.12.2...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 14:45:42 -03:00
dependabot[bot] 2288376e5c
Bump actions/upload-artifact from 4.3.1 to 4.3.2 (#5082)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](5d5d22a312...1746f4ab65)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 10:36:44 -03:00
dependabot[bot] 87aa717f13
Bump actions/download-artifact from 4.1.4 to 4.1.5 (#5081)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](c850b930e6...8caf195ad4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 16:27:33 -03:00
dependabot[bot] 7842f63a34
Bump the k8s-io group with 4 updates (#5078)
Bumps the k8s-io group with 4 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.29.4 to 0.30.0
- [Commits](https://github.com/kubernetes/api/compare/v0.29.4...v0.30.0)

Updates `k8s.io/apimachinery` from 0.29.4 to 0.30.0
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.29.4...v0.30.0)

Updates `k8s.io/client-go` from 0.29.4 to 0.30.0
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.4...v0.30.0)

Updates `k8s.io/kube-aggregator` from 0.29.4 to 0.30.0
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.29.4...v0.30.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 14:30:36 -03:00
dependabot[bot] 2fee998e5b
Bump github.com/docker/docker (#5080)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.0.1+incompatible to 26.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.0.1...v26.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 13:18:29 -03:00
dependabot[bot] bc6c38828a
Bump google.golang.org/api from 0.173.0 to 0.174.0 (#5079)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.173.0 to 0.174.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.173.0...v0.174.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 12:17:55 -03:00
Rushikesh Butley 2467fe5cc4
Organization List Feature in Server AWS Node Attester Plugin "aws_iid" (#4838)
* Add New Organization Feature

Signed-off-by: Rushikesh Butley <rbutley@confluent.io>
2024-04-18 16:50:43 -03:00
dependabot[bot] cc37a51388
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5077)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.156.0 to 1.157.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.156.0...service/ec2/v1.157.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-18 14:40:36 -03:00
dependabot[bot] 5fe4359bad
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.34.1 to 1.35.1 (#5075)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.34.1 to 1.35.1.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.35.1/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.34.1...v1.35.1)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-18 10:19:56 -03:00
dependabot[bot] 6a5b04dffe
Bump the k8s-io group with 4 updates (#5073)
Bumps the k8s-io group with 4 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.29.3 to 0.29.4
- [Commits](https://github.com/kubernetes/api/compare/v0.29.3...v0.29.4)

Updates `k8s.io/apimachinery` from 0.29.3 to 0.29.4
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.29.3...v0.29.4)

Updates `k8s.io/client-go` from 0.29.3 to 0.29.4
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.3...v0.29.4)

Updates `k8s.io/kube-aggregator` from 0.29.3 to 0.29.4
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.29.3...v0.29.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 17:51:31 -03:00
dependabot[bot] 06eb916c72
Bump google.golang.org/api from 0.172.0 to 0.173.0 (#5074)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.172.0 to 0.173.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.172.0...v0.173.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 15:47:36 -03:00
Agustín Martínez Fayó 8e8f747890
Do not rotate JWT keys if X509 preparation failed during initialization (#5064)
* Do not rotate JWT keys if X509 preparation failed

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Address PR comment

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-16 22:12:05 -03:00
Max Lambrecht 9ec534a686
Ensure Non-Empty JWT Bundles Before Adding to FetchJWTBundles Response (#5031)
* Handle empty JWT bundle in FetchJWTBundles handler

Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
2024-04-16 15:30:47 -03:00
dependabot[bot] 57f3cac0cd
Bump cloud.google.com/go/security in the google-cloud-sdk group (#5072)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/security` from 1.15.6 to 1.16.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.15.6...asset/v1.16.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 14:53:48 -03:00
dependabot[bot] 76a4bca5f7
Bump github.com/hashicorp/go-hclog from 1.6.2 to 1.6.3 (#5070)
Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/hashicorp/go-hclog/releases)
- [Commits](https://github.com/hashicorp/go-hclog/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-hclog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 09:49:00 -07:00
dependabot[bot] 11b9ad06e6
Bump google.golang.org/grpc from 1.62.2 to 1.63.2 (#5069)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.62.2 to 1.63.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.62.2...v1.63.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 10:13:44 -03:00
dependabot[bot] 6856ddd349
Bump github.com/hashicorp/vault/sdk from 0.11.1 to 0.12.0 (#5068)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.11.1...sdk/v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 19:30:08 -07:00
Faisal Memon 1b264a7f37
Prune expired nodes from cache (#5042)
* Prune expired nodes from cache

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Update pkg/server/endpoints/authorized_entryfetcher.go

Co-authored-by: Andrew Harding <azdagron@gmail.com>
Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix unit tests

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

---------

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-04-15 10:45:29 -06:00
dependabot[bot] 8ff27de5c9
Bump sigs.k8s.io/controller-runtime from 0.17.2 to 0.17.3 (#5062)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.17.2 to 0.17.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.17.2...v0.17.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 22:41:14 -07:00
dependabot[bot] 4aa1d6ae8a
Bump the aws-sdk group with 2 updates (#5066)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.31.1 to 1.32.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.32.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.1...service/s3/v1.32.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.30.0...service/s3/v1.31.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 21:54:28 -07:00
dependabot[bot] df0829a3a3
Bump github.com/shirou/gopsutil/v3 from 3.24.2 to 3.24.3 (#5063)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.24.2 to 3.24.3.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.24.2...v3.24.3)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 20:53:09 -07:00
dependabot[bot] 7f07972df7
Bump github.com/gofrs/uuid/v5 from 5.0.0 to 5.1.0 (#5060)
Bumps [github.com/gofrs/uuid/v5](https://github.com/gofrs/uuid) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 15:31:05 -07:00
dependabot[bot] aa4aa6d5d5
Bump github.com/sigstore/cosign/v2 from 2.2.3 to 2.2.4 (#5059)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.2.3...v2.2.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 14:46:20 -07:00
dependabot[bot] 1e82f9b430
Bump sigstore/cosign-installer from 3.4.0 to 3.5.0 (#5057)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](e1523de757...59acb6260d)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 11:59:22 -07:00
Ryan Turner acdbd50d69
Update go-jose to 4.0.1 (#5017)
* Update go-jose to 4.0.1

There are two breaking changes from the 3.x versions that affect SPIRE code:
- JWT parsing methods now require accepted signature algorithms (`alg`
  header parameter) to be passed as input. If the token contains a
  signature algorithm not in the list of accepted signature algorithms,
  token parsing fails. This is to prevent against signature algorithm
  confusion attacks.
- CompactSerialize() method has been removed in favor of
  Serialize(). These methods are functionally equivalent.

Signed-off-by: Ryan Turner <turner@uber.com>
2024-04-12 11:04:25 -07:00
dependabot[bot] fd6e51a7fe
Bump github.com/docker/docker (#5061)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.0.0+incompatible to 26.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.0.0...v26.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 11:13:36 -07:00
dependabot[bot] 181931d483
Bump github.com/google/go-tpm-tools from 0.4.3 to 0.4.4 (#5056)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.4.3...v0.4.4)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 22:05:25 -07:00
dependabot[bot] e798a0bbba
Bump github.com/sigstore/rekor from 1.3.5 to 1.3.6 (#5053)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.5 to 1.3.6.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.5...v1.3.6)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:05:54 -07:00
dependabot[bot] 891b3e9267
Bump the azure-sdk group with 2 updates (#5052)
Bumps the azure-sdk group with 2 updates: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) and [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.10.0 to 1.11.1
- [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.10.0...sdk/azcore/v1.11.1)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.5.1 to 1.5.2
- [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/internal/v1.5.1...sdk/internal/v1.5.2)

---
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: azure-sdk
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 13:56:47 -07:00
dependabot[bot] c2e2887b93
Bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#5050)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](2b51285047...d70bba72b1)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 09:34:27 -07:00
dependabot[bot] c598ada624
Bump golang.org/x/sync from 0.6.0 to 0.7.0 (#5051)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:40:20 +00:00
dependabot[bot] e79d4c3aca
Bump github.com/spiffe/go-spiffe/v2 from 2.1.7 to 2.2.0 (#5046)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.7 to 2.2.0.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.7...v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:38:47 +00:00
dependabot[bot] 60c9b0ad77
Bump github.com/aws/aws-sdk-go-v2/service/ec2 in the aws-sdk group (#5044)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.155.0 to 1.156.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.155.0...service/ec2/v1.156.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:38:21 +00:00
dependabot[bot] 25a0ac8673
Bump google.golang.org/api from 0.170.0 to 0.172.0 (#5036)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.170.0 to 0.172.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.170.0...v0.172.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 20:43:22 +00:00
dependabot[bot] 6c24776e72
Bump github.com/aws/smithy-go from 1.20.1 to 1.20.2 (#5035)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.20.1 to 1.20.2.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.20.1...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 20:43:17 +00:00
Faisal Memon 5eefa542fd
Emit events when Node Selectrs are set (#5037)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-09 15:25:04 -03:00
Agustín Martínez Fayó 787252541d
- Updated to google.golang.org/grpc v1.62.2 and golang.org/x/net v0.24.0 to address CVE-2023-45288 (#5045)
- Bump SPIRE to 1.9.5
- Update CHANGELOG with 1.8.10 and 1.9.4 releases

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-08 10:00:15 -03:00
Faisal Memon 3bff520d17
Fix event being dropped on error (#5030)
* Fix event being dropped on error

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

* Fix missing event id bump

Signed-off-by: Faisal Memon <fymemon@yahoo.com>

---------

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-05 17:04:07 -03:00
dependabot[bot] fb50a1a52c
Bump github.com/docker/docker from 25.0.4+incompatible to 26.0.0+incompatible (#5008)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.4+incompatible to 26.0.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v25.0.4...v26.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update the expected API version to 1.45

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-05 14:27:25 -03:00
Agustín Martínez Fayó 7034335718
- Updated to Go 1.21.9 to address CVE-2023-45288 (#5043)
- Limit the preallocation of memory when making paginated requests to the ListEntries and ListAgents RPCs
- Bump to v1.9.4
- Update CHANGELOG

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-04-05 08:55:19 -06:00
dependabot[bot] 02571566fe
Bump github.com/open-policy-agent/opa from 0.62.1 to 0.63.0 (#5034)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.62.1 to 0.63.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.62.1...v0.63.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-04 15:02:39 -03:00
dependabot[bot] 3264a23a62
Bump the google-cloud-sdk group with 1 update (#5028)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.39.0 to 1.40.0
- [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/spanner/v1.39.0...spanner/v1.40.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 10:56:29 -03:00
dependabot[bot] 4afca59230
Bump actions/setup-python from 5.0.0 to 5.1.0 (#5027)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](0a5c615913...82c7e631bb)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 14:51:33 -03:00
dependabot[bot] 60bc01899c
Bump github.com/uber-go/tally/v4 from 4.1.12 to 4.1.16 (#5025)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.12 to 4.1.16.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.12...v4.1.16)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 11:55:58 -03:00
dependabot[bot] 7cc02729e1
Bump github.com/cenkalti/backoff/v4 from 4.2.1 to 4.3.0 (#5023)
Bumps [github.com/cenkalti/backoff/v4](https://github.com/cenkalti/backoff) from 4.2.1 to 4.3.0.
- [Commits](https://github.com/cenkalti/backoff/compare/v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: github.com/cenkalti/backoff/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 10:48:25 -03:00
dependabot[bot] 5b5b0006d1
Bump the aws-sdk group with 4 updates (#5029)
Bumps the aws-sdk group with 4 updates: [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.15.0 to 1.16.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.16.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.15.0...v1.16.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.151.0 to 1.155.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.151.0...service/ec2/v1.155.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.29.1 to 1.30.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.30.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.1...service/s3/v1.30.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.52.0 to 1.53.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.52.0...service/s3/v1.53.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:51:47 -06:00
Ryan Turner cafce4dbdc
Exclude dependabot author from new DCO check (#5026)
Signed-off-by: Ryan Turner <turner@uber.com>
2024-03-29 09:25:16 -03:00
dependabot[bot] 95e07c114f
Bump actions/dependency-review-action from 4.1.3 to 4.2.5 (#5018)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.1.3 to 4.2.5.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](9129d7d40b...5bbc3ba658)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 17:43:50 -06:00
Ryan Turner 0f1310bcb9
Try out github.com/christophebedard/dco-check (#5010)
* Try out github.com/christophebedard/dco-check

The DCO app currently used in the repository doesn't support GitHub
merge queues. Try out this other DCO check script which will run as our
own managed job that we can configure to run for PRs added to the merge
queue.

We can try running this check in parallel to the existing check to
ensure it's stable before trying to rely on it.

Signed-off-by: Ryan Turner <turner@uber.com>

* Fix YAML syntax

Signed-off-by: Ryan Turner <turner@uber.com>

* Allow to run on workflow_dispatch

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-03-28 15:21:44 -06:00
Marcos Yacob 6608f339ae
Allow reload logfile by signal (#4975)
* Resolve issue causing spire server to no reload log file when receiving a signal

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Add unit test

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>

* Run Reopen log tests only on posix, since windows does not support signals, it is not possible to apply that logic

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Move server run test case to posix

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-03-28 13:52:42 -06:00
Agustín Martínez Fayó 36f26c8575
Introduce the `gcp_cloudstorage` BundlePublisher plugin (#4961)
* Introduce the `gcp_cloudstorage` BundlePublisher plugin

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Address PR comments

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-03-28 12:44:39 -06:00
Federico Nahuel Quijada 0727fa64f7
Add more filtering options to entry count/show and agent count/list (#4714)
* add filtering options to count command

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* add more fields

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* Add filtering to entry & agent count/show/list commands

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* fix lint

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* add more unit test

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* Change count & list for entries

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* rollback

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* fix

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* fix lint

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* update go.mod & go.sum

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* fix windows message

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* update agent & entry message

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* update agent message

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* count entries & agent now uses pagination

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* remove comment

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* fix lint

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

* rollback

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>

---------

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
Signed-off-by: Federico Nahuel Quijada <63385953+FedeNQ@users.noreply.github.com>
2024-03-27 19:22:59 -03:00
dependabot[bot] 0d28fe87c9
Bump the google-cloud-sdk group with 1 update (#5004)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/secretmanager` from 1.11.5 to 1.12.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/secretmanager/v1.11.5...dlp/v1.12.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 13:51:08 -06:00
dependabot[bot] 0c7807f878
Bump actions/cache from 4.0.1 to 4.0.2 (#5001)
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](ab5e6d0c87...0c45773b62)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 11:38:29 -06:00
dependabot[bot] 51050c3438
Bump github.com/hashicorp/vault/api from 1.12.1 to 1.12.2 (#5000)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.12.1...v1.12.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 10:24:24 -06:00
dependabot[bot] 4b3f7030b2
Bump github.com/aws/aws-sdk-go-v2 from 1.25.3 to 1.26.0 (#4999)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.25.3 to 1.26.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.25.3...v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 09:17:18 -06:00
dependabot[bot] 14ab9eece4
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.34.0 to 1.34.1 (#4995)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.34.0 to 1.34.1.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.34.1/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.34.0...v1.34.1)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 06:35:42 -06:00
Andrew Harding 69c941a72e
Bump version after v1.9.2 (#5016)
* CHANGELOG update for version v1.9.2 (#5013)
* Use cosign v2.2.3 (#5015)

Also, auto-accept cosign prompts for non-destructive actions needed to
push to the transparency log when running from CI/CD.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-03-26 11:21:59 -03:00
Ryan Turner 6e1bfc40f7
Update Go to 1.22.1 (#4970)
Signed-off-by: Ryan Turner <turner@uber.com>
2024-03-21 10:59:55 -03:00
Ryan Turner 439d336174
Remove duplicate github.com/gofrs/uuid v4 dependency (#5002)
Signed-off-by: Ryan Turner <turner@uber.com>
2024-03-20 08:13:34 -03:00
Ryan Turner 6861e547e4
Try out GitHub merge queue (#4945)
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-03-19 11:37:06 -07:00
Max Lambrecht ea8b30c628
Add --static to verify binaries (#4972)
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
2024-03-19 14:22:29 -03:00
dependabot[bot] 2f219878fb
Bump the k8s-io group with 4 updates (#4994)
Bumps the k8s-io group with 4 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.29.2 to 0.29.3
- [Commits](https://github.com/kubernetes/api/compare/v0.29.2...v0.29.3)

Updates `k8s.io/apimachinery` from 0.29.2 to 0.29.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.29.2...v0.29.3)

Updates `k8s.io/client-go` from 0.29.2 to 0.29.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.2...v0.29.3)

Updates `k8s.io/kube-aggregator` from 0.29.2 to 0.29.3
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.29.2...v0.29.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 11:37:25 -03:00
dependabot[bot] 5b40ef7bef
Bump google.golang.org/api from 0.169.0 to 0.170.0 (#4988)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.169.0 to 0.170.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.169.0...v0.170.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 10:26:54 -03:00
dependabot[bot] 6832ce77f4
Bump the aws-sdk group with 1 update (#4993)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.150.0 to 1.151.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.150.0...service/ec2/v1.151.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 15:31:15 -03:00
dependabot[bot] f9463779d4
Bump github.com/googleapis/gax-go/v2 from 2.12.2 to 2.12.3 (#4987)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.12.2 to 2.12.3.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.12.2...v2.12.3)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 14:50:38 -03:00
dependabot[bot] 7c822c3368
Bump docker/setup-buildx-action from 3.1.0 to 3.2.0 (#4983)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](0d103c3126...2b51285047)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 13:42:19 -03:00
dependabot[bot] bfec9b68bc
Bump github.com/hashicorp/vault/sdk from 0.11.0 to 0.11.1 (#4980)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.11.0...v0.11.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 11:24:48 -03:00
Ryan Turner 198e9f3c20
Change go-metrics dependency (#4981)
github.com/armon/go-metrics was renamed to
github.com/hashicorp/go-metrics on June 8, 2023 as part of the v0.5.0
release. Update to the latest package name so we can keep getting
updates.

Signed-off-by: Ryan Turner <turner@uber.com>
2024-03-14 17:39:36 -03:00
dependabot[bot] c173037fcc
Bump github.com/google/go-containerregistry from 0.19.0 to 0.19.1 (#4978)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.19.0 to 0.19.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.19.0...v0.19.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 17:01:49 -03:00
dependabot[bot] 2d42b0c9cd
Bump the aws-sdk group with 1 update (#4977)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.51.1 to 1.52.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.51.1...service/s3/v1.52.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 15:21:36 -03:00
dependabot[bot] b893124b54
Bump github.com/hashicorp/vault/api from 1.12.0 to 1.12.1 (#4979)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.12.0...v1.12.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 14:37:33 -03:00
dependabot[bot] 29d3ca9bf1
Bump docker/login-action from 3.0.0 to 3.1.0 (#4974)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](343f7c4344...e92390c5fb)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 12:29:09 -03:00
dependabot[bot] 826cf561b1
Bump actions/checkout from 4.1.1 to 4.1.2 (#4971)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](b4ffde65f4...9bb56186c3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 11:29:30 -03:00
dependabot[bot] 7602977646
Bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.0 (#4965)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 14:23:55 -03:00
dependabot[bot] 8ce7702f92
Bump github.com/jackc/pgx/v5 from 5.5.4 to 5.5.5 (#4964)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.4 to 5.5.5.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.4...v5.5.5)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 10:48:29 -03:00
Marcos Yacob e231f67451
Resolve some issues in logger API and add reset logger CLI (#4966)
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
2024-03-11 15:07:07 -06:00
Edwin Buck a8d547cce6
Post launch Log level control for the Server (#4880)
Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2024-03-11 10:44:40 -06:00
Carlo Teubner 91ddf4fe6b
Document BundlePublisher (#4951)
Mention the BundlePublisher plugin type, and its built-in aws_s3
implementation, on the SPIRE Server Configuration Reference page.

This plugin type was introduced in spiffe/spire-plugin-sdk#38.
See also #2909, #4034.

While I'm touching this, a couple of other tweaks:

- Add CredentialComposer to plugin type list (its uniqueid
  implementation was already mentioned in the built-in plugin table).
- Reorder the tables of plugin types and built-in plugins to hopefully
  make a little more sense, and to be consistent with each other.
- Change a "sql" to a "SQL".

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2024-03-08 20:42:06 -03:00
dependabot[bot] 6dcb0ecf67
Bump github.com/uber-go/tally/v4 from 4.1.11 to 4.1.12 (#4959)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.11 to 4.1.12.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.11...v4.1.12)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 13:59:18 -08:00
dependabot[bot] 7828b656e9
Bump google.golang.org/api from 0.168.0 to 0.169.0 (#4960)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.168.0 to 0.169.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.168.0...v0.169.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 12:52:46 -08:00
dependabot[bot] c6645a80cb
Bump the aws-sdk group with 1 update (#4958)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.149.1 to 1.150.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.149.1...service/ec2/v1.150.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 10:41:10 -08:00
dependabot[bot] 03013f240f
Bump github.com/lestrrat-go/jwx/v2 from 2.0.20 to 2.0.21 (#4953)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.20 to 2.0.21.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.20...v2.0.21)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 09:48:39 -08:00
dependabot[bot] 2f37a0f4a2
Bump github.com/go-jose/go-jose/v3 from 3.0.2 to 3.0.3 (#4956)
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/v3.0.3/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 19:31:32 -08:00
dependabot[bot] 3a90df5845
Bump gopkg.in/go-jose/go-jose.v2 from 2.6.1 to 2.6.3 (#4955)
Bumps gopkg.in/go-jose/go-jose.v2 from 2.6.1 to 2.6.3.

---
updated-dependencies:
- dependency-name: gopkg.in/go-jose/go-jose.v2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 16:09:16 -08:00
dependabot[bot] 1357a95460
Bump github.com/docker/docker (#4952)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.3+incompatible to 25.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v25.0.3...v25.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 12:33:29 -08:00
dependabot[bot] b125c0b333
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#4949)
* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0

Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Regen *.pb.go files

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2024-03-07 10:58:12 -03:00
dependabot[bot] 8f0aa14706
Bump github.com/open-policy-agent/opa from 0.62.0 to 0.62.1 (#4950)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.62.0 to 0.62.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.62.0...v0.62.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 20:35:36 -08:00
dependabot[bot] 0539584ed8
Bump google.golang.org/grpc from 1.62.0 to 1.62.1 (#4948)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.62.0 to 1.62.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.62.0...v1.62.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 18:10:05 -08:00
dependabot[bot] 91fdca2b86
Bump golang.org/x/net from 0.21.0 to 0.22.0 (#4942)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-06 18:00:23 -03:00
Andrew Harding a3981212f4
Assert API availablility on transports (#4944)
Resolves #4940

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-03-06 15:19:12 -03:00
Agustín Martínez Fayó 62d3114a85
Add Linkerd to the adopters list (#4907)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-03-06 14:26:15 -03:00
Marcos Yacob dd5c538bd0
Bump SPIRE to 1.9.2 (#4947)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-03-06 13:03:25 -03:00
dependabot[bot] 61f4270a1f
Bump google.golang.org/api from 0.167.0 to 0.168.0 (#4941)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.167.0 to 0.168.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.167.0...v0.168.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 18:02:58 -03:00
Guilherme Carvalho bef1690d90
Enable gRPC server reflection to agent workload endpoints (#4916)
* Add reflection to agent workload endpoints

Signed-off-by: Guilherme Carvalho <guilherme@spirl.com>
2024-03-04 16:13:50 -08:00
dependabot[bot] 81de95eb71
Bump golang.org/x/sys from 0.17.0 to 0.18.0 (#4938)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 15:31:17 -08:00
dependabot[bot] 72ca57b925
Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 (#4939)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.3 to 5.5.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 14:04:06 -08:00
dependabot[bot] 6cc49ab068
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#4937)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 13:15:51 -08:00
dependabot[bot] 973448df15
Bump actions/download-artifact from 4.1.3 to 4.1.4 (#4936)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](87c55149d9...c850b930e6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 10:04:03 -03:00
dependabot[bot] 76ec2f768e
Bump actions/cache from 4.0.0 to 4.0.1 (#4929)
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](13aacd865c...ab5e6d0c87)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-03 16:07:32 -03:00
dependabot[bot] 9a2376f5c3
Bump github.com/open-policy-agent/opa from 0.61.0 to 0.62.0 (#4934)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.61.0 to 0.62.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.61.0...v0.62.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-03 14:37:01 -03:00
dependabot[bot] 2e5aee0d01
Bump sigs.k8s.io/controller-runtime from 0.17.0 to 0.17.2 (#4935)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.17.0 to 0.17.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.17.0...v0.17.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-03 09:34:10 -03:00
dependabot[bot] 94b2aecdfd
Bump github.com/shirou/gopsutil/v3 from 3.24.1 to 3.24.2 (#4933)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.24.1 to 3.24.2.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.24.1...v3.24.2)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-03 08:54:01 -03:00
dependabot[bot] 7cbc5517f4
Bump the azure-sdk group with 1 update (#4932)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.9.2 to 1.10.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.9.2...sdk/azcore/v1.10.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: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-02 17:37:35 -03:00
dependabot[bot] e6dbd307ce
Bump the google-cloud-sdk group with 1 update (#4931)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.38.0 to 1.39.0
- [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/spanner/v1.38.0...spanner/v1.39.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-02 14:45:38 -03:00
dependabot[bot] 938072f3d9
Bump github.com/lestrrat-go/jwx/v2 from 2.0.19 to 2.0.20 (#4928)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.19 to 2.0.20.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.19...v2.0.20)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 13:31:46 -03:00
dependabot[bot] 9e85240cf7
Bump github.com/googleapis/gax-go/v2 from 2.12.0 to 2.12.2 (#4927)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.12.0 to 2.12.2.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.12.0...v2.12.2)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 09:08:33 -03:00
dependabot[bot] 83c047a422
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4925)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.16 to 1.34.0.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.34.0/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.16...v1.34.0)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 23:01:03 -03:00
dependabot[bot] 87cfff9bea
Bump google.golang.org/api from 0.162.0 to 0.167.0 (#4926)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.162.0 to 0.167.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.162.0...v0.167.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 22:25:06 -03:00
dependabot[bot] e14da06a2a
Bump github.com/jackc/pgx/v5 from 5.5.2 to 5.5.3 (#4924)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.2 to 5.5.3.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.2...v5.5.3)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 16:19:55 -03:00
dependabot[bot] 79a7cdb921
Bump github.com/sigstore/sigstore from 1.8.1 to 1.8.2 (#4922)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 19:33:32 -03:00
dependabot[bot] e474dd6c43
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 (#4921)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.19.0/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 18:45:41 -03:00
dependabot[bot] d21b0252b1
Bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#4920)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](f95db51fdd...0d103c3126)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 17:51:54 -03:00
dependabot[bot] cfad570cab
Bump the aws-sdk group with 8 updates (#4918)
Bumps the aws-sdk group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/feature/rds/auth](https://github.com/aws/aws-sdk-go-v2) | `1.3.10` | `1.4.2` |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.28.0` | `1.29.1` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.148.0` | `1.149.1` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.30.0` | `1.31.1` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.28.1` | `1.29.1` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.50.0` | `1.51.1` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.27.1` | `1.28.1` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.27.0` | `1.28.1` |


Updates `github.com/aws/aws-sdk-go-v2/feature/rds/auth` from 1.3.10 to 1.4.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/m2/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/internal/ini/v1.3.10...service/m2/v1.4.2)

Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.28.0 to 1.29.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.28.0...service/s3/v1.29.1)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.148.0 to 1.149.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.148.0...service/ec2/v1.149.1)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.30.0 to 1.31.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.31.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.30.0...service/s3/v1.31.1)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.28.1 to 1.29.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.28.1...service/s3/v1.29.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.50.0 to 1.51.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.50.0...service/s3/v1.51.1)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.27.1 to 1.28.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ecs/v1.28.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.1...service/ecs/v1.28.1)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.27.0 to 1.28.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ecs/v1.28.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.0...service/ecs/v1.28.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/rds/auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 16:52:23 -03:00
dependabot[bot] dc3c951631
Bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#4915)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/crypto/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 15:45:25 -03:00
dependabot[bot] bbf1d44835
Bump github.com/google/go-tpm-tools from 0.4.2 to 0.4.3 (#4914)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.4.2...v0.4.3)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 14:12:30 -03:00
dependabot[bot] ea07ad0957
Bump github.com/aws/smithy-go from 1.20.0 to 1.20.1 (#4901)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.20.0...v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 12:34:54 -03:00
dependabot[bot] 5094671f04
Bump the k8s-io group with 4 updates (#4900)
Bumps the k8s-io group with 4 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.29.1 to 0.29.2
- [Commits](https://github.com/kubernetes/api/compare/v0.29.1...v0.29.2)

Updates `k8s.io/apimachinery` from 0.29.1 to 0.29.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.29.1...v0.29.2)

Updates `k8s.io/client-go` from 0.29.1 to 0.29.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.1...v0.29.2)

Updates `k8s.io/kube-aggregator` from 0.29.1 to 0.29.2
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.29.1...v0.29.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 11:00:06 -03:00
dependabot[bot] 20f5e31da1
Bump actions/download-artifact from 4.1.2 to 4.1.3 (#4913)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](eaceaf801f...87c55149d9)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 08:41:16 -03:00
dependabot[bot] dc06ff6c8b
Bump actions/dependency-review-action from 4.0.0 to 4.1.3 (#4897)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](4901385134...9129d7d40b)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 07:37:25 -03:00
Agustín Martínez Fayó 61bf130afc
Do not log anymore failures to look up user/group name (#4906)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-02-27 21:36:10 -03:00
Ryan Turner 31b3cb1d7a
Log SPIFFE ID for X.509-SVIDs signed in BatchNewX509SVID (#4902)
The audit log emitted on calls to BatchNewX509SVID doesn't include the
SPIFFE ID of the X.509-SVIDs that are signed during the API handler
execution. It's valuable to include the SPIFFE ID in this log message
for traceability and auditing purposes. The SPIFFE ID in signed
X.509-SVIDs is currently only included in a DEBUG level log in the
server CA.

Signed-off-by: Ryan Turner <turner@uber.com>
2024-02-27 19:43:12 -03:00
Agustín Martínez Fayó 49f8857c7a
Introduce support to IAM authentication in the datastore (#4828)
* Introduce support to IAM authentication in the datastore

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-02-27 17:41:04 -03:00
dependabot[bot] f67f5e9e5b
Bump the google-cloud-sdk group with 1 update (#4896)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.37.0 to 1.38.0
- [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/spanner/v1.37.0...spanner/v1.38.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 11:07:59 -03:00
dependabot[bot] 154c57396b
Bump google.golang.org/grpc from 1.61.0 to 1.62.0 (#4911)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.0 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.0...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 15:26:52 -03:00
Andrew Harding f435cc09b1
Bump version in main and pull in v1.9.0 CHANGELOG (#4908)
* Bump version in main and pull in v1.9.0 CHANGELOG

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* add v1.9.0 to upgrade test

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-02-23 08:59:33 -03:00
dependabot[bot] e8501ac788
Bump github.com/hashicorp/vault/sdk from 0.10.2 to 0.11.0 (#4877)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.10.2 to 0.11.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.10.2...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 13:01:13 -07:00
dependabot[bot] a4ecac91d4
Bump golang.org/x/crypto from 0.18.0 to 0.19.0 (#4878)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/crypto/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 11:22:01 -07:00
dependabot[bot] 33dc6cd361
Bump github.com/hashicorp/vault/api from 1.11.0 to 1.12.0 (#4876)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:35:55 -07:00
dependabot[bot] b185aa6d85
Bump github.com/uber-go/tally/v4 from 4.1.10 to 4.1.11 (#4874)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.10 to 4.1.11.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.10...v4.1.11)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-21 17:34:54 -07:00
Nikolai a635b1e3b6
Upstream CA disk bugfixes: pass RawSubject and preserve Extensions (#4879)
Signed-off-by: Nikolai Tihhomirov <141064611+nikotih@users.noreply.github.com>
2024-02-21 16:04:01 -07:00
Sorin Dumitru ae74c80250
Make if clear bundle set/delete only works on federated bundles (#4895)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-02-21 07:12:30 -07:00
Matteus Silva e88215b886
Add retry to agent bootstrap (#4597)
Signed-off-by: matteus <silvamatteus@lsd.ufcg.edu.br>
2024-02-20 15:12:00 -03:00
dependabot[bot] 968cbf1059
Bump the aws-sdk group with 10 updates (#4893)
Bumps the aws-sdk group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.26.6` | `1.27.0` |
| [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) | `1.16.16` | `1.17.0` |
| [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) | `1.14.11` | `1.15.0` |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.26.0` | `1.28.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.146.0` | `1.148.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.28.7` | `1.30.0` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.27.9` | `1.28.1` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.48.0` | `1.50.0` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.26.2` | `1.27.1` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.26.7` | `1.27.0` |


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.26.6 to 1.27.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.26.6...config/v1.27.0)

Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.16.16 to 1.17.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.17.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.16...v1.17.0)

Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.14.11 to 1.15.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.15.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/mq/v1.14.11...v1.15.0)

Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.26.0 to 1.28.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.28.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.26.0...service/s3/v1.28.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.146.0 to 1.148.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.146.0...service/ec2/v1.148.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.28.7 to 1.30.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.30.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/emr/v1.28.7...service/s3/v1.30.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.27.9 to 1.28.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ecs/v1.28.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.27.9...service/ecs/v1.28.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.48.0 to 1.50.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.48.0...service/s3/v1.50.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.26.2 to 1.27.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.26.2...service/s3/v1.27.1)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.26.7 to 1.27.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.26.7...config/v1.27.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: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 16:30:13 -03:00
Chirag Kapadia 395d37b212
[delegated-identity] correctly parse and log workload spiffe_id (#4881)
* [delegated-identity] correctly parse and log workload spiffe_id

Currently the API logs SPIFFEID directly from the protobuf string
conversion, eg `trust_domain:"example.org" path:"/path"` which makes
searching logs based on SPIFFEID string difficult. This change
updates the log message to use the SPIFFEID string in the log field.

This change also updates the delegated identity API first update
latency metric to be only emitted when the cache update has at least
one identity, to improve the correctness of the metric

Signed-off-by: chiragk25 <chirag.d.kapadia@gmail.com>
2024-02-16 15:03:42 -08:00
Zhengneng b84aa3150d
Fix the typo in the spire agent/server readme (#4890)
Signed-off-by: Zhengneng <qiuzhengneng@gmail.com>
2024-02-16 10:53:14 -07:00
Agustín Martínez Fayó 364d4c647f
Update server_full.conf with the default value for the refresh_hint setting (#4888)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-02-15 19:53:37 -03:00
Sorin Dumitru 8b16cbb1e8
Default to 5 minutes for refresh hint (#4847)
* Default to 5 minutes for refresh hint

We mentioned this will become the default in a future version and 1.9.0 seems close.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-02-15 18:31:18 -03:00
Andrew Harding ce7a14a14a
Update to setup-msys2 v2.22.0 (#4883)
I don't know why dependabot isn't picking this up, but there are some
fixes, specifically in v2.21.0, that might benefit our windows runs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-02-15 16:32:10 -03:00
dependabot[bot] 631af12223
Bump github.com/sigstore/cosign/v2 from 2.2.2 to 2.2.3 (#4859)
* Bump github.com/sigstore/cosign/v2 from 2.2.2 to 2.2.3

Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.2.2...v2.2.3)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Replace use of CertSubject with GetSubjectAlternateNames

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-02-14 17:32:24 -07:00
Max Lambrecht 3a7d4f326c
Centralize Tool Version Management with .project-versions (#4853)
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
2024-02-14 09:22:03 -07:00
Faisal Memon 19f8771b23
Create event when entry is pruned (#4860)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-02-14 08:05:02 -07:00
Ryan Turner c36b8efbd3
Log partial selectors from workload attestation on context cancellation (#4846)
* Log partial selectors from workload attestation on context cancellation

In the case when a client hangs up a connection to SPIRE Agent during
workload attestation (e.g. timeout, process dies, etc.) while the agent
is still discovering selectors from workload attestation plugins, it can
be helpful to log whatever selectors the agent could find for debugging
purposes. Today, only the pid is captured in logs in this case,
which is often not enough information to trace back the caller since:
- The caller process may have already died (e.g. crashlooping on startup)
- pid alone is only useful if you can query the state of running processes on the host around the time of workload attestation (often not practical)

Logging the partial set of selectors fetched by the agent before the
caller hung up can help diagnose affected workloads in case a workload attestation
plugin is misbehaving or a downstream dependency required by the plugin
is down/not responding with accurate information.

Signed-off-by: Ryan Turner <turner@uber.com>
2024-02-09 15:50:04 -08:00
dependabot[bot] e17f8c9e8e
Bump actions/download-artifact from 4.1.1 to 4.1.2 (#4867)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](6b208ae046...eaceaf801f)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 15:40:05 -03:00
dependabot[bot] 5a9da42991
Bump actions/upload-artifact from 4.3.0 to 4.3.1 (#4866)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](26f96dfa69...5d5d22a312)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 14:52:30 -03:00
dependabot[bot] dcf96de32e
Bump github.com/docker/docker (#4873)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.2+incompatible to 25.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v25.0.2...v25.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 12:00:25 -03:00
dependabot[bot] 8916df7f4e
Bump golang.org/x/sys from 0.16.0 to 0.17.0 (#4875)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-07 21:58:36 -03:00
Amir Omidi acf500abbf
Allow Wildcards in SVIDs (#4814)
Signed-off-by: Amir Omidi <amir@aaomidi.com>
2024-02-07 16:18:23 -07:00
Faisal Memon 9b09e0f3ed
Make reattest to renew default behaviour (#4791)
* Make reattest to renew default behaviour

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-02-07 17:13:26 -03:00
Andrew Harding ebb1afba8c
No longer emit x509UniqueIdentifier in X509-SVIDs (#4862)
* No longer emit x509UniqueIdentifier in X509-SVIDs

Introduced in 1.4.2, this practice has turned out to be problematic.
This change updates SPIRE Server to no long emit attribute in the
X509-SVID subject.

It also introduces a new built-in CredentialComposer to add the
attribute back in for deployments that rely on it. The plugin only
augments workload X509-SVIDs. Server and agent X509-SVIDs are not
modified.

Fixes: #4755
Fixes: #3110

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-02-07 13:46:33 -03:00
dependabot[bot] 82c06ab38e
Bump google.golang.org/api from 0.161.0 to 0.162.0 (#4870)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.161.0 to 0.162.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.161.0...v0.162.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-07 08:42:20 -03:00
dependabot[bot] fa0d186bef
Bump the azure-sdk group with 1 update (#4869)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azcore` from 1.9.1 to 1.9.2
- [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.9.1...sdk/azcore/v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 23:55:47 -03:00
dependabot[bot] 82e0058f93
Bump github.com/sigstore/rekor from 1.3.4 to 1.3.5 (#4864)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 23:12:22 -03:00
Andrew Harding 30c4994e24
Do not use read-replicas for initial events-based cache load (#4868)
For consistency sake, the initial state should be loaded from the main
database instance and not from read replicas.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-02-06 18:37:05 -03:00
dependabot[bot] c8b40fae92
Bump github.com/mattn/go-sqlite3 from 1.14.21 to 1.14.22 (#4861)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.21 to 1.14.22.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.21...v1.14.22)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 12:58:06 -08:00
kfox1111 f86bc23bfc
Set a default admin socket path for spire-agent cli use (#4856)
* Set a default admin socket path for spire-agent cli use

Set a standard default location the spire-agent cli
will use to look for the agent socket when using commands against
the spire-agent daemon. Actual functionality needing this variable
will come in future patches.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Incorperate feedback

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

* Fix filename

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

---------

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2024-02-02 08:28:29 -07:00
dependabot[bot] 6bcf8446f1
Bump github.com/docker/docker (#4858)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.1+incompatible to 25.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v25.0.1...v25.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-01 14:50:59 -08:00
Agustín Martínez Fayó 085199eda5
Deprecate the k8s_sat node attestor in favor of the k8s_psat node attestor (#4841)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-02-01 13:14:33 -08:00
dependabot[bot] 338d55271c
Bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1 (#4857)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.12 to 3.24.1.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.12...v3.24.1)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-01 12:30:06 -08:00
dependabot[bot] 2fc566fe41
Bump sigstore/cosign-installer from 3.3.0 to 3.4.0 (#4855)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](9614fae9e5...e1523de757)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-01 11:12:56 -08:00
Marcos Yacob 467eeac2ed
LRU subscribers failed to start when no selector was provided (#4852)
* LRU subscribers failed to start when no selector was provided

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-02-01 10:12:23 -08:00
dependabot[bot] 7e6fe7ac3a
Bump github.com/mattn/go-sqlite3 from 1.14.20 to 1.14.21 (#4854)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.20 to 1.14.21.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.20...v1.14.21)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 10:27:00 -08:00
dependabot[bot] 9cc95a90e0
Bump google.golang.org/api from 0.159.0 to 0.161.0 (#4851)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.159.0 to 0.161.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.159.0...v0.161.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 18:39:23 -08:00
dependabot[bot] 9e6fe5e251
Bump github.com/google/go-containerregistry from 0.18.0 to 0.19.0 (#4849)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 17:55:33 -08:00
Faisal Memon 34732340ad
Add pagination support to events based cache (#4826)
* Add pagination support to events based cache

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-01-30 14:37:09 -08:00
dependabot[bot] 3e7d0b22c2
Bump the aws-sdk group with 1 update (#4848)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.145.0 to 1.146.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.145.0...service/ec2/v1.146.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 11:08:31 -08:00
dependabot[bot] aeac34f8af
Bump github.com/docker/docker from 24.0.7+incompatible to 25.0.1+incompatible (#4833)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.7+incompatible to 25.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.7...v25.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* update unit test

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-01-29 17:14:53 -08:00
dependabot[bot] 10fe912fcd
Bump github.com/hashicorp/vault/api from 1.10.0 to 1.11.0 (#4845)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 16:34:20 -08:00
dependabot[bot] 3880411c6b
Bump github.com/open-policy-agent/opa from 0.60.0 to 0.61.0 (#4844)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.60.0 to 0.61.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.60.0...v0.61.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 15:26:55 -07:00
dependabot[bot] 083d7248ec
Bump github.com/mattn/go-sqlite3 from 1.14.19 to 1.14.20 (#4843)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.19 to 1.14.20.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.19...v1.14.20)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 14:01:12 -07:00
dependabot[bot] 3730dbb931
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4824)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.15 to 1.33.16.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.16/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.15...v1.33.16)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 12:49:35 -07:00
dependabot[bot] 3b9c6c7452
Bump sigs.k8s.io/controller-runtime from 0.16.3 to 0.17.0 (#4823)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.16.3 to 0.17.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.16.3...v0.17.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 09:29:18 -07:00
dependabot[bot] e4f4970cc1
Bump the aws-sdk group with 2 updates (#4840)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.25.6 to 1.26.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.25.6...config/v1.26.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.144.0 to 1.145.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.144.0...service/ec2/v1.145.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 10:38:26 -03:00
dependabot[bot] 26f0959fa1
Bump github.com/google/go-containerregistry from 0.17.0 to 0.18.0 (#4821)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-28 13:35:59 -07:00
Steven Dang 8c143c0a89
Add pagination to listEntries cache hydration (#4721)
Signed-off-by: stevend <stevend@uber.com>
2024-01-28 11:27:50 -07:00
dependabot[bot] 2fe432e866
Bump google.golang.org/api from 0.157.0 to 0.159.0 (#4839)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.157.0 to 0.159.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.157.0...v0.159.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-27 08:15:55 -07:00
Andrew Harding b1ea963bb1
Using crypto/rand for pipe name randomization (#4842)
Currently a random source with seed based on the system clock is used.
Unfortunately, windows clock resolution defaults to 15ms so two
consecutive calls to time.Now can very realistically yield the same
timestamp.

This causes the tests to re-use pipe names, causing an "Access denied"
message when attempting to listen.

This change adjusts the code to instead generate the random value using
crypto/rand.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-26 23:45:35 -03:00
dependabot[bot] 98d69af491
Bump the google-cloud-sdk group with 1 update (#4832)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).


Updates `cloud.google.com/go/storage` from 1.36.0 to 1.37.0
- [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/spanner/v1.36.0...spanner/v1.37.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 11:15:32 -03:00
Andrew Harding 376cfe2158
Remove dependency on legacy proto lib (#4831)
* Remove dependency on legacy proto lib

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-25 10:16:17 -03:00
dependabot[bot] 2fbc4bfa30
Bump actions/upload-artifact from 4.2.0 to 4.3.0 (#4830)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](694cdabd8b...26f96dfa69)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-24 09:32:54 -03:00
Faisal Memon b5879e2f4f
Always populate and prune events (#4815)
* Always populate and prune events

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2024-01-23 17:40:53 -08:00
dependabot[bot] b25ac3dbff
Bump github.com/spiffe/go-spiffe/v2 from 2.1.6 to 2.1.7 (#4825)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 14:43:40 -03:00
dependabot[bot] 2d8555c16d
Bump actions/dependency-review-action from 3.1.5 to 4.0.0 (#4816)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.5 to 4.0.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](c74b580d73...4901385134)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 08:13:54 -08:00
dependabot[bot] 76064c81f7
Bump actions/upload-artifact from 4.1.0 to 4.2.0 (#4817)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](1eb3cb2b3e...694cdabd8b)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 08:11:03 -03:00
dependabot[bot] 96a0f1c945
Bump github.com/sigstore/sigstore from 1.8.0 to 1.8.1 (#4809)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-21 16:51:41 -03:00
Bryant Hagadorn 03488402bc
[test] Add unit tests for agent client for log entries (#4780)
* Alter client test to AssertLogs

Signed-off-by: Bryant Hagadorn <blhagadorn@gmail.com>

* Fix and add tests

Signed-off-by: Bryant Hagadorn <blhagadorn@gmail.com>

---------

Signed-off-by: Bryant Hagadorn <blhagadorn@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2024-01-21 15:38:54 -03:00
dependabot[bot] d3d73a7707
Bump the k8s-io group with 3 updates (#4808)
Bumps the k8s-io group with 3 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.29.0 to 0.29.1
- [Commits](https://github.com/kubernetes/api/compare/v0.29.0...v0.29.1)

Updates `k8s.io/client-go` from 0.29.0 to 0.29.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.0...v0.29.1)

Updates `k8s.io/kube-aggregator` from 0.29.0 to 0.29.1
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.29.0...v0.29.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-21 10:22:24 -07:00
dependabot[bot] dd40fa4d3e
Bump google.golang.org/api from 0.154.0 to 0.157.0 (#4818)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.154.0 to 0.157.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.154.0...v0.157.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 23:59:40 -03:00
dependabot[bot] 7742288722
Bump the azure-sdk group with 1 update (#4807)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.4.0 to 1.5.1
- [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.4.0...sdk/internal/v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 23:02:09 -03:00
Prasad 01e10be150
Enable SPIRE Agent LRU cache by default (#4773)
* Enable SPIRE Agent LRU cache by default

Signed-off-by: Prasad Borole <prasadb@uber.com>
2024-01-20 16:34:48 -03:00
dependabot[bot] 4e415ef669
Bump the aws-sdk group with 2 updates (#4796)
* Bump the aws-sdk group with 2 updates

Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.142.0 to 1.144.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.142.0...service/ec2/v1.144.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.47.1 to 1.48.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.47.1...service/s3/v1.48.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update all sdk2 deps at once

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* tidy

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-01-20 13:44:00 -03:00
Andrew Harding b23550a97d
Revamp gRPC test server for api tests (#4819)
* Revamp gRPC test server for api tests

Unifies server implementation. The test server ensures that all handlers
invocations are done when the server is cleaned up. This allows tests
that want to check post-streaming RPC conditions deterministically.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-19 17:33:36 -08:00
Andrew Harding 113a6668aa
Drain handlers when unloading built-in plugin (#4820)
* Drain handlers when unloading built-in plugin

This change updates the built-in plugin implementation to wait for all
RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also
allows plugin tests to deterministically assert properties after
invoking streaming RPCs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-19 16:56:27 -08:00
Andrew Harding 21792e0664
peertracker: close connection when IsAlive fails (#4805)
* peertracker: close connection when IsAlive fails

The listener now wraps the platform-specific watcher with one that
closes the underlying connection when the IsAlive check fails in order
to kill the transport to the caller, who is no longer trusted.

Fixes: #4665

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* relax error check

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-19 16:08:50 -07:00
Andrew Harding 1426095e10
Fix racy tests that test streaming RPCs (#4810)
* Fix racy tests that test streaming RPCs

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-19 17:48:00 -03:00
Andrew Harding cb46cb6a53
Fix racy manager NotifiesBundleLoaded test (#4806)
This test is racy because it currently relies on timing of several
goroutines and context cancellation.

The notifier doing context cancellation doesn't seem to test anything
useful. I don't recall why it was even added.

Getting rid of the context cancellation and simply asserting that the
function returns nil when the notifier returns nil seems good enough.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-19 10:36:23 -07:00
dependabot[bot] abefffa5c2
Bump github.com/open-policy-agent/opa from 0.59.0 to 0.60.0 (#4759)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.59.0 to 0.60.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.59.0...v0.60.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 10:20:22 -07:00
dependabot[bot] 837c73621f
Bump actions/download-artifact from 4.1.0 to 4.1.1 (#4789)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](f44cd7b40b...6b208ae046)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 10:18:38 -07:00
Sorin Dumitru 261702c781
Fetch agent selectors when refreshing event based cache (#4803)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-01-18 09:28:27 -07:00
dependabot[bot] f2cd97e635
Bump actions/upload-artifact from 4.0.0 to 4.1.0 (#4799)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](c7d193f32e...1eb3cb2b3e)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 18:05:17 -07:00
dependabot[bot] 6e63f963a2
Bump github.com/lestrrat-go/jwx/v2 from 2.0.18 to 2.0.19 (#4800)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.18 to 2.0.19.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.18...v2.0.19)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 17:19:00 -07:00
dependabot[bot] d704683eb7
Bump actions/cache from 3.3.2 to 4.0.0 (#4802)
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.2 to 4.0.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](704facf57e...13aacd865c)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 14:41:04 -07:00
Jürgen Kreileder ce7efce46e
Pin docker/dockerfile:1.6.0 with multi-platform sha256 (#4766)
Cf. "crane digest docker/dockerfile:1.6.0" vs "crane digest --platform linux/amd64 docker/dockerfile:1.6.0"

Signed-off-by: Jürgen Kreileder <jk@blackdown.de>
2024-01-16 10:47:52 -08:00
dependabot[bot] 98d1cd5045
Bump golang.org/x/net from 0.19.0 to 0.20.0 (#4797)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 15:03:11 -03:00
dependabot[bot] ced951a7fb
Bump github.com/cloudflare/circl from 1.3.5 to 1.3.7 (#4781)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.5...v1.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 13:24:19 -03:00
Sorin Dumitru 4b15b04021
Update documentation for sql plugin (#4787)
Max open connections default value was changed in #4656 to 100

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2024-01-10 14:01:46 -07:00
Zachary M. Train fb7eaed91d
[githooks] Remove (#4761)
* [docs] Fix git hook bug in CONTRIBUTING.md

The instructions as written resulted in a broken link for the pre-commit
git hook. Use `pushd`, `popd`, and `git rev-parse --show-toplevel` to
correct it.

Signed-off-by: Zack Train <ztrain@uber.com>

* [githooks] Remove deprecated gofmt pre-update hook

Signed-off-by: Zack Train <ztrain@uber.com>

---------

Signed-off-by: Zack Train <ztrain@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-01-09 11:27:09 -03:00
dependabot[bot] ac7dfe9306
Bump actions/dependency-review-action from 3.1.4 to 3.1.5 (#4777)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](01bc87099b...c74b580d73)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-05 12:42:00 -03:00
dependabot[bot] a6383a3cc0
Bump golang.org/x/sync from 0.5.0 to 0.6.0 (#4776)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.5.0 to 0.6.0.
- [Commits](https://github.com/golang/sync/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-04 17:39:32 -03:00
dependabot[bot] 4308787322
Bump golang.org/x/sys from 0.15.0 to 0.16.0 (#4775)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-04 15:15:15 -03:00
dependabot[bot] 7809b3bb57
Bump github.com/envoyproxy/go-control-plane from 0.11.1 to 0.12.0 (#4768)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.11.1...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-04 10:42:42 -03:00
Andrew Harding fffff0a4df
Clean up shellcheck and add some debugging to IT common script (#4772)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-03 11:56:47 -07:00
Agustín Martínez Fayó 1faa2571ef
Fix authentication note in Azure Key Vault documentation (#4764)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-01-03 14:59:20 -03:00
Zachary M. Train 990bbc3591
[direnv] Add basic .envrc.example (#4747)
Add a basic .envrc.example that will build the go sdk using the Makefile and
setup the environment to use it so developers who use direnv
can easily "automatically" use the managed go sdk. Update CONTRIBUTING.md to
add a section describing the intended usage of direnv .envrc.example.

Signed-off-by: Zack Train <ztrain@uber.com>
2024-01-03 14:21:16 -03:00
Andrew Harding dedb0c1224
Actually wait for RPC handlers to complete (#4771)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-03 13:39:11 -03:00
Agustín Martínez Fayó 1c8dc49ba6
Introduce support to save and load the CA journal from the datastore (#4690)
* Save and load the CA journal from datastore

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2024-01-03 12:47:34 -03:00
dependabot[bot] 54897d16ef
Bump google.golang.org/protobuf from 1.31.0 to 1.32.0 (#4758)
* Bump google.golang.org/protobuf from 1.31.0 to 1.32.0

Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* regenerate protos

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2024-01-03 11:43:46 -03:00
Andrew Harding e1099feb33
Fix SyncAuthorizedEntries test race (#4769)
The SyncAuthorizedEntries test is set up to optionally send a request,
depending on the expectations of the test case. The "no caller ID" and
"fetcher fails" test cases are currently set up to send the request on
the stream. However, in this instances, the handler exits before reading
the request off the stream due to the respective expected failures.
Timing conditions still allowed the requests to be sent successfully
most of the time but caused intermittent failures, particularly when
being run in resource constrained environments (e.g. GH actions).

This change fixes the test cases by not attempting to send the request
on the stream.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2024-01-02 17:51:41 -07:00
Keegan Witt 1148b9f5dc
Remove KMS requiring metadata files (closes #4375) (#4700)
* Remove KMS requiring metadata files (closes #4375)

Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2024-01-02 16:26:02 -03:00
dependabot[bot] f7f0cf7250
Bump github.com/shirou/gopsutil/v3 from 3.23.11 to 3.23.12 (#4767)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.11 to 3.23.12.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.11...v3.23.12)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 00:23:36 -03:00
dependabot[bot] 1cd6cfb0c1
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 (#4763)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-29 12:53:48 -03:00
dependabot[bot] 0fdd1d26be
Bump the aws-sdk group with 2 updates (#4757)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.141.0 to 1.142.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.141.0...service/ec2/v1.142.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.25.1 to 1.26.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.25.1...config/v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-27 10:38:12 -03:00
dependabot[bot] 7337901eff
Bump github.com/sigstore/sigstore from 1.7.6 to 1.8.0 (#4754)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.6 to 1.8.0.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.6...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 15:07:45 -03:00
dependabot[bot] 4f1d906d9d
Bump actions/download-artifact from 4.0.0 to 4.1.0 (#4745)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](7a1cd3216c...f44cd7b40b)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 12:50:43 -03:00
dependabot[bot] 46dc5c0453
Bump github.com/mattn/go-sqlite3 from 1.14.18 to 1.14.19 (#4744)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.18 to 1.14.19.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.18...v1.14.19)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 12:09:27 -03:00
dependabot[bot] a09999aa57
Bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#4743)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 11:00:12 -03:00
Agustín Martínez Fayó 01e3a4b4d4
Bump SPIRE to v1.9.0 and update Changelog (#4756)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-12-26 10:14:44 -03:00
dependabot[bot] 9f8cdb7e53
Bump the k8s-io group with 3 updates (#4741)
Bumps the k8s-io group with 3 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.28.4 to 0.29.0
- [Commits](https://github.com/kubernetes/api/compare/v0.28.4...v0.29.0)

Updates `k8s.io/client-go` from 0.28.4 to 0.29.0
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.4...v0.29.0)

Updates `k8s.io/kube-aggregator` from 0.28.4 to 0.29.0
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.28.4...v0.29.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-21 17:21:02 -03:00
dependabot[bot] 1318d99af5
Bump github.com/sigstore/cosign/v2 from 2.2.1 to 2.2.2 (#4734)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-21 14:00:42 -03:00
Agustín Martínez Fayó 60cc098e0d
Fix to migrate from actions/upload-artifact v3 to v4 (#4749)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-12-21 12:51:25 -03:00
dependabot[bot] dc3b8168ee
Bump actions/setup-go from 4.1.0 to 5.0.0 (#4715)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](93397bea11...0c52d547c9)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 10:56:01 -03:00
dependabot[bot] 3a9b2acb01
Bump the google-cloud-sdk group with 1 update (#4732)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).

- [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/storage/v1.35.1...spanner/v1.36.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 14:08:00 -03:00
dependabot[bot] 874b37a6cb
Bump github.com/sigstore/sigstore from 1.7.5 to 1.7.6 (#4712)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.5 to 1.7.6.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.5...v1.7.6)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 11:48:35 -03:00
Andrew Harding f8f6c0e46d
Bump download/upload artifact actions (#4740)
* Bump actions/upload-artifact from 3.1.3 to 4.0.0

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](a8a3f3ad30...c7d193f32e)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/download-artifact from 3.0.2 to 4.0.0

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3.0.2 to 4.0.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](9bc31d5ccc...7a1cd3216c)

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 15:58:38 -03:00
Andrew Harding cef3b90954
Group actions updates (#4739)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-12-15 10:30:43 -07:00
Tomoya Usami 26b9a49a74
Introduce a configurable SVID rotation threshold (#4599)
Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
2023-12-14 23:05:45 -03:00
Andrew Harding f8dc824d79
SyncAuthorizedEntries RPC implementation (#4648)
* SyncAuthorizedEntries RPC implementation

Implements the SyncAuthorizedEntries RPC, which allows agent's to only
sync down changes instead of the entire set of entries.

The server-side implementation is always on and available. Agent's only
use the RPC if the "use_sync_authorized_entries" feature flag is enabled
in the experimental configuration.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-12-14 17:44:40 -03:00
Steven Dang f56a5a2e88
Specify event-based in-mem cache log (#4731)
Signed-off-by: stevend <stevend@uber.com>
2023-12-14 12:15:31 -07:00
Sorin Dumitru b243d4654b
Remove saving of bundle and svid in independent files (#4717)
Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-12-14 11:15:29 -07:00
Faisal Memon 29b94901ab
Make events based cache flag experimental (#4723)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2023-12-14 09:55:14 -07:00
dependabot[bot] 49a49e8ed9
Bump google.golang.org/api from 0.152.0 to 0.154.0 (#4729)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.152.0 to 0.154.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.152.0...v0.154.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 18:00:27 -03:00
dependabot[bot] 571c5348a4
Bump the azure-sdk group with 1 update (#4728)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).

- [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.9.0...sdk/azcore/v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 16:54:14 -03:00
dependabot[bot] aba28f4a18
Bump github.com/hashicorp/go-hclog from 1.5.0 to 1.6.2 (#4727)
Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog) from 1.5.0 to 1.6.2.
- [Release notes](https://github.com/hashicorp/go-hclog/releases)
- [Commits](https://github.com/hashicorp/go-hclog/compare/v1.5.0...v1.6.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-hclog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 15:51:19 -03:00
dependabot[bot] c12bd76039
Bump the aws-sdk group with 2 updates (#4724)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.25.0 to 1.26.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.25.0...config/v1.26.1)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.138.1 to 1.141.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.138.1...service/ec2/v1.141.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: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 14:16:56 -03:00
dependabot[bot] cfd8bff83b
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4711)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.14 to 1.33.15.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.15/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.14...v1.33.15)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 13:26:38 -03:00
dependabot[bot] 37f7203908
Bump github.com/lestrrat-go/jwx/v2 from 2.0.17 to 2.0.18 (#4707)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.17 to 2.0.18.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.17...v2.0.18)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 10:28:54 -03:00
dependabot[bot] ca3af58c22
Bump sigstore/cosign-installer from 3.2.0 to 3.3.0 (#4725)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](1fc5bd396d...9614fae9e5)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 09:46:30 -03:00
Marcos Yacob 53192d24a8
Bump spire version to 1.8.7 and upgrade golang (#4726)
* Bump spire version to 1.8.7 and upgrade golang, keep using alpine3.18

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-12-12 20:02:15 -03:00
dependabot[bot] 8913f00a99
Bump actions/stale from 8.0.0 to 9.0.0 (#4722)
Bumps [actions/stale](https://github.com/actions/stale) from 8.0.0 to 9.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](1160a22402...28ca103628)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 16:02:56 -03:00
Ajay Kemparaj 63573126e7
move from gopkg.in/square/go-jose.v2 to go-jose/go-jose (#4688)
* move from gopkg.in/square/go-jose.v2 to go-jose/go-jose

Signed-off-by: ajayk <ajaykemparaj@gmail.com>

* maintain backcompat on aud claim

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: ajayk <ajaykemparaj@gmail.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2023-12-07 18:10:28 -03:00
dependabot[bot] ca31c1e9b6
Bump github.com/shirou/gopsutil/v3 from 3.23.10 to 3.23.11 (#4706)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.10 to 3.23.11.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.10...v3.23.11)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 16:06:01 -03:00
Faisal Memon 5ccf55fab3
Populate cache from events (#4562)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2023-12-05 14:12:35 -07:00
dependabot[bot] d14e5842e3
Bump github.com/sigstore/rekor from 1.3.3 to 1.3.4 (#4709)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.3...v1.3.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 15:58:03 -03:00
dependabot[bot] 09ea50fea3
Bump github.com/google/go-containerregistry from 0.16.1 to 0.17.0 (#4705)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.16.1...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 11:04:04 -03:00
dependabot[bot] 9b0855baf3
Bump github.com/open-policy-agent/opa from 0.58.0 to 0.59.0 (#4704)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.58.0 to 0.59.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:00:44 -03:00
Marcos Yacob 7016629b82
Make agent fail when getting unknown authority (#4617)
* Make agent crash when getting an unknown authority error when sync entries with spire server

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-12-01 09:18:15 -03:00
dependabot[bot] d8d0b4d32d
Bump the aws-sdk group with 7 updates (#4703)
Bumps the aws-sdk group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.24.0` | `1.25.1` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.137.1` | `1.138.1` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.27.0` | `1.28.1` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.26.0` | `1.27.1` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.45.0` | `1.47.1` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.24.0` | `1.25.1` |
| [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.25.1` | `1.26.1` |


Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.24.0 to 1.25.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.24.0...config/v1.25.1)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.137.1 to 1.138.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.137.1...service/ec2/v1.138.1)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.27.0 to 1.28.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ecs/v1.28.1/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.27.0...service/ecs/v1.28.1)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.26.0 to 1.27.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.26.0...service/s3/v1.27.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.45.0 to 1.47.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.45.0...service/s3/v1.47.1)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.24.0 to 1.25.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.24.0...config/v1.25.1)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.25.1 to 1.26.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.25.1...service/s3/v1.26.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 11:34:51 -03:00
dependabot[bot] c0de70e4ec
Bump actions/dependency-review-action from 3.1.3 to 3.1.4 (#4701)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](7bbfa034e7...01bc87099b)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 10:35:07 -03:00
dependabot[bot] a6777c2e9e
Bump google.golang.org/api from 0.151.0 to 0.152.0 (#4697)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.151.0 to 0.152.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.151.0...v0.152.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 15:50:04 -03:00
dependabot[bot] 31425ca54b
Bump golang.org/x/time from 0.4.0 to 0.5.0 (#4694)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/golang/time/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 13:23:09 -03:00
dependabot[bot] 88dad78359
Bump golang.org/x/net from 0.18.0 to 0.19.0 (#4695)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/net/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 11:08:28 -03:00
dependabot[bot] fd7517887d
Bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#4693)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 10:18:26 -03:00
dependabot[bot] 64433e0d63
Bump the aws-sdk group with 2 updates (#4691)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.44.0 to 1.45.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.44.0...service/s3/v1.45.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.23.0 to 1.24.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.23.0...config/v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 08:22:00 -03:00
dependabot[bot] 5709d1bbb5
Bump the azure-sdk group with 1 update (#4689)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources](https://github.com/Azure/azure-sdk-for-go).

- [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.1.1...v1.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 11:02:51 -03:00
Ryan Turner eced9550fa
Update main branch after v1.8.5 release (#4687)
Signed-off-by: Ryan Turner <turner@uber.com>
2023-11-23 09:52:07 -03:00
dependabot[bot] 8bde51dd80
Bump the aws-sdk group with 2 updates (#4683)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.133.0 to 1.137.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.133.0...service/ec2/v1.137.1)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.42.0 to 1.44.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.42.0...service/s3/v1.44.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 14:31:46 -08:00
Ryan Turner d2b1f33d6f
Remove usage of deprecated system package `syscall` (#4601)
* Replace `syscall` usage with `golang.org/x/sys`

Replace usage of low-level deprecated system package `syscall` with
higher-level packages in `net`, `os`, and platform-specific low-level
packages in `golang.org/x/sys/unix` and `golang.org/x/sys/windows`.

There are a few cases in Windows code where it appears that the usage of
`syscall` is unfortunately required due to lack of deep support for
Windows in Golang. Those spots will continue to use `syscall` for now.

Signed-off-by: Ryan Turner <turner@uber.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-11-22 09:47:58 -08:00
Federico Nahuel Quijada 5863dc6c7d
change default value from unlimited to 100 (#4656)
Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2023-11-22 11:58:46 -03:00
dependabot[bot] 071cc1dc06
Bump github.com/lestrrat-go/jwx/v2 from 2.0.16 to 2.0.17 (#4679)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.16 to 2.0.17.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.16...v2.0.17)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 17:00:38 -08:00
dependabot[bot] 5561f3b121
Bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 (#4684)
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/v3/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 15:11:14 -08:00
dependabot[bot] 5c6db7c898
Bump google.golang.org/api from 0.150.0 to 0.151.0 (#4676)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.150.0 to 0.151.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.150.0...v0.151.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 13:47:38 -08:00
Agustín Martínez Fayó 14d1d340b6
Use Go from build directory in Windows integration tests instead of requiring a Go installation (#4670)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-11-17 13:11:37 -03:00
dependabot[bot] 5b3fe100bd
Bump github.com/aws/aws-sdk-go-v2 from 1.22.2 to 1.23.0 (#4674)
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.22.2 to 1.23.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.22.2...v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-17 12:06:36 -03:00
dependabot[bot] a5db91f7e5
Bump github.com/aws/smithy-go from 1.16.0 to 1.17.0 (#4673)
Bumps [github.com/aws/smithy-go](https://github.com/aws/smithy-go) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 19:44:37 -03:00
dependabot[bot] 72fe98bb94
Bump the k8s-io group with 3 updates (#4672)
Bumps the k8s-io group with 3 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/client-go](https://github.com/kubernetes/client-go) and [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).


Updates `k8s.io/api` from 0.28.3 to 0.28.4
- [Commits](https://github.com/kubernetes/api/compare/v0.28.3...v0.28.4)

Updates `k8s.io/client-go` from 0.28.3 to 0.28.4
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.3...v0.28.4)

Updates `k8s.io/kube-aggregator` from 0.28.3 to 0.28.4
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.28.3...v0.28.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 16:02:18 -03:00
dependabot[bot] 7f84ecdd32
Bump sigstore/cosign-installer from 3.1.2 to 3.2.0 (#4641)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](11086d2504...1fc5bd396d)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 11:15:00 -03:00
dependabot[bot] c9ed549bff
Bump actions/dependency-review-action from 3.1.1 to 3.1.3 (#4661)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](9f45b2463b...7bbfa034e7)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 10:07:22 -03:00
dependabot[bot] 60fcc30a27
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4667)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.13 to 1.33.14.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.14/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.13...v1.33.14)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 09:05:34 -03:00
dependabot[bot] facb467093
Bump golang.org/x/time from 0.3.0 to 0.4.0 (#4653)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.3.0 to 0.4.0.
- [Commits](https://github.com/golang/time/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 08:07:34 -03:00
dependabot[bot] a930754f25
Bump github.com/hashicorp/go-plugin from 1.5.2 to 1.6.0 (#4662)
Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 07:00:39 -03:00
dependabot[bot] bb318084b4
Bump the google-cloud-sdk group with 1 update (#4660)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).

- [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/spanner/v1.34.1...storage/v1.35.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 22:18:08 -03:00
dependabot[bot] e35c42cdde
Bump the aws-sdk group with 2 updates (#4668)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.23.0 to 1.25.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.23.0...config/v1.25.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.131.0 to 1.133.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.131.0...service/ec2/v1.133.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: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-11-15 19:34:38 -03:00
Agustín Martínez Fayó 26e020d997
Fix Windows integration test to check for RUNNING service state also (#4669)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-11-15 13:22:46 -08:00
Hector Fernandez 10d6e83a12
upgrade cosign dependency (#4657)
Signed-off-by: Hector Fernandez <hector@chainguard.dev>
2023-11-13 12:53:19 -03:00
Federico Nahuel Quijada 93268ad347
Change log while creating or renewing SVID (#4654)
Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2023-11-13 11:04:13 -03:00
dependabot[bot] 0eb560833f
Bump the aws-sdk group with 2 updates (#4655)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.22.1 to 1.23.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.22.1...config/v1.23.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.130.0 to 1.131.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.130.0...service/ec2/v1.131.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: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 17:20:38 -03:00
dependabot[bot] dc4fe50f6f
Bump golang.org/x/net from 0.17.0 to 0.18.0 (#4652)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:47:32 -03:00
dependabot[bot] fa29af12dd
Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#4651)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 15:28:18 -03:00
dependabot[bot] 0ce96f97e2
Bump github.com/mattn/go-sqlite3 from 1.14.17 to 1.14.18 (#4646)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.17 to 1.14.18.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.17...v1.14.18)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 09:38:39 -03:00
dependabot[bot] 8e9910e329
Bump google.golang.org/api from 0.149.0 to 0.150.0 (#4644)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.149.0 to 0.150.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.149.0...v0.150.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 08:01:36 -03:00
dependabot[bot] 3e22d09658
Bump github.com/gorilla/handlers from 1.5.1 to 1.5.2 (#4645)
Bumps [github.com/gorilla/handlers](https://github.com/gorilla/handlers) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/gorilla/handlers/releases)
- [Commits](https://github.com/gorilla/handlers/compare/v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/gorilla/handlers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 17:34:51 -03:00
dependabot[bot] 8acf00e5e3
Bump golang.org/x/sync from 0.4.0 to 0.5.0 (#4643)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/golang/sync/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 16:25:53 -03:00
dependabot[bot] 2f649f5102
Bump the azure-sdk group with 1 update (#4640)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).

- [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.8.0...sdk/azcore/v1.9.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: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 15:40:01 -03:00
Agustín Martínez Fayó c0ae1279a7
Bump SPIRE to 1.8.5 (#4642)
- Bump SPIRE to 1.8.5
- Update to Go 1.21.4
- Update CHANGELOG to include 1.7.5 and 1.8.4 releases

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-11-08 13:59:47 -03:00
dependabot[bot] a7978b9652
Bump github.com/shirou/gopsutil/v3 from 3.23.9 to 3.23.10 (#4636)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.9 to 3.23.10.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.9...v3.23.10)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 10:31:57 -03:00
dependabot[bot] aa505fae1b
Bump the aws-sdk group with 7 updates (#4639)
Bumps the aws-sdk group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.19.1` | `1.22.1` |
| [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) | `1.22.1` | `1.24.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.128.0` | `1.130.0` |
| [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) | `1.24.0` | `1.27.0` |
| [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) | `1.24.7` | `1.26.0` |
| [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) | `1.40.0` | `1.42.0` |
| [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) | `1.21.0` | `1.23.0` |


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.19.1 to 1.22.1
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.19.1...v1.22.1)

Updates `github.com/aws/aws-sdk-go-v2/service/acmpca` from 1.22.1 to 1.24.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.24.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.22.1...service/s3/v1.24.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.128.0 to 1.130.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.128.0...service/ec2/v1.130.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.24.0 to 1.27.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.27.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.24.0...service/s3/v1.27.0)

Updates `github.com/aws/aws-sdk-go-v2/service/kms` from 1.24.7 to 1.26.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.26.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.24.7...service/s3/v1.26.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.40.0 to 1.42.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.40.0...service/s3/v1.42.0)

Updates `github.com/aws/aws-sdk-go-v2/service/secretsmanager` from 1.21.0 to 1.23.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.23.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.21.0...service/s3/v1.23.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: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 16:01:47 -03:00
dependabot[bot] 0566a6d7da
Bump github.com/sigstore/rekor from 1.3.2 to 1.3.3 (#4633)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 13:42:14 -03:00
dependabot[bot] 1d61fb0929
Bump actions/dependency-review-action from 3.1.0 to 3.1.1 (#4638)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](6c5ccdad46...9f45b2463b)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 10:04:27 -03:00
Andrew Harding 45730cf9cb
Ignore workspace files (#4635)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-11-06 12:47:29 -06:00
dependabot[bot] d93dcd166e
Bump the google-cloud-sdk group with 1 update (#4630)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).

- [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/pubsub/v1.33.0...spanner/v1.34.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 12:13:08 -03:00
dependabot[bot] 3e9f4d55f0
Bump github.com/lestrrat-go/jwx/v2 from 2.0.15 to 2.0.16 (#4626)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.15...v2.0.16)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 13:42:09 -03:00
dependabot[bot] 4b02e181b2
Bump github.com/google/go-tpm-tools from 0.4.1 to 0.4.2 (#4621)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.4.1...v0.4.2)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 12:40:08 -03:00
Sorin Dumitru fabc20001c
server: Include CA Serial Number in Subject field (#4585)
* server: Include CA Serial Number in Subject field

This helps avoid running into a crypto/x509 limit that limits how many
signature checks are allowed to happen to validate a certificate, most
likely to avoid DoS attacks.

Building up a valid certificate chain is done based on the Subject
field, even in the presence of an AKID. If all certificates from the
bundle have the same Subject name, the verifier will attempt to build
up a chain using all of them. Once we have more than 100 certificates
in the bundle, we hit that crypto/x509 limit and start failing to
verify X509-SVIDs.

Additionally this also improves mTLS channel establishment since we now
no longer have to try to build a chain against all certificates from the
bundle, we can easily identify the CA that signed an X509-SVID due to it
having an unique Subject.

Example resulting Subject:
Subject: C = US, O = SPIFFE, serialNumber = 249778918434805435318471934298663515772

An experimental flag is also available to disable this feature in
case there are issues encountered.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Fix integration test

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Move flag out of experimental section

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

* Comment out exclude_sn_from_ca_subject in full config

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>

---------

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2023-11-03 06:24:58 -06:00
Sorin Dumitru d50a28e9e8
telemetry: allow configuring the inclusion of hostname in lables (#4584)
In some cases this label is not desirable due to it already being added
by whatever is ingesting the metrics. For some sink types, e.g Statsd,
because due to no lable support, the hostname label is added as part of
the metric.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-11-03 05:09:22 -06:00
Marcos Yacob 2c01566525
SPIFFE Validation context as default (#4618)
* SPIFFE Validation context as default

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-11-01 14:09:19 -03:00
Shashank Ram 0d6d42c17f
server/plugins/azure: use the default credentials API (#4568)
Uses the NewDefaultAzureCredential API to fetch
client credentials. This API wraps different
mechanisms to obtain credentials using a chained
token credential mechanism. By doing so, the Azure
plugins are able to obtain a token using any of the
supported mechanisms: env vars, MSI, workload identity,
without needing separate config input for each.

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
2023-11-01 10:54:42 -03:00
Keegan Witt 9244813636
Fix spelling errors (#4623)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2023-10-31 17:04:31 -03:00
Ryan Turner 4fc520f6fb
Bump golangci-lint to v1.55.0 (#4591)
Fix code locations now affected by updated linter rules.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-10-31 12:59:05 -03:00
Agustín Martínez Fayó b9cc67f08a
Replace the use of reflect.SliceHeader with unsafe.Slice. (#4625)
Fixes #4603.

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-10-31 12:10:29 -03:00
dependabot[bot] 93ee7c0c78
Bump github.com/open-policy-agent/opa from 0.57.1 to 0.58.0 (#4616)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.57.1 to 0.58.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.57.1...v0.58.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-31 09:42:44 -03:00
dependabot[bot] 5c5c72b4d8
Bump github.com/docker/docker (#4615)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.6+incompatible to 24.0.7+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.6...v24.0.7)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 15:35:35 -03:00
dependabot[bot] 616c9c5c57
Bump the aws-sdk group with 1 update (#4614)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.127.0...service/ec2/v1.128.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 11:37:23 -03:00
dependabot[bot] cb18c75914
Bump github.com/sigstore/sigstore from 1.7.4 to 1.7.5 (#4613)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.4...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 10:30:11 -03:00
dependabot[bot] 3a095ab78b
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4612)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.12 to 1.33.13.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.13/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.12...v1.33.13)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 16:12:44 -03:00
Ryan Turner ac23b86554
Bump protoc to v24.4 and proto-gen-grpc-go to v1.3.0 (#4595)
* Bump protoc to v21.12 and proto-gen-grpc-go to v1.3.0

protoc 21.12 is the latest version that has support for all the
architectures currently in the Makefile.

Signed-off-by: Ryan Turner <turner@uber.com>

* Use latest protoc

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-10-27 14:01:10 -03:00
Ryan Turner c942cc0df7
Run `go fix` on the project (#4607)
* Run `go fix` on the project

Signed-off-by: Ryan Turner <turner@uber.com>

* Clean up imports

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-10-27 10:35:42 -03:00
grameshtwilio 00f28255b1
Retain node info on SDS stream when omitted from subsequent requests (#4611)
* Bump the aws-sdk group with 2 updates (#4610)

Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2).

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.126.0 to 1.127.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.126.0...service/ec2/v1.127.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.22.0 to 1.24.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.24.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.22.0...service/s3/v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: grameshtwilio <gramesh@twilio.com>

* patching sds handler to remember node info

Signed-off-by: grameshtwilio <gramesh@twilio.com>

* Update pkg/agent/endpoints/sdsv3/handler.go

Co-authored-by: Andrew Harding <azdagron@gmail.com>
Signed-off-by: grameshtwilio <gramesh@twilio.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: grameshtwilio <gramesh@twilio.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2023-10-26 11:26:15 -06:00
dependabot[bot] f302325617
Bump the aws-sdk group with 2 updates (#4610)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.126.0 to 1.127.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.126.0...service/ec2/v1.127.0)

Updates `github.com/aws/aws-sdk-go-v2/service/iam` from 1.22.0 to 1.24.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.24.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.22.0...service/s3/v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-26 12:46:51 -03:00
Ryan Turner 8941c1d03f
Replace `interface{}` with more readable type alias `any` (#4604)
* Replace `interface{}` with more readable type alias `any`

Go 1.18 introduced the type alias `any` for `interface{}`, which is more
readable and explicit. Take advantage of this newer language feature by
replacing all usages of `interface{}` with the functionally equivalent
`any` for all non-generated code.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-10-26 11:52:10 -03:00
Marcos Yacob 1050ccdb6d
Bump SPIRE to version 1.8.3. (#4609)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-10-26 10:51:03 -03:00
Barry M 072b6cb1a4
update alpine base image to v3.18 (#4598)
Signed-off-by: Barry Melbourne <barry.melbourne0@gmail.com>
2023-10-25 17:16:08 -03:00
Ryan Turner 8fda5ae203
Bump docker/dockerfile to v1.6.0 (#4593)
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-10-25 15:45:40 -03:00
Ryan Turner 8e9aaa0f92
Bump xx to v1.3.0 (#4592)
Signed-off-by: Ryan Turner <turner@uber.com>
2023-10-25 14:19:32 -03:00
Ryan Turner 22c60af669
Bump markdownlint-cli to v0.37.0 (#4594)
Signed-off-by: Ryan Turner <turner@uber.com>
2023-10-24 10:05:06 -03:00
dependabot[bot] 026f8d0660
Bump google.golang.org/api from 0.147.0 to 0.148.0 (#4590)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) 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)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 17:44:13 -07:00
stevend-uber b00764889d
[spire-agent] Added a jitter in spire agent svid renewal (#4534)
Signed-off-by: stevend-uber <stevend+github@uber.com>
2023-10-20 16:40:52 -07:00
dependabot[bot] 52ad6ef251
Bump github.com/lestrrat-go/jwx/v2 from 2.0.14 to 2.0.15 (#4588)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.14 to 2.0.15.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.14...v2.0.15)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 14:52:33 -07:00
dependabot[bot] 46b1660196
Bump the aws-sdk group with 1 update (#4587)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.125.0...service/ec2/v1.126.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 13:05:13 -07:00
dependabot[bot] c9e7bccad5
Bump the k8s-io group with 1 update (#4583)
Bumps the k8s-io group with 1 update: [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator).

- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.28.2...v0.28.3)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-io
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 10:28:53 -07:00
Tomoya Usami 5b7ea69ae0
Embed the correct version information in the release artifacts (#4564)
Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
2023-10-20 09:30:50 -07:00
dependabot[bot] b7e84257c4
Bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.16.3 (#4576)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.16.2...v0.16.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-19 17:17:26 -07:00
Ryan Turner a0f40a3449
Group k8s.io/* dependency updates (#4580)
The Kubernetes client libraries prefixed by `k8s.io/*` follow the same
versioning scheme. Have them be upgraded in unison to minimize overhead
of merging each individual dep bump.

Also alphabetize the dependabot dependency groups.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-10-19 15:19:43 -07:00
Joseph N Denton 8a41aab52f
Doc: Fix typo in example JSON on plugin docs (#4579)
* Fix typo in example JSON

Signed-off-by: Joseph N Denton <josephndenton@gmail.com>
2023-10-19 14:08:00 -07:00
Shashank Ram cdf7a4932f
doc: fix incorrect selector value in example (#4569)
Fixes the azure subnet selector value.

Signed-off-by: Shashank Ram <shashank.ram@solo.io>
2023-10-19 11:35:28 -07:00
dependabot[bot] ebc960242e
Bump actions/checkout from 4.1.0 to 4.1.1 (#4574)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-19 10:01:05 -07:00
dependabot[bot] 8fe66fcff8
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4571)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.11 to 1.33.12.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.12/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.11...v1.33.12)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 17:56:54 -07:00
dependabot[bot] edf7025971
Bump google.golang.org/grpc from 1.58.3 to 1.59.0 (#4570)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) 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: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 16:52:27 -07:00
dependabot[bot] eef5988467
Bump github.com/lestrrat-go/jwx/v2 from 2.0.13 to 2.0.14 (#4567)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.13 to 2.0.14.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.13...v2.0.14)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 14:25:22 -07:00
dependabot[bot] 75049619a2
Bump the aws-sdk group with 1 update (#4566)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2).

- [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.37...v1.19.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: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 11:26:30 -07:00
dependabot[bot] 3a098d701c
Bump github.com/open-policy-agent/opa from 0.57.0 to 0.57.1 (#4572)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.57.0 to 0.57.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.57.0...v0.57.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 10:25:56 -07:00
Edwin Buck c794345209
Fix documentation for agent KeyManager "disk" (#4561)
Text of the documentation was correct, but the example was for the
server KeyManager "disk".

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2023-10-17 15:23:22 -07:00
Sorin Dumitru a4e4a3049a
server/agent: allow configuring prefixes for all metrics (#4535)
Currently these are hard coded to spire_server/spire_agent. I'd like to be
able to differentiate between different instances (e.g. for different trust
domains) when the metrics end up being aggregated in a single place.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-10-17 09:54:28 -07:00
Matteus Silva 71f2414f9e
Fix: only one of trust_bundle_path, trust_bundle_url, or insecure_bootstrap can be set (#4532)
@mnp reported in issue 4530 that it was possible to set trust_bundle_url
and insecure_bootstrap in the Agent configuration. There was a test for
this case. However, the test was just checking if there was an error.
There was an error but not the expected one. This commit also adds
expectErrorContains to the test case struct so tests can check the
expected error message. Also, more tests added.

Signed-off-by: Matteus Silva <silvamatteus@lsd.ufcg.edu.br>
2023-10-16 09:48:21 -03:00
dependabot[bot] 8d6036aa80
Bump github.com/sigstore/sigstore from 1.7.3 to 1.7.4 (#4559)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.3...v1.7.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 20:16:16 -03:00
dependabot[bot] b00178cadf
Bump the aws-sdk group with 1 update (#4558)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.124.0...service/ec2/v1.125.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 18:38:43 -03:00
dependabot[bot] d6c88d1c22
Bump github.com/open-policy-agent/opa from 0.56.0 to 0.57.0 (#4555)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 20:41:47 +00:00
dependabot[bot] 01bb3155f6
Bump google.golang.org/api from 0.146.0 to 0.147.0 (#4556)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) 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: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 16:46:08 -03:00
dependabot[bot] 21136dffd9
Bump github.com/hashicorp/vault/sdk from 0.10.0 to 0.10.2 (#4553)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.10.0 to 0.10.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.10.0...v0.10.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 18:43:47 +00:00
Agustín Martínez Fayó 9311f79680
Bump SPIRE to version 1.8.3 (#4557)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-10-13 12:29:39 +00:00
dependabot[bot] 7fb921c23d
Bump github.com/uber-go/tally/v4 from 4.1.7 to 4.1.10 (#4554)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.7 to 4.1.10.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.7...v4.1.10)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 18:24:32 +00:00
dependabot[bot] 66e3e5379a
Bump github.com/sigstore/rekor from 1.3.0 to 1.3.2 (#4548)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.0...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 12:45:20 -03:00
dependabot[bot] dbf429fd19
Bump google.golang.org/api from 0.145.0 to 0.146.0 (#4543)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.145.0 to 0.146.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.145.0...v0.146.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 13:38:46 +00:00
dependabot[bot] 2d06544a6f
Bump github.com/sigstore/sigstore from 1.7.2 to 1.7.3 (#4542)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 12:27:35 +00:00
dependabot[bot] cacc6e6cce
Bump the aws-sdk group with 1 update (#4541)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.123.0...service/ec2/v1.124.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 10:56:46 +00:00
dependabot[bot] c404155820
Bump golang.org/x/net from 0.15.0 to 0.17.0 (#4551)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 02:33:23 +00:00
dependabot[bot] fd875781b1
Bump the azure-sdk group with 2 updates (#4547)
Bumps the azure-sdk group with 2 updates: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) and [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go).


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/Azure/azure-sdk-for-go/sdk/azidentity` from 1.3.1 to 1.4.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.3.1...sdk/azcore/v1.4.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: azure-sdk
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 22:41:44 -03:00
guangwu 4023e7b8e7
chore: import packages only once (#4540)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-10-12 00:46:42 +00:00
nweisenauer fe1dd0648e
Agent manager retries sync during init (#4479)
* Agent manager retries sync during init

Agent manager retries every 5 seconds for a total of 1 minute to fetch SVIDs from the server during initalization.

Signed-off-by: Nico Weisenauer <nico.weisenauer@sap.com>
2023-10-11 23:01:26 +00:00
Agustín Martínez Fayó c21806beaa
Update to go 1.21.3 (#4550)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-10-11 21:25:45 +00:00
Agustín Martínez Fayó cff5aef2d3
Bump SPIRE to version 1.8.2 (#4549)
* Bump SPIRE to version 1.8.2

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-10-11 20:23:49 +00:00
Faisal Memon f8c831c1c5
Populate and prune attested node events (#4527)
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2023-10-10 12:34:51 -06:00
dependabot[bot] 144bf610d6
Bump github.com/shirou/gopsutil/v3 from 3.23.8 to 3.23.9 (#4537)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.8 to 3.23.9.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.8...v3.23.9)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 12:37:46 -03:00
dependabot[bot] cb5e0bc18f
Bump google.golang.org/api from 0.142.0 to 0.145.0 (#4538)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.142.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.142.0...v0.145.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 11:27:44 -03:00
dependabot[bot] 703c8b5ca8
Bump github.com/lestrrat-go/jwx/v2 from 2.0.12 to 2.0.13 (#4529)
Bumps [github.com/lestrrat-go/jwx/v2](https://github.com/lestrrat-go/jwx) from 2.0.12 to 2.0.13.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v2/Changes)
- [Commits](https://github.com/lestrrat-go/jwx/compare/v2.0.12...v2.0.13)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 10:18:27 -03:00
dependabot[bot] e599a6da7b
Bump the aws-sdk group with 3 updates (#4533)
Bumps the aws-sdk group with 3 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.120.0 to 1.123.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.120.0...service/ec2/v1.123.0)

Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.39.0 to 1.40.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.39.0...service/s3/v1.40.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.22.0 to 1.23.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.23.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.22.0...service/s3/v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 18:33:16 -03:00
dependabot[bot] cb29051847
Bump sigs.k8s.io/controller-runtime from 0.16.0 to 0.16.2 (#4526)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.16.0 to 0.16.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.16.0...v0.16.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-05 12:51:19 -06:00
dependabot[bot] d124177b7b
Bump actions/checkout from 4.0.0 to 4.1.0 (#4523)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](3df4ab11eb...8ade135a41)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-05 12:16:50 -03:00
dependabot[bot] 9f0fcc19c0
Bump github.com/hashicorp/vault/sdk from 0.9.2 to 0.10.0 (#4519)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.9.2 to 0.10.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.9.2...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-05 10:35:35 -03:00
Andrew Harding 420db056e7
New Mutable Authorized Entry Cache (#4451)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-10-04 15:24:46 -06:00
dependabot[bot] 1cc57e3fc4
Bump github.com/hashicorp/go-plugin from 1.4.10 to 1.5.2 (#4525)
* Bump github.com/hashicorp/go-plugin from 1.4.10 to 1.5.2

Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.4.10 to 1.5.2.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.4.10...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

* Update expected error message when running invalid plugin

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-10-03 09:21:12 -07:00
dependabot[bot] cb6ce22af3
Bump the aws-sdk group with 1 update (#4524)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.119.0...service/ec2/v1.120.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 17:46:10 -03:00
dependabot[bot] d19865ce4f
Bump github.com/open-policy-agent/opa from 0.55.0 to 0.56.0 (#4520)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.55.0 to 0.56.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.55.0...v0.56.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 14:07:01 -03:00
dependabot[bot] 090bd795db
Bump google.golang.org/grpc from 1.57.0 to 1.58.2 (#4521)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.58.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.57.0...v1.58.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 11:53:24 -03:00
dependabot[bot] 39049c3d87
Bump google.golang.org/api from 0.141.0 to 0.142.0 (#4518)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.141.0 to 0.142.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.142.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 11:01:16 -03:00
dependabot[bot] 78a960b824
Bump github.com/sigstore/rekor from 1.2.2 to 1.3.0 (#4517)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.2.2...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 14:59:36 -03:00
Mo Khan dcd1c90e99
BuildWorkloadJWTSVIDClaims fix for real credential composer implementation (#4489)
BuildWorkloadJWTSVIDClaims fix for real credential composer implementation

Signed-off-by: Monis Khan <i@monis.app>
2023-09-22 14:09:31 -03:00
dependabot[bot] 54fc60ce1b
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4513)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.10 to 1.33.11.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.11/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.10...v1.33.11)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 13:11:48 -03:00
dependabot[bot] 6aa640acad
Bump github.com/google/go-tpm-tools from 0.4.0 to 0.4.1 (#4512)
* Bump github.com/google/go-tpm-tools from 0.4.0 to 0.4.1

Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/master/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.4.0...v0.4.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade google/go-tdx-guest to resolve windowns build

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-09-22 12:22:33 -03:00
dependabot[bot] 2481820aa2
Bump github.com/sigstore/cosign/v2 from 2.1.1 to 2.2.0 (#4514)
Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.1.1...v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 10:10:10 -03:00
dependabot[bot] d961de99aa
Bump k8s.io/kube-aggregator from 0.28.0 to 0.28.2 (#4511)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.28.0 to 0.28.2.
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.28.0...v0.28.2)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 09:17:25 -03:00
dependabot[bot] ea26b44f2d
Bump the aws-sdk group with 1 update (#4510)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/s3](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/service/s3/v1.38.1...service/s3/v1.39.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21 15:23:26 -03:00
dependabot[bot] 49f2eae84b
Bump github.com/shirou/gopsutil/v3 from 3.23.7 to 3.23.8 (#4508)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.7 to 3.23.8.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.7...v3.23.8)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21 13:16:10 -03:00
dependabot[bot] 0c44489d2e
Bump k8s.io/client-go from 0.28.0 to 0.28.2 (#4507)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.28.0 to 0.28.2.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.0...v0.28.2)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21 11:21:59 -03:00
dependabot[bot] d660f3eac9
Bump github.com/hashicorp/vault/api from 1.9.2 to 1.10.0 (#4506)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.9.2 to 1.10.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/v1.10.0/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.9.2...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21 10:23:15 -03:00
dependabot[bot] 9cd13c7932
Bump github.com/docker/docker (#4503)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.5+incompatible to 24.0.6+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.5...v24.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 18:41:10 -03:00
dependabot[bot] 92f5ab9b2f
Bump the aws-sdk group with 1 update (#4505)
Bumps the aws-sdk group with 1 update: [github.com/aws/aws-sdk-go-v2/service/ec2](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/service/ec2/v1.118.0...service/ec2/v1.119.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 17:17:40 -03:00
Marcos Yacob cf536eb305
Bump SPIRE to version 1.8.1 (#4509)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-09-20 16:26:06 -03:00
dependabot[bot] c4dfd8ddee
Bump github.com/gofrs/uuid from 4.0.0+incompatible to 4.4.0+incompatible (#4502)
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.0.0+incompatible to 4.4.0+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.0.0...v4.4.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 10:40:40 -03:00
dependabot[bot] 0e2017dc1a
Bump the google-cloud-sdk group with 1 update (#4500)
Bumps the google-cloud-sdk group with 1 update: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go).

- [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/pubsub/v1.32.0...pubsub/v1.33.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: google-cloud-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 18:30:31 -03:00
dependabot[bot] 7a64482ac9
Bump the aws-sdk group with 2 updates (#4499)
Bumps the aws-sdk group with 2 updates: [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.114.0 to 1.118.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.114.0...service/ec2/v1.118.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.21.0 to 1.22.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.22.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.21.0...service/s3/v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 16:12:22 -03:00
dependabot[bot] fd79f50747
Bump the azure-sdk group with 1 update (#4501)
Bumps the azure-sdk group with 1 update: [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go).

- [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.1...sdk/azcore/v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: azure-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 14:48:26 -03:00
Andrew Harding 3ba6756fa7
Source binaries for linux artifacts from docker images (#4491)
* Source binaries for linux artifacts from docker images

This gives us static binaries linked against musl for our release
artifacts, unifying our libc dependency for both docker and non-docker
and simplifying our build tooling.

Since artifact building is now fairly complicated and really only part
of the CI/CD pipeline, got rid of the Makefile target for it.

Fixes: #4346

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-09-13 16:35:29 -07:00
Faisal Memon 7a5a528677
Populate and prune entry event table (#4411)
* Populate and prune entry event table

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-09-13 15:44:54 -07:00
Marcos Yacob 2b392e83f6
Add profile configuration to bundle endpoint (#4476)
* Add federation.bundle_endpoint.profile configuration

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-09-13 14:28:49 -07:00
dependabot[bot] c9998b6ea2
Bump actions/cache from 3.3.1 to 3.3.2 (#4487)
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](88522ab9f3...704facf57e)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-13 12:02:00 -07:00
dependabot[bot] 8d0bc9ac01
Bump docker/login-action from 2.2.0 to 3.0.0 (#4494)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](465a07811f...343f7c4344)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-13 10:30:55 -07:00
dependabot[bot] ade753c210
Bump docker/setup-qemu-action from 2.2.0 to 3.0.0 (#4493)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](2b82ce82d5...68827325e0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-13 09:41:36 -07:00
dependabot[bot] 789109ee1d
Bump docker/setup-buildx-action from 2.10.0 to 3.0.0 (#4492)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.10.0 to 3.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](885d1462b8...f95db51fdd)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-13 08:26:34 -07:00
Andres Vega 969e383d6a
Update ADOPTERS to include Google Cloud story.md (#4472)
* Update ADOPTERS to include Google Cloud story.md

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2023-09-12 19:21:02 -03:00
mjptree 4b0c6b5bac
[#4380] Allow custom entry ID in BatchCreateEntry (#4477)
* Allow specifying custom IDs when creating new registration entries

Signed-off-by: Michael Prantl <mprantl2@bloomberg.net>
2023-09-12 13:41:39 -07:00
dependabot[bot] 57fe6c0a31
Bump actions/dependency-review-action from 3.0.8 to 3.1.0 (#4486)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.8 to 3.1.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](f6fff72a32...6c5ccdad46)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 13:00:02 -07:00
Marcos Yacob 413d6f89e5
Upgrade to golang 1.21.1 (#4480)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-09-08 10:36:16 -03:00
dependabot[bot] 09bff405d3
Bump actions/upload-artifact from 3.1.2 to 3.1.3 (#4481)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](0b7f8abb15...a8a3f3ad30)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-07 12:41:35 -03:00
dependabot[bot] fd3f79b59b
Bump actions/checkout from 3.6.0 to 4.0.0 (#4478)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...3df4ab11eb)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 13:14:21 -03:00
moe-omar 6b22b00a81
azure key vault plugin (#4458)
* Add Azure key vault plugin

---------

Signed-off-by: mo omar <momar@confluent.io>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-09-04 12:35:37 -03:00
dependabot[bot] 7674234420
Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 (#4475)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](6e04d228eb...11086d2504)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 10:53:54 -03:00
Andrew Harding c3bb6e20c6
No longer return node alias entries to agents (#4467)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-09-02 16:46:38 -06:00
Daniel 0483126177
Implement structured logging for gRPC errors on SPIRE agent (#4262)
Signed-off-by: Neniel <11655196+Neniel@users.noreply.github.com>
2023-09-01 13:17:40 -06:00
Andrew Harding 54ffa0174f
Remove some k8s-workload-registrar vestiges (#4466)
- Removes rules in Makefile that are no longer needed
- Removes conf file that ended up in artifacts

Fixes #4460

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-09-01 12:16:23 -06:00
Andrew Harding 8e9d7282cc
Group dependabot updates for aws,google,k8s SDKs (#4471)
* Group dependabot updates for aws,google,k8s SDKs

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-09-01 12:28:08 -03:00
Andrew Harding f4d259ece7
Stricter container ID matching in K8s Workload Attestor (#4468)
The current regex groups are too loose in what they will accept as a
container ID. Tighten the regex's to only accept 64 hex digits as a
container ID.

Fixes #4088

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-08-31 13:45:28 -06:00
Andrew Harding ea2da7ad0f
Fix kubectl version detection in integration tests (#4470)
Newer versions of kubectl have removed the "--short" flag and produce
the output that was once provided by "--short".

To maintain compatabiliy for old versions of kubectl, this change
updates the the common script that detects whether or not kubectl needs
to be downloaded to instead output the version to JSON and uses jq to
extract the version.

Added some helpful diag output as well.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-08-31 12:55:46 -06:00
dependabot[bot] 4ad8393eab
Bump sigs.k8s.io/controller-runtime from 0.15.1 to 0.16.0 (#4454)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.15.1...v0.16.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 09:58:12 -06:00
dependabot[bot] 4b9c845d7d
Bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#4461)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](4c0219f9ac...885d1462b8)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 17:32:42 -06:00
dependabot[bot] d9f9f27f33
Bump actions/checkout from 3.5.3 to 3.6.0 (#4457)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](c85c95e3d7...f43a0e5ff2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 16:24:32 -06:00
dependabot[bot] e4ff9d21e8
Bump actions/setup-go from 4.0.1 to 4.1.0 (#4456)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4.0.1...93397bea11091df50f3d7e59dc26a7711a8bcfbe)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 14:50:55 -06:00
dependabot[bot] 7057ec7031
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.113.0 to 1.114.0 (#4453)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.113.0 to 1.114.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.113.0...service/ec2/v1.114.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 09:39:47 -06:00
Anil Chaurasia 2f54e7186f
Chore/aws partition support (#4427)
Signed-off-by: Anil Chaurasia <achaurasia@confluent.io>
2023-08-30 08:36:36 -06:00
Agustín Martínez Fayó c2be3cb7c5
Add table to store CA journal data (#4465)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-08-30 10:01:22 -03:00
Marcos Yacob 012f916b20
Force rotation: Implements JWT endpoints in local authority API (#4381)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-08-29 16:55:31 -06:00
Juan Pablo Cabaña 7a2dcfb314
Expose BatchEntryDelete On CLI (#4371)
Signed-off-by: JU4N98 <juanpablocabana2@gmail.com>
2023-08-29 16:04:49 -06:00
Federico Nahuel Quijada 7076b51c2f
K8s integration test with different k8s versions (#4376)
* Add k8s integration test with multiple versions

Signed-off-by: FedeNQ <fedenahuel07@gmail.com>
2023-08-24 10:49:01 -03:00
Raghu Kaippully dd57ddf1c2
workloadattestor systemd: dbus use of closed network connection (#4360)
* workloadattestor systemd: dbus use of closed network connection

Fixes #4315

The connection to system bus is shared and should not be closed after
use in order to avoid errors on concurrent usage.

It is typical to share the connection in the same process as per this
explanation:
https://github.com/godbus/dbus/issues/179#issuecomment-1006847775

In case of errors, this shared connection will detect that and attempt
to reconnect: https://github.com/godbus/dbus/blob/v5.1.0/conn.go#L124.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>

* Use a plugin level shared connection

...instead of a global shared one. This ensures that the connection is
never closed by any other library while this plugin is using it.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>

* Fix lint error - context must be the first parameter

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>

* incorporate review comments

- Implement `Close()` on the plugin to close the DBus connection
- Do not export `DBusConn` method
- Fix a comment

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>

---------

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-08-23 08:40:55 -03:00
Andrew Harding d57428aefe
Remove startup entry scan (#4449)
Quite some time ago we added a scan to first warn and then eventually
delete entries with invalid SPIFFE IDs. This scan is no longer needed,
since entries will have already been removed by previous upgrades and
can be removed.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-08-22 12:33:06 -06:00
dependabot[bot] 6a3aeaa2c5
Bump k8s.io/kube-aggregator from 0.27.4 to 0.28.0 (#4447)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.27.4 to 0.28.0.
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.27.4...v0.28.0)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 17:02:08 -03:00
Andrew Harding 4d96a37b82
Upgrade to go1.21.0 (#4450)
Also the go compiler version is now always reported with a patch version
so we can remove the whole go_version_full/go_version distinction in the
Makefile.

Fixed up the compiler tarball URL to match what is now present on the
Go downloads page.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-08-21 10:15:03 -03:00
Sorin Dumitru 940c1ea717
Add the ability to configure the refresh hint of the local bundle (#4400)
* spire-server: add support for configuring a static bundle refresh_hint

This allows us to move to a place where we are closer to the
recommendation of the SPIFFE spec which says that client of the trust
bundle endpoint should default to a low refresh interval to be able to
retrieve updated trust bundles in a timely manner.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-08-19 10:59:20 -03:00
dependabot[bot] 42dbc1d52f
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.112.0 to 1.113.0 (#4448)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.112.0 to 1.113.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.112.0...service/ec2/v1.113.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 19:11:07 -03:00
dependabot[bot] 5289f90e08
Bump google.golang.org/api from 0.137.0 to 0.138.0 (#4446)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.137.0 to 0.138.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.137.0...v0.138.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 15:06:27 -03:00
Ryan Turner 260465236f
Remove SDS v2 API (#4444)
The SDS v2 API has been removed for Envoy for several years. We cannot
reasonably support it any longer, and we expect most users should no
longer be using it anymore.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-08-18 09:36:07 -07:00
Andrew Harding e29ddf6ffe
Remove node selector cruft cleanup code (#4443)
SPIRE v1.6.3 introduced code to clean up node selector cruft in the database.
This code can be removed in v1.8.0.

Fixes: #3945

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-08-18 12:17:36 -03:00
dependabot[bot] 53e0abb92f
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#4442)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.3.0 to 1.3.1.
- [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.3.0...sdk/azcore/v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 11:03:10 -03:00
dependabot[bot] 97c0fc1918
Bump k8s.io/client-go from 0.27.4 to 0.28.0 (#4439)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.27.4 to 0.28.0.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.27.4...v0.28.0)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 09:49:57 -03:00
dependabot[bot] fbc674e588
Bump github.com/GoogleCloudPlatform/cloudsql-proxy (#4437)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.9 to 1.33.10.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.10/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.9...v1.33.10)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 18:08:46 -03:00
dependabot[bot] a25fcc6ff1
Bump cloud.google.com/go/storage from 1.31.0 to 1.32.0 (#4436)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.31.0 to 1.32.0.
- [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/pubsub/v1.31.0...pubsub/v1.32.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 17:21:27 -03:00
dependabot[bot] becabc3656
Bump actions/dependency-review-action from 3.0.7 to 3.0.8 (#4435)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](7d90b4f05f...f6fff72a32)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 16:31:30 -03:00
dependabot[bot] ee31d34285
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.111.0 to 1.112.0 (#4434)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.111.0 to 1.112.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.111.0...service/ec2/v1.112.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 12:45:16 -03:00
Ryan Turner c9693346d5
Update golangci-lint and Markdown linter (#4440)
Also fix new Markdown linter errors

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-08-17 11:53:17 -03:00
Marcos Yacob ae75a2d954
Bump version and CHANGELOG after v1.7.2 release (#4441)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-08-17 10:49:28 -03:00
dependabot[bot] 5aa2122fbc
Bump google.golang.org/api from 0.136.0 to 0.137.0 (#4433)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.136.0 to 0.137.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.136.0...v0.137.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 17:04:00 -03:00
dependabot[bot] 1aeb3097cb
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.7.0 to 1.7.1 (#4432)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.7.0 to 1.7.1.
- [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.0...sdk/azcore/v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 10:52:34 -03:00
dependabot[bot] b340c20596
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.110.1 to 1.111.0 (#4431)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.110.1 to 1.111.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.110.1...service/ec2/v1.111.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14 17:30:37 -03:00
dependabot[bot] 5775d0dafb
Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager (#4428)
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.20.1 to 1.21.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.21.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.20.1...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-11 10:58:55 -07:00
dependabot[bot] 2433a86abc
Bump actions/dependency-review-action from 3.0.6 to 3.0.7 (#4425)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.6 to 3.0.7.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](1360a344cc...7d90b4f05f)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-10 10:02:27 -07:00
Ryan Turner 0527653971
Update msys2/setup-msys2 GitHub Action (#4421)
This project generates releases by just creating a new release branch
without a corresponding semver tag, and changing the major version tag
to point to the release branch, which isn't enough for dependabot to
automatically detect the new versions,
see https://github.com/msys2/setup-msys2/issues/327

Manually update this step for now to the current commit pointed to by
the `v2` tag (`v2.20.0`): https://github.com/msys2/setup-msys2/tree/v2

Signed-off-by: Ryan Turner <turner@uber.com>
2023-08-09 12:24:37 -07:00
dependabot[bot] 78eb929681
Bump github.com/sigstore/sigstore from 1.7.1 to 1.7.2 (#4419)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.7.1...v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 11:16:32 -07:00
dependabot[bot] e33b42b15f
Bump google.golang.org/api from 0.134.0 to 0.136.0 (#4420)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.134.0 to 0.136.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.134.0...v0.136.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 10:31:23 -07:00
dependabot[bot] 7729ab41d6
Bump actions/setup-go from 4.0.1 to 4.1.0 (#4418)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](fac708d667...93397bea11)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 09:21:54 -07:00
dependabot[bot] fe79f26748
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.109.1 to 1.110.1 (#4416)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.109.1 to 1.110.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.109.1...service/ec2/v1.110.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 08:33:49 -07:00
Chirag Kapadia 49ead4e25e
Add telemetry instrumentation for delegated identity API and add latency telemetry util (#4399)
* Add telemetry instrumentation for delegated identity API and add latency telemetry util

Signed-off-by: chiragk25 <chirag.d.kapadia@gmail.com>
2023-08-08 17:31:26 -07:00
dependabot[bot] ceb07d878c
Bump golang.org/x/net from 0.13.0 to 0.14.0 (#4413)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 16:42:59 -07:00
Zachary M. Train 30a1fa3ea3
[docker buildx] Create tls context if needed (#4405)
Signed-off-by: Zack Train <ztrain@uber.com>
2023-08-08 14:49:16 -07:00
dependabot[bot] 149380af89
Bump golang.org/x/sys from 0.10.0 to 0.11.0 (#4409)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 13:48:39 -07:00
dependabot[bot] edc3ab5f5d
Bump sigs.k8s.io/controller-runtime from 0.15.0 to 0.15.1 (#4412)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.15.0...v0.15.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 13:04:35 -07:00
Faisal Memon 4afdef4d91
Add entry and node event tables (#4379)
* Add entry and node event tables

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
2023-08-04 11:04:41 -03:00
Sorin Dumitru ac7169b260
spire-server: marshall sequence_number for trust bundles (#4389)
The CLI worked ok, it was using the Marshaller from go-spiffe,
but this one didn't set the sequence number to anything. We now
also include the sequence number in the bundle endpoint.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-08-04 09:47:19 -03:00
Fabian Kammel 07e9e69748
Fix IP typo in AWS IID agent config documentation. (#4407)
Signed-off-by: Fabian Kammel <fabian.kammel@control-plane.io>
2023-08-03 15:24:06 -03:00
dependabot[bot] e0a5ad4115
Bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.27.1 to 1.38.1 (#4404)
Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) from 1.27.1 to 1.38.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.27.1...service/s3/v1.38.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 11:45:35 -03:00
dependabot[bot] 264a40c6f1
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.108.1 to 1.109.1 (#4402)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.108.1 to 1.109.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.108.1...service/ec2/v1.109.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 09:59:20 -03:00
dependabot[bot] e2b80e0c97
Bump github.com/google/go-containerregistry from 0.15.2 to 0.16.1 (#4406)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.15.2 to 0.16.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.15.2...v0.16.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 08:37:47 -03:00
dependabot[bot] 63352e764c
Bump golang.org/x/net from 0.12.0 to 0.13.0 (#4401)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 17:48:35 -07:00
dependabot[bot] c7ea16c179
Bump github.com/open-policy-agent/opa from 0.54.0 to 0.55.0 (#4403)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.54.0 to 0.55.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.54.0...v0.55.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 13:34:49 -07:00
Agustín Martínez Fayó 867a000e40
Introduce the `aws_s3` BundlePublisher plugin (#4355)
* Introduce the `aws_s3` BundlePublisher plugin

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-08-02 15:07:10 -03:00
dependabot[bot] 7a10f4a315
Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager (#4398)
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.19.0 to 1.20.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.19.0...service/ecs/v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 16:52:33 -07:00
dependabot[bot] 0050b97c5f
Bump github.com/aws/aws-sdk-go-v2/service/acmpca from 1.21.0 to 1.22.1 (#4397)
Bumps [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) from 1.21.0 to 1.22.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.21.0...service/eks/v1.22.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 16:05:39 -07:00
dependabot[bot] d593d92c7b
Bump github.com/shirou/gopsutil/v3 from 3.23.6 to 3.23.7 (#4393)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.6 to 3.23.7.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.6...v3.23.7)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 14:51:48 -07:00
dependabot[bot] 4f00f30642
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.23.0 to 1.24.1 (#4396)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.23.0...service/s3/v1.24.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 13:55:48 -07:00
dependabot[bot] 1315deef55
Bump github.com/aws/aws-sdk-go-v2/service/iam from 1.21.0 to 1.22.0 (#4391)
Bumps [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.21.0...service/s3/v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 11:38:12 -07:00
dependabot[bot] ec8889fa12
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.19.2 to 1.21.0 (#4387)
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.19.2 to 1.21.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.19.2...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-31 18:26:50 -03:00
dependabot[bot] 665e389d95
Bump k8s.io/kube-aggregator from 0.27.3 to 0.27.4 (#4386)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.27.3 to 0.27.4.
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.27.3...v0.27.4)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 12:36:52 -07:00
dependabot[bot] 9460a18e7f
Bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#4382)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.57.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 11:45:22 -07:00
dependabot[bot] a4f4d5fc0a
Bump google.golang.org/api from 0.130.0 to 0.134.0 (#4369)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.130.0 to 0.134.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.130.0...v0.134.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 09:24:04 -03:00
dependabot[bot] fb16767db4
Bump github.com/docker/docker (#4362)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.4+incompatible to 24.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.4...v24.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 00:51:40 -03:00
dependabot[bot] 9b5f273b1b
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.8 to 1.33.9 (#4350)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.8 to 1.33.9.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.9/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.8...v1.33.9)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 00:00:56 -03:00
dependabot[bot] 1a4a2bc7b0
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.102.0 to 1.108.1 (#4377)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.102.0 to 1.108.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.102.0...service/ec2/v1.108.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 22:44:37 -03:00
dependabot[bot] a39aec1d9f
Bump github.com/hashicorp/vault/sdk from 0.9.1 to 0.9.2 (#4361)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 15:24:16 -03:00
Tomoya Usami 8af212c8f9
Suppress excess activation (#4368)
Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
2023-07-28 13:13:37 -03:00
Agustín Martínez Fayó 57217ef3a0
Add 1.7.1 and v1.6.5 to the Changelog (#4347) (#4373)
* Add 1.7.1 and v1.6.5 to the Changelog

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-07-28 11:48:34 -03:00
Agustín Martínez Fayó afccb49eb7
Bump version to 1.7.2 (#4374)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-07-28 10:13:56 -03:00
voltagex b805d75ea6
Add link to lib/pq documentation as part of the DataStore docs (#4336)
* Add link to lib/pq documentation as part of the DataStore docs

I needed the URI-style connection string information and it took me a moment to find out that SPIRE used lib/pq under the covers, so I've added a link in the same style as the MySQL connection string info.
Signed-off-by: Adam Baxter <github@voltagex.org>

Signed-off-by: Adam Baxter <github@voltagex.org>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-07-27 11:49:38 -07:00
Kumar-Abhishek d4a3d9e70c
changes to support ppc64le ARCH build (#4343)
Signed-off-by: Kumar-Abhishek <kumar.abhishek2@ibm.com>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-07-27 08:38:40 -07:00
Andrew Harding 3f553e3a31
Allow digitalSignature key usage on signing certs (#4352)
Turns out `aws_pca` sets digitalSignature on subordinate certificates.

The browser forum also has digitalSignature as a minimum requirement for
CAs that sign OCSP responses.

Fixes: #4351

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-07-26 14:39:46 -07:00
dependabot[bot] a5050efd52
Bump cloud.google.com/go/kms from 1.12.1 to 1.15.0 (#4356)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.12.1 to 1.15.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.12.1...kms/v1.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 14:23:48 -03:00
dependabot[bot] a61677e05e
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.6.1 to 1.7.0 (#4338)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.6.1 to 1.7.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.6.1...sdk/azcore/v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 13:26:29 -03:00
Marcos Yacob fcf921e9b0
Force Rotation: local authority scaffolding and implements X.509 authority endpoints (#4020)
* Create local authority scaffolding, and implements X.509 local authority service

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-07-21 17:50:22 -03:00
Agustín Martínez Fayó b8effd4d10
Move code from experimental.go to node.go (#4354)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-07-21 11:15:27 -03:00
hugordon7 a3d3cb8d38
[SPIRE Agent] add telemetry around LRU cache entry operations (#4335)
* [SPIRE Agent] add telemetry around LRU cache entry operations

Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
Co-authored-by: gordonhu7 <hu.gordon@hotmail.com>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-07-20 12:02:30 -07:00
dependabot[bot] 00909f24c7
Bump docker/setup-buildx-action from 2.8.0 to 2.9.1 (#4337)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](16c0bc4a6e...4c0219f9ac)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 13:42:45 -03:00
dependabot[bot] fe0eae1a30
Bump google.golang.org/grpc from 1.56.1 to 1.56.2 (#4332)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.1 to 1.56.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.1...v1.56.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 11:34:24 -03:00
Tomoya Usami a367d5b497
Add token renewal test (#4330)
Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-07-18 11:59:06 -07:00
Carlo Teubner 75047c61b5
agent, server: add option to log source location (#4246)
Add an option to both agent and server to enable logging of the source
location (file name, line number, function name).

This new option is available both via the configuration file and as a
command-line flag.

Signed-off-by: Carlo Teubner <carlo@cteubner.net>
2023-07-13 12:52:09 -06:00
dependabot[bot] 3117f7b007
Bump github.com/googleapis/gax-go/v2 from 2.11.0 to 2.12.0 (#4323)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.11.0 to 2.12.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.11.0...v2.12.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-09 12:23:47 -07:00
dependabot[bot] d0628424ad
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.22.2 to 1.23.0 (#4322)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.22.2 to 1.23.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/eks/v1.22.2...service/s3/v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-09 11:00:30 -07:00
dependabot[bot] db5c1d56ce
Bump github.com/docker/docker (#4328)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.2+incompatible to 24.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.2...v24.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 16:50:07 -07:00
dependabot[bot] 727fd18353
Bump google.golang.org/api from 0.129.0 to 0.130.0 (#4321)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.129.0 to 0.130.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.129.0...v0.130.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 14:33:02 -07:00
dependabot[bot] 9bc0ef5a3e
Bump golang.org/x/net from 0.11.0 to 0.12.0 (#4320)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 12:58:37 -07:00
Agustín Martínez Fayó 5fda947772
Skip TestTLSConfig for now (#4327)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-07-07 12:09:37 -07:00
dependabot[bot] 8ed5edbcba
Bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#4319)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/crypto/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 15:00:31 -07:00
Ryan Turner 03a2f9e79d
Update to github.com/cenkalti/backoff/v4 (#4314)
The only breaking changes between v3 and v4 are the behavior when using
MaxElapsedTime, which we don't use. v3 is no longer being maintained, so
use the latest version.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-07-06 14:15:58 -07:00
Marcos Yacob f80423d09c
Upgrade to latest sigstore (#4318)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-07-05 14:34:09 -03:00
Guilherme Carvalho d1c58f8086
Serving cert file OIDC provider (#4190)
* Add disk cert manager

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-07-03 17:19:45 -07:00
dependabot[bot] b1fd46b6f9
Bump k8s.io/kube-aggregator from 0.27.2 to 0.27.3 (#4313)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.27.2 to 0.27.3.
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.27.2...v0.27.3)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 15:58:02 -07:00
dependabot[bot] 7bdd9b8ace
Bump google.golang.org/api from 0.128.0 to 0.129.0 (#4312)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.128.0 to 0.129.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.128.0...v0.129.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 15:00:27 -07:00
dependabot[bot] fa3239d588
Bump github.com/shirou/gopsutil/v3 from 3.23.5 to 3.23.6 (#4311)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.5 to 3.23.6.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.5...v3.23.6)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 14:05:16 -07:00
prasadborole1 66c518cefa
[SPIRE Agent] Add size based backoff strategy for fetchSVIDs (#4279)
* [SPIRE Agent] Add size based backoff strategy for fetchSVIDs

Signed-off-by: Prasad Borole <prasadb@uber.com>
2023-07-03 12:14:05 -07:00
dependabot[bot] d18b74c3b3
Bump github.com/google/go-tpm-tools (#4310)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.3.13-0.20230620182252-4639ecce2aba to 0.4.0.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Changelog](https://github.com/google/go-tpm-tools/blob/master/.goreleaser.yaml)
- [Commits](https://github.com/google/go-tpm-tools/commits/v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 10:56:29 -07:00
Aaron Kaloti 3ac0f61744
`agent show` command shows correct re-attest value (#4288)
Signed-off-by: Aaron Kaloti <aarons.7007@gmail.com>
2023-07-01 19:36:37 -03:00
Carlo Teubner dddea72f63
agent: fix JWT cache (#4309)
The JWT cache in the agent has a bug whereby we do not distinguish
between audience sets {"ab", "cd"} and {"a", "bcd"} (for example) due to
the way we build the cache keys.

Fix this.

Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
2023-06-30 15:43:31 -07:00
dependabot[bot] f9a8db585e
Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 (#4307)
* Bump google.golang.org/protobuf from 1.30.0 to 1.31.0

Bumps google.golang.org/protobuf from 1.30.0 to 1.31.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-06-30 14:31:42 -07:00
dependabot[bot] 94d37a86ed
Bump github.com/google/go-tpm from 0.3.3 to 0.9.0 (#4302)
* Bump github.com/google/go-tpm from 0.3.3 to 0.9.0

Bumps [github.com/google/go-tpm](https://github.com/google/go-tpm) from 0.3.3 to 0.9.0.
- [Release notes](https://github.com/google/go-tpm/releases)
- [Commits](https://github.com/google/go-tpm/compare/v0.3.3...v0.9.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-06-30 13:48:02 -07:00
Ryan Turner 99afcff55b
Ignore patch updates for GCP SDK modules (#4304)
GCP SDK modules update quite frequently, but we don't usually make many
changes to the GCP plugins that require SDK updates. We want to stay
relatively up-to-date, but it is very rare that we need a specific
feature/fix from a patch update. Updating to each new patch version is
time consuming from a maintenance standpoint, with little to no benefit.

We already do this for AWS SDK modules, which have a similar cadence of
updates.
Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-30 12:47:59 -07:00
dependabot[bot] 82e1fe0d06
Bump cloud.google.com/go/storage from 1.30.1 to 1.31.0 (#4301)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.30.1 to 1.31.0.
- [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/pubsub/v1.30.1...pubsub/v1.31.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 16:59:20 -07:00
dependabot[bot] db88870127
Bump github.com/aws/aws-sdk-go-v2/service/iam from 1.20.0 to 1.21.0 (#4303)
Bumps [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.20.0...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 16:03:38 -07:00
dependabot[bot] e67051507b
Bump sigstore/cosign-installer from 3.0.5 to 3.1.1 (#4295)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.5 to 3.1.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](dd6b2e2b61...6e04d228eb)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 10:35:39 -07:00
dependabot[bot] 425257c7d9
Bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#4299)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](ecf95283f0...16c0bc4a6e)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 09:42:02 -07:00
Ryan Turner 7f1f1f000a
Bump generated test certificate TTLs to 1 hour (#4298)
Tests relying on these certs have been seen to fail due to the certs
expiring during the test run when run in GitHub infrastructure. Increase
the cert TTL to be more accommodating to longer-running tests and test
environments where there may be larger clock skew out of our control.
Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-29 08:39:40 -07:00
dependabot[bot] c26b73cd7b
Bump cloud.google.com/go/secretmanager from 1.11.0 to 1.11.1 (#4292)
Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.11.0...asset/v1.11.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 20:56:00 -07:00
dependabot[bot] b95425877f
Bump cloud.google.com/go/security from 1.15.0 to 1.15.1 (#4291)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/video/v1.15.0...speech/v1.15.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 16:40:37 -07:00
dependabot[bot] d7cf60d270
Bump golang.org/x/sync from 0.2.0 to 0.3.0 (#4293)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/golang/sync/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 12:02:39 -07:00
dependabot[bot] 02955a378a
Bump github.com/googleapis/gax-go/v2 from 2.10.0 to 2.11.0 (#4286)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.10.0...v2.11.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 20:53:14 -03:00
dependabot[bot] dbf8c5a225
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.99.0 to 1.102.0 (#4278)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.99.0 to 1.102.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.99.0...service/ec2/v1.102.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 19:13:58 -03:00
dependabot[bot] 8a44872e54
Bump google.golang.org/grpc from 1.55.0 to 1.56.1 (#4282)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.55.0 to 1.56.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.55.0...v1.56.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 17:28:43 -03:00
dependabot[bot] 0be8b51467
Bump k8s.io/client-go from 0.27.2 to 0.27.3 (#4277)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.27.2 to 0.27.3.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.27.2...v0.27.3)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 14:59:54 -03:00
Sorin Dumitru fe1339d146
Don't waste time looking for the entry id when we already know it (#4211)
It looks like in most cases when the agent is looking for a SPIFFE ID it
has to go from selectors to entry to SPIFFE ID and then again from SPIFFE
ID to entry to get the entry id to put in the request (which also involves
fetch all the cached entries, sorting them and then iterating through them
to find one that matches the SPIFFE ID). This seems a bit inefficient.

I think the previous logic was also a bit weird since we lost some precision
going from entry (determined by selectors and contains other information) to
SPIFFE ID and again to picking the first entry that has that SPIFFE ID (which
could be a different one, with different attributes such as `isAdmin`). It
could maybe be considered a security issue, but I don't think anyone would do
something like that (same SPIFFE-ID on admin and non-admin entries).

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-06-26 10:19:04 -06:00
dependabot[bot] 145545fb55
Bump github.com/prometheus/client_golang from 1.15.1 to 1.16.0 (#4274)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.15.1 to 1.16.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.15.1...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 11:17:22 -03:00
dependabot[bot] aaf53c4026
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.7 to 1.33.8 (#4273)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.7 to 1.33.8.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.8/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.7...v1.33.8)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 10:13:43 -03:00
Ryan Turner 9ea743ff69
admin-endpoints integration test fixes (#4269)
- Directly pipe output of `spire-server bundle show` to `spire-server
  bundle set` to avoid synchronization delays between host paths and
  mounts in the containers, which is known to be notoriously slow on
  macOS. The current approach of using an intermediate file for the
  bundle saved in a host path mounted by the spire-server containers
  causes this test to consistently fail on my Mac.
- Fix federation config, which had an incorrect endpoint address and
  trust domain name for one of the servers.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-26 08:55:13 -03:00
Marcos Yacob 41f8beb5fe
Upgrade golangci-lint to 1.53.3 (#4266)
* Upgrade golangci-lint to 1.53.3

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-21 11:06:51 -03:00
dependabot[bot] 6f747de0f0
Bump cloud.google.com/go/kms from 1.11.0 to 1.12.0 (#4258)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.11.0...kms/v1.12.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 12:24:49 -06:00
dependabot[bot] 061cd2f1ad
Bump google.golang.org/api from 0.126.0 to 0.128.0 (#4267)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.126.0 to 0.128.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.126.0...v0.128.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 11:26:11 -03:00
dependabot[bot] fa5edb8291
Bump docker/setup-buildx-action from 2.6.0 to 2.7.0 (#4257)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](6a58db7e0d...ecf95283f0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:57:09 -03:00
dependabot[bot] 81b418d52c
Bump golang.org/x/net from 0.10.0 to 0.11.0 (#4253)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 20:43:10 -03:00
dependabot[bot] d3267e9e89
Bump actions/checkout from 3.5.2 to 3.5.3 (#4249)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 10:58:59 -03:00
Ryan Turner 654c470cb9
Fix test on server bind address (#4260)
The test verifies that errors thrown by `net.ResolveTCPAddr()` are
handled and fail server startup. The test case used a string that could
be interpreted as a valid hostname, and `net.ResolveTCPAddr()` allows
hostnames to be used in the address. In some cases, it was noticed that
this test can fail because `net.ResolveTCPAddr()` treats the address as
valid.

Change the address to be something that's not a valid IP address or a
valid hostname to prevent flakiness.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-16 17:58:23 -03:00
Guilherme Carvalho eec471a8f6
Fix spire server run command tests (#4250)
* Fix spire server run command tests

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-06-16 17:12:51 -03:00
Ryan Turner 2cba7355a4
Use server-generated timestamps in fakedatastore (#4209)
* Use server-generated timestamps in fakedatastore

The server sqlstore was rounding CreatedAt timestamps in the model
object returned back to the client based on the timestamp generated
by the datastore. This rounding logic was added to handle precision
limitations in MySQL 5.7 such that tests could compare created
objects with ones queried from the datastore. Some CI runs of tests
using datastore functionality have uncovered that this rounding logic
does not always produce the same timestamp as the datastore.

Since this rounding is only needed by tests, instead rely on
server-generated timestamps in the test process when using the
fakedatastore. This will guarantee that the CreatedAt timestamps
typically generated by the datastore are always consistent
between the Create and Get/List datastore calls.

Provide this through an undocumented config field in sqlstore that
only is intended to be used by the fakedatastore in tests.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-16 16:21:32 -03:00
Guilherme Carvalho 4de82c8dfb
Add integration test for oidc discovery provider (#4239)
* Add integration test for oidc discovery provider

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-06-16 15:20:47 -03:00
Marcos Yacob f483d76f09
Bump version and Changelog after v1.7.0 release (#4263)
* Bump version and Changelog after v1.7.0 release

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-15 14:09:58 -03:00
Ryan Turner d3d6164e43
Produce serial number selector in x509pop NodeAttestor (#4216)
* Produce serial number selector in x509pop NodeAttestor

The serial number of an X.509 certificate is supposed to be unique and
may be a useful way to organize authorized workload entries.

Signed-off-by: Ryan Turner <turner@uber.com>

* Represent serial number as hex

Signed-off-by: Ryan Turner <turner@uber.com>

* Document x509pop serialnumber selector and Agent SPIFFE ID path template parameter

Also remove mention of Subject.CommonName as a path template field, as
it is different from the certificate serial number.

Signed-off-by: Ryan Turner <turner@uber.com>

* Fix agent ID path template field name

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-06-14 12:01:49 -07:00
Marcos Yacob 7cc9dad87f
Start to use TrustDomain Name function when required (#4245)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-12 11:27:59 -03:00
dependabot[bot] c1d8ce05cb
Bump google.golang.org/api from 0.125.0 to 0.126.0 (#4247)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.125.0 to 0.126.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.125.0...v0.126.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 16:42:52 -03:00
dependabot[bot] dc46e1e6da
Bump docker/setup-buildx-action from 2.5.0 to 2.6.0 (#4243)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](4b4e9c3e2d...6a58db7e0d)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-09 14:52:43 -03:00
dependabot[bot] 33f6c6dbcd
Bump docker/setup-qemu-action from 2.1.0 to 2.2.0 (#4242)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](e81a89b173...2b82ce82d5)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-09 13:07:51 -03:00
Marcos Yacob 1a591c966c
Force Rotation: Add status to journal (#4188)
* Refactor journal to store an Status field

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-09 10:39:11 -03:00
Ryan Turner 30d23d3cfa
Add recommendation to contributing documentation for publishing issue (#4235)
Suggest to prospective contributors to create an issue prior to sending
changes in order to ensure there is good alignment and scoping on
proposed changes before reviewing detailed implementation.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-09 09:25:56 -03:00
Ryan Turner c487ea0df5
Set up stale GitHub action to process old, inactive issues (#4225)
* Set up stale GitHub action to process old, inactive issues

Initially tune the stale bot with conservative windows for marking
issues as stale and closing stale issues. Ignore PRs for now.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-08 19:28:58 -03:00
Ryan Turner 4aedb8fdf0
Bump unit test timeout to 90 seconds (#4222)
Some packages in the unit test suite, such as `./pkg/server/datastore/sqlstore`,
can take longer than 60 seconds to execute in resource-constrained
environments. We have observed that when unit tests are run on GitHub-hosted
runners the tests can take a while to execute.

Loosen the package-level unit test timeout to 90 seconds to extend some
grace to environments with limited resources and avoid flaky test run
failures.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-08 18:08:37 -03:00
dependabot[bot] da29e3dc63
Bump docker/login-action from 2.1.0 to 2.2.0 (#4241)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](f4ef78c080...465a07811f)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 17:28:25 -03:00
dependabot[bot] 38e8f48e93
Bump github.com/aws/aws-sdk-go-v2/service/iam from 1.19.0 to 1.20.0 (#4237)
Bumps [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.19.0...service/s3/v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 14:56:14 -03:00
dependabot[bot] e25057ae9a
Bump github.com/spiffe/go-spiffe/v2 from 2.1.5 to 2.1.6 (#4234)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.5...v2.1.6)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 13:40:12 -03:00
dependabot[bot] 5e547e7138
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.6.0 to 1.6.1 (#4238)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.6.0 to 1.6.1.
- [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.6.0...sdk/azcore/v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 12:10:23 -03:00
dependabot[bot] 2cb31d0ebe
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.21.1 to 1.22.0 (#4233)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.21.1 to 1.22.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/eks/v1.21.1...service/s3/v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 11:22:09 -03:00
dependabot[bot] c74f331828
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.97.0 to 1.99.0 (#4223)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.97.0 to 1.99.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.97.0...service/ec2/v1.99.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 10:06:27 -03:00
Andrew Harding a5137c0b15
Delay parsing pod info in k8s workload attestation (#4240)
Signed-off-by: Szilard Vincze <szilard.vincze@est.tech>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Szilard Vincze <szilard.vincze@est.tech>
2023-06-07 13:30:14 -06:00
Marcos Yacob 0ad8906783
Upgrade to Golang 1.20.5 (#4236)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-07 11:23:23 -03:00
Marcos Yacob 9d1dc74171
deprecate support to Envoy SDS v2 API (#4228)
* deprecate support to Envoy SDS v2 API

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-06 17:16:34 -03:00
Marcos Yacob a67ea799a1
Remove Journal logic to migrate old json format into proto format (#4230)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-06 14:02:44 -03:00
Ryan Turner fad33d5bc6
Run upgrade integration test on arm64 (#4226)
The upgrade test couldn't run on arm64 until v1.7.0 because it relies on
the release Docker images from the previous minor release series to all
be available for arm64. The project started publishing Docker release
images for arm64 starting in v1.6.0, so this test can be re-enabled for
arm64 architecture now.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-06 10:15:08 -03:00
dependabot[bot] 897d19d246
Bump cloud.google.com/go/secretmanager from 1.10.1 to 1.11.0 (#4221)
Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.1...kms/v1.11.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 20:19:51 -03:00
dependabot[bot] dd0334cbe9
Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 (#4218)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 17:07:47 -03:00
dependabot[bot] 8582f7aec4
Bump github.com/hashicorp/vault/sdk from 0.9.0 to 0.9.1 (#4184)
* Bump github.com/hashicorp/vault/sdk from 0.9.0 to 0.9.1

Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix reading of unused config keys in HCL parsing

The upgrade to github.com/hashicorp/vault/sdk v0.9.1 introduces a
downstream dependency on a branch of github.com/hashicorp/hcl that has a
different behavior for reading in unrecognized config fields from HCL.
The mainline version of HCL v1 reads these unrecognized fields as a
`[]string` into a struct field tagged with the name `unusedKeys`,
but the new version reads them as a `map[string][]token.Pos` into a struct
field tagged with the name `unusedKeyPositions`.

Fix all the affected spots in the code that handle unrecognized HCL
config fields, and sort the field names for consistent unit test
execution results, since maps with a string key type in Go don't guarantee
any stable ordering of the keys in the map.
Signed-off-by: Ryan Turner <turner@uber.com>

* upgreade hashicorp go-plugin

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-06-05 15:35:04 -03:00
Ryan Turner 390e07c1dd
Fix flaky AttestAgent tests (#4217)
There is some asynchrony to how gRPC handles Postprocess interceptor
callbacks for bi-directional streaming APIs that results in race
conditions around when audit log messages are emitted by the audit log
middleware. This causes a lot of flakiness of ordering of log messages
received and the sequencing of when those audit logs are received by the
test logrus hook when the tests are run on CI. Resetting the entries
received by the logger hook in-between calls to AttestAgent in the test
is not enough to work around this asynchrony.

Rather than depending on the logs to come in a specific order and
timeframe, instead match all the expected log messages from the gRPC
server in any order rather than just the ones from the last call to
AttestAgent.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-06-03 16:25:20 -07:00
dependabot[bot] 6215bca0dc
Bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17 (#4214)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.16 to 1.14.17.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.16...v1.14.17)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 15:10:31 -07:00
dependabot[bot] 673f7b92c1
Bump github.com/spiffe/go-spiffe/v2 from 2.1.4 to 2.1.5 (#4202)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.4...v2.1.5)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 13:10:44 -07:00
dependabot[bot] a9b04a0ff8
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#4199)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 10:13:28 -07:00
dependabot[bot] c17c4d5d8c
Bump github.com/shirou/gopsutil/v3 from 3.23.4 to 3.23.5 (#4201)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.4 to 3.23.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.4...v3.23.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 17:20:49 -07:00
dependabot[bot] d2c1552397
Bump cloud.google.com/go/iam from 1.0.1 to 1.1.0 (#4200)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/iam/v1.0.1...dlp/v1.1.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 16:20:32 -07:00
dependabot[bot] 9a81ca9c57
Bump actions/dependency-review-action from 3.0.4 to 3.0.6 (#4198)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](f46c48ed6d...1360a344cc)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 11:28:19 -07:00
dependabot[bot] 1cfb153d16
Bump github.com/google/go-tpm-tools from 0.3.11 to 0.3.12 (#4196)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.3.11...v0.3.12)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 08:59:21 -07:00
dependabot[bot] 482f01ecc6
Bump sigs.k8s.io/controller-runtime from 0.14.6 to 0.15.0 (#4192)
* Bump sigs.k8s.io/controller-runtime from 0.14.6 to 0.15.0

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.6 to 0.15.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.6...v0.15.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix usage of k8s controller-runtime fakeClient

sigs.k8s.io/controller-runtime introduced a breaking change in the
fake client to by default only allow updating of status subresources
in objects shipped in K8s that are known to have the status subresource.
Custom resources that have a status subresource need to register this
object in the fake client builder in order to dynamically update the
status subresource in the test.

This behavior change broke the expectations of the certmanager
upstreamauthority plugin tests that relied on this old behavior of
the fake controller client allowing any resource to have its status
subresource updated. Update the initialization of the fake client to
register the custom `CertificateRequest` object that has a status
subresource, such that it can continue to be updated by tests.
Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-05-31 15:07:33 -07:00
dependabot[bot] 3e3293a45d
Bump cloud.google.com/go/security from 1.14.1 to 1.15.0 (#4195)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.14.1 to 1.15.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/speech/v1.14.1...video/v1.15.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 13:18:56 -07:00
dependabot[bot] 7d45e01b9b
Bump cloud.google.com/go/kms from 1.10.2 to 1.11.0 (#4197)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.10.2 to 1.11.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.2...kms/v1.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 11:54:32 -07:00
dependabot[bot] 408af569cb
Bump github.com/hashicorp/vault/api from 1.9.1 to 1.9.2 (#4191)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.9.1...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-30 18:17:23 -07:00
dependabot[bot] 034398a581
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.6 to 1.33.7 (#4193)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.6 to 1.33.7.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.7/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.6...v1.33.7)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-30 17:15:26 -07:00
dependabot[bot] 6b532e819f
Bump github.com/sigstore/rekor from 1.1.1 to 1.2.1 (#4186)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.1.1 to 1.2.1.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.1.1...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-30 09:39:34 -03:00
dependabot[bot] a8aa321ca2
Bump github.com/envoyproxy/go-control-plane from 0.11.0 to 0.11.1 (#4185)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.11.0...v0.11.1)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 18:31:57 -03:00
dependabot[bot] b8b1553ba2
Bump github.com/open-policy-agent/opa from 0.52.0 to 0.53.0 (#4183)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.52.0...v0.53.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 15:39:11 -03:00
dependabot[bot] 595e15df52
Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#4179)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/crypto/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 14:47:54 -03:00
dependabot[bot] 6a10ef56c8
Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2 (#4181)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.2.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 12:40:53 -03:00
dependabot[bot] 1af6ece92c
Bump google.golang.org/api from 0.123.0 to 0.124.0 (#4177)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.123.0 to 0.124.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.123.0...v0.124.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 11:09:31 -03:00
dependabot[bot] a0c5ba34fc
Bump k8s.io/kube-aggregator from 0.27.1 to 0.27.2 (#4178)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.27.1 to 0.27.2.
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.27.1...v0.27.2)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-26 19:40:50 -03:00
dependabot[bot] 826ba55107
Bump github.com/docker/docker from 23.0.6+incompatible to 24.0.2+incompatible (#4180)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.6+incompatible to 24.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.6...v24.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update expected Docker API version

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-05-26 15:36:23 -03:00
dependabot[bot] 7fec1ed196
Bump cloud.google.com/go/secretmanager from 1.10.0 to 1.10.1 (#4173)
Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.0...kms/v1.10.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-25 00:48:46 -03:00
dependabot[bot] be5ae88ed3
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#4174)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.2.2 to 1.3.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/azidentity/v1.2.2...sdk/azcore/v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 23:18:16 -03:00
dependabot[bot] dbd7bc25f5
Bump golang.org/x/net from 0.9.0 to 0.10.0 (#4176)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/net/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 17:48:51 -03:00
Raghu Kaippully 5f75f54b15
Systemd workloadattestor closes DBus connection too early (#4165)
This PR fixes is a bug in the systemd workload attestor. In
`getSystemdUnitInfo`, the DBus connection is closed via a `defer`. But
that connection is required later to retrieve the `ID()` and
`FragmentPath()` in the `Attest` function. This causes attestation
failures with an error message `dbus: connection closed by user`.

The fix extracts the required selector attributes early and avoids
using the dangling connection to DBus.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
2023-05-24 13:49:24 -06:00
dependabot[bot] e0605c8d01
Bump sigstore/cosign-installer from 3.0.3 to 3.0.5 (#4161)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.3 to 3.0.5.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](204a51a57a...dd6b2e2b61)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 14:11:01 -03:00
dependabot[bot] 2f46f71240
Bump github.com/googleapis/gax-go/v2 from 2.8.0 to 2.9.1 (#4172)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.8.0...v2.9.1)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 10:23:00 -03:00
dependabot[bot] 99bc41fd5b
Bump k8s.io/client-go from 0.27.1 to 0.27.2 (#4169)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.27.1 to 0.27.2.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.27.1...v0.27.2)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 08:33:04 -03:00
dependabot[bot] 243f709166
Bump github.com/docker/distribution (#4153)
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](https://github.com/docker/distribution/compare/v2.8.1...v2.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 07:24:20 -03:00
dependabot[bot] f9ef99ada7
Bump cloud.google.com/go/iam from 1.0.0 to 1.0.1 (#4168)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.0.0...iam/v1.0.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 00:13:43 -03:00
Guilherme Carvalho 0e010bf4da
Add node re-attestation integration tests (#4150)
* Add node re-attestation it tests

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-05-23 23:17:48 -03:00
dependabot[bot] 0318050dbe
Bump actions/setup-go from 4.0.0 to 4.0.1 (#4156)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](4d34df0c23...fac708d667)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 13:50:36 -03:00
dependabot[bot] a5fd7f7fec
Bump cloud.google.com/go/security from 1.14.0 to 1.14.1 (#4158)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/video/v1.14.0...speech/v1.14.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 18:59:54 -03:00
dependabot[bot] 431cbef53a
Bump k8s.io/api from 0.27.1 to 0.27.2 (#4166)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.27.1 to 0.27.2.
- [Commits](https://github.com/kubernetes/api/compare/v0.27.1...v0.27.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 18:00:51 -03:00
dependabot[bot] e7e1b3b9e9
Bump github.com/cloudflare/circl from 1.1.0 to 1.3.3 (#4152)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.1.0 to 1.3.3.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.1.0...v1.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 17:17:52 -03:00
dependabot[bot] ac45159f21
Bump cloud.google.com/go/kms from 1.10.1 to 1.10.2 (#4149)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.10.1 to 1.10.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.10.1...kms/v1.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 11:55:46 -03:00
dependabot[bot] cf192bd521
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.18.11 to 1.19.0 (#4148)
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.18.11 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/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.11...service/s3/v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 10:03:24 -03:00
Max Lambrecht 8275f140ff
Add support for multiple public certificates to AWS IID node attestor (#4124)
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
2023-05-19 16:01:54 -06:00
Andrew Harding 2629aac9f5
Bump version and CHANGELOG after v1.6.4 release (#4160)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-05-19 14:32:42 -06:00
Guilherme Carvalho e62ab49902
Create integration tests for svidstore (#4117)
* Create IT tests for svidstore core logic

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-05-16 11:04:58 -03:00
dependabot[bot] dc765622b5
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.96.1 to 1.97.0 (#4146)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.96.1 to 1.97.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.96.1...service/ec2/v1.97.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-15 15:46:08 -06:00
dependabot[bot] 913a2a922a
Bump github.com/docker/docker (#4145)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.5+incompatible to 23.0.6+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.5...v23.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-15 13:29:02 -06:00
Andrew Harding c2383d934d
Update expired dummy upstream CA certificate (#4155)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-05-15 00:09:06 -03:00
Ryan Turner 95a7dc0879
Publish arm64 artifacts in release and PR builds for Linux (#4143)
* Publish arm64 artifacts in release and PR builds for Linux

The project started publishing release Docker images for Linux arm64 starting
in SPIRE v1.6.0, but the Linux release binary artifacts were still only
generated for amd64 architecture.

Publish binary artifacts in releases for Linux arm64 to provide
consistent architecture support for both binaries and Docker images.
Also build and publish the Linux arm64 artifacts on PR builds to prevent
breaking changes for this platform from being merged into the project.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-05-10 12:50:58 -03:00
Anton Kaymakchi 700c72e1a6
Add bundle_manager fetch federated_bundle call counter metric (#4132)
Signed-off-by: Anton Kaymakchi <anton.kaymakchi@transferwise.com>
2023-05-10 08:50:11 -03:00
Anton Kaymakchi 62eca9cfc6
Add trust_domain_id label to started metric (#4131)
* Add trust_domain_id label to started metric

Signed-off-by: Anton Kaymakchi <anton.kaymakchi@transferwise.com>
2023-05-09 19:15:01 -03:00
Basavaraju Girriamma f0413f95f3
Add IBM s390x multi arch support (#4127)
Signed-off-by: Basavaraju-G <basavaraju013@gmail.com>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-05-09 12:55:42 -07:00
dependabot[bot] aefb6b487d
Bump github.com/sigstore/sigstore from 1.6.3 to 1.6.4 (#4139)
* Bump github.com/sigstore/sigstore from 1.6.3 to 1.6.4

Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.6.3 to 1.6.4.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.6.3...v1.6.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade in-toto

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-05-08 14:20:13 -03:00
dependabot[bot] 144c64ed3c
Bump google.golang.org/grpc from 1.54.0 to 1.55.0 (#4140)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.54.0 to 1.55.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.54.0...v1.55.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:10:49 -03:00
dependabot[bot] a0cf0cd8bf
Bump google.golang.org/api from 0.120.0 to 0.121.0 (#4141)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.120.0 to 0.121.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.120.0...v0.121.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 15:09:16 -03:00
dependabot[bot] b146533451
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.95.0 to 1.96.1 (#4137)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.95.0 to 1.96.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.95.0...service/ec2/v1.96.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 12:18:09 -03:00
dependabot[bot] b98ef27932
Bump golang.org/x/sync from 0.1.0 to 0.2.0 (#4134)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.2.0.
- [Commits](https://github.com/golang/sync/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 10:34:25 -03:00
dependabot[bot] 3427aaf9d3
Bump github.com/prometheus/client_golang from 1.15.0 to 1.15.1 (#4130)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 09:40:57 -03:00
dependabot[bot] 57ddd4b870
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.5.0 to 1.6.0 (#4133)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.5.0 to 1.6.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.5.0...sdk/azcore/v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 18:22:48 -03:00
dependabot[bot] c7e19eae8e
Bump golang.org/x/sys from 0.7.0 to 0.8.0 (#4135)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 17:00:10 -03:00
Raghu Kaippully ae33645e48
New systemd workloadattestor plugin (#4058)
* systemd workloadattestor plugin

Fixes #2031.

Adds a basic workloadattestor plugin to get systemd.unit properties of
the running process. 

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
2023-05-04 15:04:14 -03:00
dependabot[bot] a0ab16f3f7
Bump github.com/sigstore/rekor from 1.1.0 to 1.1.1 (#4129)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 12:19:09 -03:00
dependabot[bot] e1106d42d9
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.20.4 to 1.21.0 (#4126)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.20.4 to 1.21.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/eks/v1.20.4...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 18:35:59 -03:00
Marcos Yacob 7dcf53d319
Upgrade cosign v2 (#4112)
* Upgrade to Cosign v2

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-05-02 17:18:05 -03:00
dependabot[bot] 3474abf128
Bump github.com/shirou/gopsutil/v3 from 3.23.3 to 3.23.4 (#4125)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.3 to 3.23.4.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.3...v3.23.4)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 11:01:15 -03:00
dependabot[bot] 18db987a57
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.94.0 to 1.95.0 (#4123)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.94.0 to 1.95.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.94.0...service/ec2/v1.95.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-28 12:45:26 -07:00
dependabot[bot] 9f2c7a739b
Bump github.com/open-policy-agent/opa from 0.51.0 to 0.52.0 (#4122)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.51.0 to 0.52.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.51.0...v0.52.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-28 11:22:36 -07:00
Sorin Dumitru 99a94457d2
datastore: use UNION ALL for postgres list entries query (#4111)
This cuts the cost in time, as determined by EXPLAIN ANALYZE, in
half. For a database with ~20000 entries and ~50000 selectors the
time goes from ~200ms to ~100ms.

The difference between UNION and UNION ALL is that the former also
does a DISTINCT step on the entries, removing any duplicates. It's
possible I'm missing something simple, but I don't think that actually
does anything for us since most of the sub-queries also return an
unique primary key so they are already unique.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-04-27 15:58:09 -07:00
Aaron Kaloti f7ced89686
Saved reattestation field of received agent SVID (#4104)
Signed-off-by: Aaron Kaloti <aarons.7007@gmail.com>
2023-04-27 12:15:28 -07:00
dependabot[bot] 1830dd97fd
Bump github.com/docker/docker (#4118)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.4+incompatible to 23.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.4...v23.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-27 11:10:34 -07:00
dependabot[bot] ef3e54e2fd
Bump sigstore/cosign-installer from 3.0.2 to 3.0.3 (#4110)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](9e9de2292d...204a51a57a)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-26 17:57:34 -07:00
dependabot[bot] 0531c15564
Bump github.com/lib/pq from 1.10.8 to 1.10.9 (#4114)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.8 to 1.10.9.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.8...v1.10.9)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-26 17:05:02 -07:00
dependabot[bot] 973f80d7a2
Bump google.golang.org/api from 0.119.0 to 0.120.0 (#4113)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.119.0 to 0.120.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.119.0...v0.120.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-26 15:04:48 -07:00
Agustín Martínez Fayó 700b58f2ed
Introduce support for BundlePublisher plugins (#4022)
* Introduce support for BundlePublisher plugins

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-25 20:42:14 -03:00
dependabot[bot] c38a38eaad
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.93.1 to 1.94.0 (#4107)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.93.1 to 1.94.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.93.1...service/ec2/v1.94.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:30:51 -07:00
Guilherme Carvalho ef96482ee7
Add agent purge command (#3982)
* Add agent clean command

---------

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Co-authored-by: Evan Gilman <evan@spirl.com>
2023-04-25 11:38:49 -07:00
dependabot[bot] d775bba1d7
Bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1 (#4108)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 10:11:45 -07:00
Edwin Buck 5ada1e22b9
Directly write the output of the hashing command into the checksum files. (#4096)
This avoids the cut and pasting that we do to take the hash from the hashing
algorithm and format it with the file from the trimmed full-file path.  It does
so by opening a sub-shell, changing directory to the parent of the file to be
hashed, generating the hash on the file name only (relative to the current
working directory), and then writing the output to the checksum file.

This avoids the need to cut the hashing output to get the hash so we can then
reconstruct the hash line with a file name lacking parent directories.  This
will greatly improve the ability of the --check command to work, as now we don't
alter the format of the sha256sum line.

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2023-04-21 15:48:01 -03:00
dependabot[bot] 1bef72593f
Bump google.golang.org/api from 0.118.0 to 0.119.0 (#4103)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.118.0 to 0.119.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.118.0...v0.119.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 14:59:56 -03:00
dependabot[bot] b0ea48c314
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.5 to 1.33.6 (#4102)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.5 to 1.33.6.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.6/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.5...v1.33.6)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 08:40:45 -03:00
dependabot[bot] ffa293ff22
Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#4100)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 02:14:42 -03:00
dependabot[bot] 3061b62ab6
Bump cloud.google.com/go/security from 1.13.0 to 1.14.0 (#4099)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.13.0...video/v1.14.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 00:14:21 -03:00
dependabot[bot] cd2a4c1719
Bump github.com/hashicorp/vault/api from 1.9.0 to 1.9.1 (#4098)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 22:51:14 -03:00
Max Lambrecht 7134ec3c29
Add support for SPIFFE bundle sequence number (#4061)
* Add support for SPIFFE bundle sequence number

Signed-off-by: Max Lambrecht <max.lambrecht@hpe.com>
2023-04-20 19:40:54 -03:00
dependabot[bot] e81e7dfbe3
Bump actions/checkout from 3.5.0 to 3.5.2 (#4084)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...8e5e7e5ab8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 15:18:57 -03:00
dependabot[bot] e1febccc1d
Bump github.com/docker/docker (#4091)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.3+incompatible to 23.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.3...v23.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 13:36:10 -03:00
dependabot[bot] a7f1e254ef
Bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources (#4086)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources](https://github.com/Azure/azure-sdk-for-go) from 1.1.0 to 1.1.1.
- [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/v1.1...sdk/azcore/v1.1.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 12:04:56 -03:00
dependabot[bot] eb4dffcdd4
Bump github.com/Microsoft/go-winio from 0.6.0 to 0.6.1 (#4092)
Bumps [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/go-winio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 11:03:11 -03:00
dependabot[bot] 3c25771491
Bump k8s.io/kube-aggregator from 0.26.3 to 0.27.1 (#4093)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.26.3 to 0.27.1.
- [Release notes](https://github.com/kubernetes/kube-aggregator/releases)
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.26.3...v0.27.1)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 10:03:38 -03:00
Agustín Martínez Fayó 3b3d7ba0c7
Document default values for `default_x509_svid_ttl` and `default_jwt_svid_ttl` (#4076)
* Document default values for `default_x509_svid_ttl` and `default_jwt_svid_ttl`

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-19 16:21:55 -03:00
Edwin Buck 9ac80a8636
Fix make artifact naming for many GNU glibc platforms. (#4081)
Fixes #4077

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-04-19 14:45:27 -03:00
Marcos Yacob e856187dd3
Update lookupSimilarEntry to filter superset entries (#4063)
* Update lookupSimilarEntry to filter superset entries

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-04-19 13:58:09 -03:00
Marcos Yacob b2ec40589c
Resolve envoy IT issues (#4094)
* Resolve issue on envoy version filtering that prevent to use latests envoy version on integration tests

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Remove unexected change

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-04-19 13:05:14 -03:00
dependabot[bot] bb3fcee1b5
Bump k8s.io/apimachinery from 0.26.3 to 0.27.1 (#4089)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.26.3 to 0.27.1.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.26.3...v0.27.1)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-18 08:33:34 -03:00
dependabot[bot] e4d76ac5d3
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0 (#4079)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 16:33:57 -03:00
dependabot[bot] 25a3133ebb
Bump google.golang.org/api from 0.117.0 to 0.118.0 (#4078)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.117.0 to 0.118.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.117.0...v0.118.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 14:49:30 -03:00
Guilherme Carvalho b136492eab
Add hint field delegated identity API (#4074)
Add hint field delegated identity API

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-04-17 13:31:01 -03:00
Edwin Buck 8d9ebd4f7b
Fixes #2247 - checksum algorithm in release package artifact filename (#4062)
* Fixes #2247 - checksum algorithm in release pakdage artifact filename

Signed-off-by: Edwin Buck <edwbuck@gmail.com>
2023-04-14 11:43:37 -07:00
dependabot[bot] 734cfda0ff
Bump github.com/hashicorp/vault/sdk from 0.8.1 to 0.9.0 (#4069)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.8.1...v0.9.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 10:51:47 -06:00
Andrew Harding 133d518196
Version bump after v1.6.3 release (#4085)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-04-14 09:50:28 -06:00
dependabot[bot] 6f5fc84be5
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.4.0 to 1.5.0 (#4067)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.4.0 to 1.5.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.4.0...sdk/azcore/v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 07:59:13 -06:00
Ryan Turner 0f0d6dc51f
Use latest version of github.com/gofrs/uuid (#4070)
v5.0.0 has no changes since v4.4.0 except to support Go modules. Migrate
to it so we can get PR bumps generated by dependabot since it is a major
version bump.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-04-12 18:59:52 -06:00
dependabot[bot] 38401e429b
Bump cloud.google.com/go/kms from 1.10.0 to 1.10.1 (#4066)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.0...kms/v1.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 17:21:48 -06:00
dependabot[bot] 133d39c8a5
Bump github.com/google/go-tpm-tools from 0.3.10 to 0.3.11 (#4065)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.3.10 to 0.3.11.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.3.10...v0.3.11)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 14:41:18 -06:00
Guilherme Carvalho 0573cf3399
Include hint field in agent's workload api (#3993)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-04-12 12:33:18 -06:00
Guilherme Carvalho cdeefb4202
Use go spiffe types server unit (#4045)
Use go spiffe types server unit

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-04-12 10:28:01 -03:00
Ryan Turner b2c397adad
Move release process documentation to new file (#4050)
The MAINTAINERS.md file has become quite large over time, mostly due to
refinements in the release process. Understanding the details of the
release process are not particularly relevant to understanding the core
duties of a project maintainer, which is the purpose of the
MAINTAINERS.md file. Similarly, maintainers who need to execute the
release process are not concerned with the general documentation about
what it means to be a maintainer on the project.

For these reasons, move the existing release process documentation as is
to a new file in the repository, and reference the new documentation in
MAINTAINERS.md for traceability.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-04-11 11:52:39 -06:00
dependabot[bot] b8c2a477c5
Bump sigstore/cosign-installer from 3.0.1 to 3.0.2 (#4059)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](c3667d9942...9e9de2292d)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 08:10:11 -03:00
dependabot[bot] b9aa75651a
Bump cloud.google.com/go/iam from 0.13.0 to 1.0.0 (#4043)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.13.0 to 1.0.0.
- [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/v0.13.0...dlp/v1.0.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 00:17:30 -03:00
dependabot[bot] 604241dbd8
Bump google.golang.org/api from 0.114.0 to 0.117.0 (#4064)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.114.0 to 0.117.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.114.0...v0.117.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 22:51:28 -03:00
dependabot[bot] d02e7d75a8
Bump github.com/shirou/gopsutil/v3 from 3.23.2 to 3.23.3 (#4041)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.2 to 3.23.3.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.2...v3.23.3)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 20:28:57 -03:00
dependabot[bot] 8a737e5c70
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.91.0 to 1.93.1 (#4060)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.91.0 to 1.93.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.91.0...service/ec2/v1.93.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 19:17:17 -03:00
Agustín Martínez Fayó bf853dbf50
Use Go from build directory in integration tests instead of requiring a Go installation (#4055)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-06 15:57:34 -03:00
Agustín Martínez Fayó 390f09c082
Update go.mod to go 1.20 (#4052)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-05 18:42:38 -03:00
dependabot[bot] f83f963a27
Bump github.com/docker/docker (#4048)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.2+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.2...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-05 16:09:08 -03:00
Agustín Martínez Fayó 5aaeb38fbd
Update Go to 1.20.3 (#4046)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-05 15:23:38 -03:00
Agustín Martínez Fayó 2f1e54f377
Bump version to 1.6.3 (#4047)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-04-05 14:40:36 -03:00
dependabot[bot] f51256381d
Bump github.com/open-policy-agent/opa from 0.50.2 to 0.51.0 (#4037)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.50.2 to 0.51.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.50.2...v0.51.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 14:20:56 -03:00
dependabot[bot] 5c9fb594e7
Bump github.com/spiffe/go-spiffe/v2 from 2.1.3 to 2.1.4 (#4038)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 11:11:20 -03:00
Tomoya Usami d39318478d
Add test suite for UpstreamAuthority vault plugin (#3977)
* Add test suite for UpstreamAuthority vault plugin

Signed-off-by: Tomoya Usami <948760+tousami@users.noreply.github.com>


---------

Signed-off-by: Tomoya Usami <948760+tousami@users.noreply.github.com>
2023-03-31 15:10:41 -03:00
Zachary M. Train 3fb0401c00
Remove glob from .build in .gitignore (#4030)
Signed-off-by: Zack Train <ztrain@uber.com>
2023-03-31 12:10:56 -03:00
dependabot[bot] 20bbfb4432
Bump github.com/uber-go/tally/v4 from 4.1.6 to 4.1.7 (#4033)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.6...v4.1.7)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 11:31:55 -03:00
dependabot[bot] 4c61a3c4ec
Bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources (#4029)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources](https://github.com/Azure/azure-sdk-for-go) from 1.0.0 to 1.1.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/v1.0...v1.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 16:47:10 -03:00
Guilherme Carvalho 845a756034
Use go-spiffe types manager unit (#4013)
* Use go-spiffe types in manager unit

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Ident jwt bundle

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Use marshal ident in delegatedIdentity service

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>

* Address review comments

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

---------

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-03-29 12:02:38 -03:00
dependabot[bot] 7b28ba417a
Bump sigs.k8s.io/controller-runtime from 0.14.5 to 0.14.6 (#4028)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.5 to 0.14.6.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.5...v0.14.6)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 10:02:37 -03:00
dependabot[bot] e848849625
Bump github.com/docker/docker (#4027)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.1+incompatible to 23.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.1...v23.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 19:05:21 -03:00
dependabot[bot] 1325c65dfb
Bump github.com/imdario/mergo from 0.3.13 to 0.3.15 (#4025)
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.13 to 0.3.15.
- [Release notes](https://github.com/imdario/mergo/releases)
- [Commits](https://github.com/imdario/mergo/compare/v0.3.13...v0.3.15)

---
updated-dependencies:
- dependency-name: github.com/imdario/mergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 16:47:55 -07:00
dependabot[bot] beaa0da6ea
Bump cloud.google.com/go/storage from 1.30.0 to 1.30.1 (#4024)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.30.0 to 1.30.1.
- [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/pubsub/v1.30.0...spanner/v1.30.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 15:51:38 -07:00
dependabot[bot] 24e3ca94dd
Bump actions/checkout from 3.4.0 to 3.5.0 (#4023)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 13:25:53 -07:00
dependabot[bot] 400a8dfc0b
Bump google.golang.org/protobuf from 1.29.1 to 1.30.0 (#4018)
* Bump google.golang.org/protobuf from 1.29.1 to 1.30.0

Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.29.1 to 1.30.0.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.29.1...v1.30.0)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-03-24 10:00:41 -07:00
dependabot[bot] 4606659f2e
Bump google.golang.org/grpc from 1.53.0 to 1.54.0 (#4021)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.54.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.53.0...v1.54.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 16:12:14 -07:00
dependabot[bot] 52e29d7496
Bump github.com/googleapis/gax-go/v2 from 2.7.1 to 2.8.0 (#4017)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.7.1 to 2.8.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.7.1...v2.8.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 15:27:26 -07:00
dependabot[bot] 6438715b6f
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.4 to 1.33.5 (#4016)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.4 to 1.33.5.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.5/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.4...v1.33.5)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2023-03-23 14:31:16 -07:00
Ryan Turner b7f80cf344
Introduce CI PR job timeouts (#4019)
* Introduce CI PR job timeouts

In the past we have observed that GitHub Actions can get stuck on
certain PR jobs, e.g. doing network I/O. The default timeout is 12
hours, which is excessive for the jobs we currently run in the PR status
checks.

Use a reasonably high timeout value that comfortably handles our job
execution times with 50% buffer to account for the jobs taking longer
over time.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-03-23 13:05:14 -07:00
dependabot[bot] 223fcf8f95
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.90.0 to 1.91.0 (#4015)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.90.0 to 1.91.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.90.0...service/ec2/v1.91.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ryan Turner <rturner3@users.noreply.github.com>
2023-03-23 12:23:25 -07:00
dependabot[bot] 49e981be74
Bump github.com/hashicorp/go-hclog from 1.4.0 to 1.5.0 (#4014)
Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/hashicorp/go-hclog/releases)
- [Commits](https://github.com/hashicorp/go-hclog/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-hclog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 11:51:48 -07:00
Tomoya Usami f9c4b87139
Make sure to set uri_sans parameter (#3971)
* Make sure to set uri_sans parameter

Signed-off-by: Tomoya Usami <948760+tousami@users.noreply.github.com>
2023-03-22 14:57:04 -03:00
dependabot[bot] 95fb00dc25
Bump k8s.io/kube-aggregator from 0.26.2 to 0.26.3 (#4007)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.26.2 to 0.26.3.
- [Release notes](https://github.com/kubernetes/kube-aggregator/releases)
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.26.2...v0.26.3)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 17:25:26 -07:00
dependabot[bot] 686c035516
Bump github.com/open-policy-agent/opa from 0.50.1 to 0.50.2 (#4006)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.50.1 to 0.50.2.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.50.1...v0.50.2)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 15:58:01 -07:00
dependabot[bot] 3dc66572e3
Bump github.com/spiffe/go-spiffe/v2 from 2.1.2 to 2.1.3 (#3991)
* Bump github.com/spiffe/go-spiffe/v2 from 2.1.2 to 2.1.3

Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix spire-agent CLI unit tests

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-03-21 15:05:01 -07:00
dependabot[bot] 1f9d9ec8dd
Bump cloud.google.com/go/security from 1.12.0 to 1.13.0 (#4005)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.12.0...video/v1.13.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 13:44:00 -07:00
dependabot[bot] 4817c18bce
Bump actions/dependency-review-action from 3.0.3 to 3.0.4 (#3998)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](c090f4e553...f46c48ed6d)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 11:24:25 -07:00
dependabot[bot] 133e0b4752
Bump cloud.google.com/go/iam from 0.12.0 to 0.13.0 (#3994)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.12.0 to 0.13.0.
- [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/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 10:36:39 -07:00
Agustín Martínez Fayó c1c5f43fed
Do not require that X509 CAs minted by an upstream authority have a URI SAN (#3997)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-03-21 10:41:17 -03:00
Andrew Harding 3c1c7f254a
Accomodate more plugin config shapes (#3999)
Recent changes to the plugin config parsing code required to enable
deterministic plugin ordering were too restrictive on the shapes of
plugin configuration, causing some previously-allowed configurations to
become invalid.

This PR changes parsing code to be more flexible when determining order.
It walks the AST and builds up a stack of ast nodes until it has enough
object key's in the stack to determine the plugin type and name.

The actual config parsing is then done separately using the more or less
the same config shape as before, changing to a list of maps of maps to
accomodate the way HCL parses into the AST.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-03-20 18:24:33 -07:00
dependabot[bot] 4463783db2
Bump cloud.google.com/go/kms from 1.9.0 to 1.10.0 (#4000)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.9.0...kms/v1.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 16:56:07 -07:00
dependabot[bot] 2cb9ca854a
Bump k8s.io/api from 0.26.2 to 0.26.3 (#4002)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.26.2 to 0.26.3.
- [Release notes](https://github.com/kubernetes/api/releases)
- [Commits](https://github.com/kubernetes/api/compare/v0.26.2...v0.26.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 11:04:12 -07:00
dependabot[bot] 27e2aaf951
Bump google.golang.org/api from 0.113.0 to 0.114.0 (#3995)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.113.0 to 0.114.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.113.0...v0.114.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 17:45:08 -07:00
dependabot[bot] cc5bd3595e
Bump cloud.google.com/go/storage from 1.29.0 to 1.30.0 (#3990)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.29.0 to 1.30.0.
- [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/pubsub/v1.29.0...spanner/v1.30.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 15:55:44 -07:00
dependabot[bot] d12f7d3374
Bump github.com/open-policy-agent/opa from 0.50.0 to 0.50.1 (#3989)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.50.0 to 0.50.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.50.0...v0.50.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 12:26:01 -07:00
dependabot[bot] 82c0c9a8d8
Bump google.golang.org/api from 0.112.0 to 0.113.0 (#3988)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.112.0 to 0.113.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.112.0...v0.113.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-17 02:05:10 -03:00
dependabot[bot] ff69675789
Bump github.com/google/go-containerregistry from 0.13.0 to 0.14.0 (#3992)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 10:45:37 -07:00
Marcos Yacob c24b211929
Implements RevokeJWTKey in datastore (#3985)
* Implements RevokeJWTKey in datastore

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-16 13:21:15 -03:00
dependabot[bot] f554d9f73d
Bump actions/setup-go from 3.5.0 to 4.0.0 (#3987)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.5.0 to 4.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](6edd4406fa...4d34df0c23)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 11:07:11 -03:00
dependabot[bot] e146233f3d
Bump actions/checkout from 3.3.0 to 3.4.0 (#3986)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 10:07:34 -03:00
dependabot[bot] c04150921f
Bump github.com/open-policy-agent/opa from 0.49.2 to 0.50.0 (#3973)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.49.2 to 0.50.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.49.2...v0.50.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 00:08:27 -07:00
Guilherme Carvalho 1415347454
Include entry's created_at field in service API response (#3975)
* Add createdAt field to common.RegistrationEntry type

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
2023-03-15 23:07:30 -07:00
dependabot[bot] 2e3a9b0d49
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.89.0 to 1.90.0 (#3984)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.89.0 to 1.90.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.89.0...service/ec2/v1.90.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 22:03:04 -07:00
dependabot[bot] ed66d8f444
Bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#3983)
Bumps [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) from 1.12.23 to 1.13.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/credentials/v1.12.23...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 18:14:58 -03:00
Marcos Yacob 708a65f70e
Force Rotation: Implement RevokeX509CA in datastore layer (#3979)
* Implement RevokeX509CA in datastore layer

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-15 17:01:47 -03:00
dependabot[bot] 31cb4ad382
Bump actions/cache from 3.2.6 to 3.3.1 (#3969)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.6 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](69d9d449ac...88522ab9f3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 15:36:58 -03:00
Marcos Yacob 236aac620a
Force Rotation: Implement TaintX509CA in datastore layer (#3978)
* Implement TaintX509CA on datastore

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-15 14:38:33 -03:00
Marcos Yacob 301b058d38
Force Rotation: Implement TaintJWTKey in datastore (#3981)
* Implement TaintJWTKey in datastore

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-15 12:58:55 -03:00
dependabot[bot] ee9e1d8af4
Bump docker/setup-buildx-action from 2.4.1 to 2.5.0 (#3970)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](f03ac48505...4b4e9c3e2d)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 09:49:16 -03:00
Guilherme Carvalho a477c5f94a
Clean stale node resolver map entries in database initialization (#3941)
* Create function for cleaning stale node resolver entries at database initialization

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>

* Add todo for removing the created function in future releases

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>

* Improve cleanup test by initializing the database again during test

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>

* Fix lint issues

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>

* Update todo comment to fix a release for removal

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Simplify query

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Fix Lint

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

---------

Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-03-15 08:29:46 -03:00
Marcos Yacob 3f67b6b260
Force Rotation: Refactor ca manager (#3930)
* Move CA rotation and CA manage out of ca package

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Add test for ca manager

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* cover new functions to manager.go

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* more test

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* some cleanup

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* resolve endpoint test

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Add coverage

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Verify if upstream authority is set before closing

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* rename packages and solve some typos

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* PR changes

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-03-14 18:59:05 -03:00
dependabot[bot] 85a83d907c
Bump google.golang.org/protobuf from 1.29.0 to 1.29.1 (#3980)
* Bump google.golang.org/protobuf from 1.29.0 to 1.29.1

Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.29.0...v1.29.1)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .pb.go files

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-03-14 14:55:32 -03:00
Marcos Yacob 8de7218da8
Add mint and revoke scaffolding to datastore layer (#3956)
* Add mint and revoke scaffolding to datastore layer and apply changes to common.Bundle to persist tainted keys

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-14 11:57:38 -03:00
dependabot[bot] 8ac6cf246c
Bump google.golang.org/protobuf from 1.28.1 to 1.29.0 (#3961)
* Bump google.golang.org/protobuf from 1.28.1 to 1.29.0

Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.28.1 to 1.29.0.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.28.1...v1.29.0)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add generated protobuf files

Signed-off-by: Ryan Turner <turner@uber.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-03-14 10:52:16 -03:00
dependabot[bot] 4c93e6855e
Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager (#3974)
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.18.0 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/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.0...service/s3/v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 14:58:58 -07:00
dependabot[bot] 819eb7d9ed
Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#3966)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.5.2...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/golang/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 13:06:16 -07:00
dependabot[bot] 76a2fd6158
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#3962)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/sdk/azidentity/v1.2.2/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azidentity/v1.2.1...sdk/azidentity/v1.2.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 12:01:45 -07:00
dependabot[bot] 49188d5b3f
Bump github.com/googleapis/gax-go/v2 from 2.7.0 to 2.7.1 (#3960)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-11 14:16:12 -03:00
dependabot[bot] a10daa0cec
Bump google.golang.org/api from 0.111.0 to 0.112.0 (#3959)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.111.0 to 0.112.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.111.0...v0.112.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 12:20:30 -08:00
dependabot[bot] 572ce58e01
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.86.0 to 1.89.0 (#3958)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.86.0 to 1.89.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.86.0...service/ec2/v1.89.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 11:19:34 -08:00
Guilherme Carvalho 6aa3c8bfb5
Update agents listing service with "CanReAttest" filter (#3880)
- Add "CanReAttest" boolean filter in list agents method
- Update spire-server agent and entry commands to add new response fields: registration entry hint and agent canReAttest.

---------

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-03-09 13:21:40 -03:00
dependabot[bot] 4ee47eaac6
Bump sigs.k8s.io/controller-runtime from 0.14.4 to 0.14.5 (#3951)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.4 to 0.14.5.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.4...v0.14.5)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 17:49:09 -07:00
dependabot[bot] f289645ec1
Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#3952)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 17:08:53 -07:00
dependabot[bot] 10e12a994b
Bump cloud.google.com/go/kms from 1.8.0 to 1.9.0 (#3950)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.8.0...dlp/v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 16:17:31 -07:00
dependabot[bot] 5248ce9326
Bump golang.org/x/sys from 0.5.0 to 0.6.0 (#3949)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 15:28:52 -07:00
dependabot[bot] bec51ec39f
Bump sigstore/cosign-installer from 2.8.1 to 3.0.1 (#3936)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 2.8.1 to 3.0.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](9becc61764...c3667d9942)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 11:54:04 -07:00
Guilherme Carvalho 048ec146eb
Update entry service with hint field (#3926)
* Update entry service and CMDs to include hint field

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-03-08 10:02:29 -03:00
dependabot[bot] 6322c45116
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.3.1 to 1.4.0 (#3946)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.3.1 to 1.4.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.3.1...sdk/azcore/v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 15:06:53 -08:00
dependabot[bot] e91a1725a5
Bump k8s.io/kube-aggregator from 0.26.1 to 0.26.2 (#3933)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/kube-aggregator/releases)
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.26.1...v0.26.2)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 14:09:15 -08:00
dependabot[bot] 0d39f68651
Bump google.golang.org/api from 0.110.0 to 0.111.0 (#3932)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.110.0 to 0.111.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.110.0...v0.111.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 12:17:42 -08:00
dependabot[bot] 321b039b00
Bump github.com/shirou/gopsutil/v3 from 3.23.1 to 3.23.2 (#3931)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.23.1 to 3.23.2.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.1...v3.23.2)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 19:48:27 -03:00
dependabot[bot] e8c68435b3
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#3925)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 18:46:47 -03:00
Guilherme Carvalho fbb719439c
Use go-spiffe types in endpoints unit (#3914)
* Use go-spiffe bundle type in attestor unit

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-03-03 10:37:40 -03:00
Andrew Harding 3346e40d9c
Fix plugin config parsing code (#3939)
* Fix plugin config parsing code

Recent changes to the plugin config parsing to retain plugin order
failed to account for the more verbose HCL or JSON forms.

This PR fixes the code to handle these forms as well as prevents
duplicate declarations, which was accidentally allowed as part of the
previous change.

Fixes: #3938

Signed-off-by: Andrew Harding <azdagron@gmail.com>

* Add another test case

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-03-02 19:34:00 -03:00
Guilherme Carvalho 7b0e1d5283
Update data consistency mode on test (#3944)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-03-02 14:52:45 -07:00
Andrew Harding 32cbc6a213
Change "images" target to load images as well (#3940)
Recent changes to for multiarch support changed the semantics of the
"images" target, wherein it would build the images but not load them
into the local docker registry.

This change has proved confusing to contributors who aren't aware they
need to run load-images afterwards.

This PR changes "images" to also load images. It also provides a new
"images-no-load" target that only builds the images without loading them
for CI/CD workflows that don't test the images in the same job that
builds them.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-03-02 17:40:26 -03:00
Andrew Harding 96d1f4c332
Bump version to next release (#3942)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-03-02 16:20:02 -03:00
Agustín Martínez Fayó 2cc0af033c
Honor the `ca_ttl` server config (#3934)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-03-01 19:42:55 -03:00
dependabot[bot] eda04c09a7
Bump github.com/open-policy-agent/opa from 0.49.1 to 0.49.2 (#3924)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.49.1 to 0.49.2.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.49.1...v0.49.2)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 07:03:10 -07:00
Andrew Harding d42471b418
Fix regression notifying workloads when entry removed (#3923)
PR #2305 fixed spurious notifications of workloads when nothing had
changed but unfortunately introduced a regression wherein a workload is
no longer notified by the cache when an entry for that workload is
removed.

The bug is caused by false sharing of the selRem temporary selector set.
Previously selRem was used to build the selectors for entries being
removed and the the contents of selRem were merged into the single
notification. When multiple notification sets were introduced, selRem
was added as a notification set. Unfortunately, selRem is cleared while
processing entries, causing the notification set to be empty.

Existing unit-tests did not catch this because the update that removes
the existing entry did not have additional entries to be processed (that
would cause selRem to be cleared).

This PR fixes the bug by allocating a new selector set to be appended to
the notification set instead of using selRem. It also cleans up some
selector set usage and adds some additional logic to the unit-test so
this condition can be caught in the future.

Fixes: #3922

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-28 21:28:57 -07:00
Evan Gilman a9ecd96726
Bump to 1.6.1 (#3929)
* Update CHANGELOG for 1.6.0 release (#3921)

* Update CHANGELOG for 1.6.0 release

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

* Bump version to 1.6.1

Signed-off-by: Evan Gilman <evan@spirl.com>

---------

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Signed-off-by: Evan Gilman <evan@spirl.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-03-01 00:00:37 -03:00
Anton Kaymakchi bac6a127f3
Fix trust domain json logging in federated bundle updater (#3927)
Signed-off-by: Anton Kaymakchi <anton.kaymakchi@transferwise.com>
2023-02-28 11:41:46 -08:00
Ryan Turner c92449653f
Fix upstream-authority-cert-manager integration test on arm64 (#3883)
The test was always trying to use amd64 kind and kubectl binaries. Added
architecture detection logic to pull the arm64 binaries when running on
arm64.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-28 15:45:53 -03:00
dependabot[bot] d6f9218571
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.2 to 1.33.4 (#3918)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.2 to 1.33.4.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.4/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.2...v1.33.4)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 15:44:57 -03:00
dependabot[bot] ee35af536e
Bump github.com/sigstore/sigstore from 1.5.1 to 1.5.2 (#3916)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 11:13:34 -03:00
Guilherme Carvalho dd5dc007cf
Clean node resolver map entries on attested node deletion (#3873)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-24 07:57:59 -07:00
Guilherme Carvalho 37b18c22eb
Update datastore to persist, update and query registration entries with Hint field (#3787)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-24 07:07:00 -07:00
dependabot[bot] 031bfaad40
Bump actions/cache from 3.2.5 to 3.2.6 (#3910)
* Bump actions/cache from 3.2.5 to 3.2.6

Bumps [actions/cache](https://github.com/actions/cache) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](6998d139dd...69d9d449ac)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Manually update comments

Signed-off-by: Andrew Harding <azdagron@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <azdagron@gmail.com>
2023-02-24 06:08:13 -07:00
Andrew Harding 4fdae08e22
Reformat comments on actions deps (#3917)
The existing comments are not in a format recognized by dependabot and
are therefore not updated in dependabot PRs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-23 17:00:26 -07:00
dependabot[bot] da4e576570
Bump github.com/open-policy-agent/opa from 0.49.0 to 0.49.1 (#3911)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.49.0 to 0.49.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.49.0...v0.49.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-23 19:17:01 -03:00
Ryan Turner 32da58ca07
Skip upgrade test on arm64 until 1.7.0 (#3884)
We are publishing arm64 images starting with the 1.6.0 release. Since
the upgrade test uses images from the previous minor release series,
this means the upgrade test cannot be run on arm64 until 1.7.0, at which
point the prior minor release series will all have arm64 images.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-23 18:00:10 -03:00
Ryan Turner b22cdbf021
Fix Envoy integration tests on arm64 architecture (#3882)
Our Envoy tests were using Alpine-based release images that are only
published for amd64 architecture. However, Envoy also publishes
`envoyproxy/envoy` Ubuntu-based release images for both amd64 and arm64
architectures. These images are around 45 MB in size.

Switch the tests to the multiarch Envoy images so we can run them on
arm64 machines.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-23 17:15:03 -03:00
Ryan Turner f4bc246594
Skip MySQL 5.7 integration tests on non-amd64 architectures (#3878)
Oracle only publishes binaries + images for MySQL 5.7 for amd64
architecture. Ignore running on other architectures, since the amd64
image is not compatible with other architectures.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-23 16:03:02 -03:00
Guilherme Carvalho ea4e19baf0
Use go-spiffe bundle type in attestor unit (#3834)
* Use go-spiffe bundle type in attestor unit

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Include jwt authorities in bundle proto

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Add missing unitary tests

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Refactor code

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Address review comments

Add error handling on parsing trust domain, add TODO comment, refactor
code.

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

---------

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-02-22 17:51:42 -03:00
dependabot[bot] 4109187d55
Bump cloud.google.com/go/iam from 0.10.0 to 0.12.0 (#3881)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.10.0 to 0.12.0.
- [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/v0.10.0...v0.12.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 11:10:26 -08:00
Andrew Harding d4a5911045
Integrate builder and validator (#3869)
* Integrate builder and validator

Also:
- moves validator into own package
- deletes unused signing code from jwtsvid package

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-17 12:50:24 -03:00
dependabot[bot] 7b3a6c7763
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.85.0 to 1.86.0 (#3868)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.85.0 to 1.86.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.85.0...service/ec2/v1.86.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 19:55:31 -08:00
dependabot[bot] 559060b1e8
Bump cloud.google.com/go/security from 1.11.0 to 1.12.0 (#3867)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.11.0...video/v1.12.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 18:29:19 -08:00
Agustín Martínez Fayó 0f082cfc3a
Update Roadmap (#3824)
* Update Roadmap

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-02-16 17:13:58 -08:00
Andrew Harding 4c266cc6ed
Change GH workflow tools cache key (#3871)
Current cache key causes each job to upload to the cache with the commit
sha based key. This causes two problems:
1. Cache entries is large (one per PR) for no benefit
2. Toolchain changes are not considered when reusing the cache

This change updates the cache key for the tools cache to essentially be
keyed off of the Go version and the Makefile (which contains the versions of
tools in use)

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-16 15:48:45 -08:00
Jackie Elliott fbaf5ebf64
Update broken Envoy links in spire-agent doc (#3842)
* Update broken Envoy links in spire-agent doc

Signed-off-by: jaellio <jaellio@microsoft.com>
2023-02-16 15:17:20 -03:00
Andrew Harding 3be2f4972f
Document bundle manager telemetry (#3870)
* Document bundle manager telemetry

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-16 14:00:16 -03:00
Ryan Turner 65c8e0a239
Update Go to v1.20.1 (#3865)
* Update Go to v1.20.1

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-15 17:57:24 -08:00
Ryan Turner 11eadd0889
Update main branch after latest releases (#3866)
Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-14 20:55:43 -07:00
dependabot[bot] 87905cf982
Bump google.golang.org/api from 0.109.0 to 0.110.0 (#3864)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.109.0 to 0.110.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.109.0...v0.110.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 14:12:36 -08:00
dependabot[bot] 26ed870f86
Bump golang.org/x/net from 0.6.0 to 0.7.0 (#3863)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 10:42:20 -08:00
Andrew Harding 8c915ae99d
Add validation methods to credtemplate builder (#3862)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-14 07:26:11 -07:00
dependabot[bot] 4d12cf15f4
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.84.0 to 1.85.0 (#3860)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.84.0 to 1.85.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.84.0...service/ec2/v1.85.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:11:33 -08:00
Andrew Harding 1c7f065862
Remove k8s-workload-registrar (#3853)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-13 07:08:30 -07:00
dependabot[bot] 54031492ec
Bump github.com/docker/docker (#3857)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.0+incompatible to 23.0.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.0...v23.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-12 10:19:13 -03:00
dependabot[bot] fff06758ac
Bump github.com/hashicorp/vault/sdk from 0.7.0 to 0.8.1 (#3858)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.7.0 to 0.8.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.7.0...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-12 00:00:09 -03:00
dependabot[bot] 79bc2e49ee
Bump github.com/hashicorp/vault/api from 1.8.3 to 1.9.0 (#3856)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.8.3 to 1.9.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.8.3...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-02-11 22:17:55 -03:00
dependabot[bot] d042d15eb0
Bump actions/cache from 3.2.2 to 3.2.5 (#3854)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.2 to 3.2.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](4723a57e26...6998d139dd)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-11 11:55:37 -03:00
dependabot[bot] dc58ebbaad
Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#3846)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](83fd05a356...0b7f8abb15)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 21:41:06 -03:00
dependabot[bot] c4a4b01562
Bump actions/dependency-review-action from 3.0.2 to 3.0.3 (#3845)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](0ff3da6f81...c090f4e553)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 15:55:02 -03:00
dependabot[bot] f4a1d740f1
Bump actions/download-artifact from 3.0.1 to 3.0.2 (#3844)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](9782bd6a98...9bc31d5ccc)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 14:30:00 -03:00
dependabot[bot] 706e520049
Bump actions/checkout from 3.2.0 to 3.3.0 (#3843)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.2.0...ac593985615ec2ede58e132d2e21d2b1cbd6127c)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 13:27:41 -03:00
dependabot[bot] 7e2d2a4e88
Bump golang.org/x/crypto from 0.5.0 to 0.6.0 (#3852)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 11:29:56 -03:00
dependabot[bot] 4269836b76
Bump golang.org/x/net from 0.5.0 to 0.6.0 (#3851)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 10:44:22 -03:00
dependabot[bot] 25acfb3394
Bump github.com/envoyproxy/go-control-plane from 0.10.3 to 0.11.0 (#3850)
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane) from 0.10.3 to 0.11.0.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases)
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md)
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.10.3...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 09:55:48 -03:00
dependabot[bot] 5506b7e9b9
Bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.4.3 (#3849)
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.2...v4.4.3)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 00:12:52 -03:00
dependabot[bot] 7e0f8cc18d
Bump github.com/uber-go/tally/v4 from 4.1.5 to 4.1.6 (#3836)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.5 to 4.1.6.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.5...v4.1.6)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 22:53:32 -03:00
Guilherme Oliveira do Carmo Carvalho e284de81bb
Fix flaky tests on macOS (#3848)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-09 20:33:28 -03:00
dependabot[bot] 74e5af8973
Bump google.golang.org/grpc from 1.52.3 to 1.53.0 (#3835)
* Bump google.golang.org/grpc from 1.52.3 to 1.53.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.52.3 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.52.3...v1.53.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update expected error messages

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

* Update expected error message

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-02-09 14:57:48 -03:00
Agustín Martínez Fayó cb42404a9d
Have `syntax` parser directive at the top of Dockerfile (#3838)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-02-09 12:23:33 -03:00
Guilherme Oliveira do Carmo Carvalho e264e0c491
Add new migration to create hint field index (#3828)
* Add new migration for adding hint field index

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

---------

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-09 11:26:51 -03:00
Andrew Harding c978060fe6
Credential template builder package (#3832)
This package consolidates all of the CA and SVID template building logic
into one spot where the Credential Composers can be applied.

The package does perform some input validation of parameters but does
unfortunately does not perform validation against alterations returned
by credential composers. This is because it is not possible to know how
the extra extensions will impact the certificates until after they have
passed through CreateCertificate, and we don't want to sign a credential
after each CredentialComposer invocation.

As such, the validation will be left to the server CA layer after
signing has taken place.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-08 17:37:33 -07:00
dependabot[bot] 94449e04c1
Bump github.com/open-policy-agent/opa from 0.48.0 to 0.49.0 (#3837)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.48.0 to 0.49.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.48.0...v0.49.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 20:20:21 -03:00
Marco Franssen 9d87b9ed6c
Pin GH actions (#3727)
Dependabot is also capable of pinning to future tag releases
and will maintain the comment that descibes the shasum.

https://github.com/dependabot/dependabot-core/issues/4691

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
Co-authored-by: Evan Gilman <evan2645@gmail.com>
2023-02-08 13:29:00 -08:00
Guilherme Oliveira do Carmo Carvalho 8815a2d048
Add extra connection error assert (#3840)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-08 16:57:03 -03:00
Ludovic Fernandez 05a821e59a
add Traefik (#3833)
Signed-off-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-02-08 10:42:52 -03:00
Ryan Turner 805abfcf79
Update linter versions (#3831)
The latest image version of markdownlint-cli supports arm64
architectures, which is useful for running the linter locally on
ARM-based Macs.

Bump golangci-lint version to latest while we're at it.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-07 14:27:00 -08:00
Ryan Turner 0b91ce2822
Support dedicated non-root user in release images (#3811)
* Support dedicated non-root user in release images

Natively support a way for users of the release images to run the images
as a non-root user.

SPIRE depends on certain directories to be readable from / writeable to / creatable.
With scratch-based images, the root of the filesystem is empty by default and
only the root user has permission to create directories at the root
level. This means that any directories SPIRE depends on should be
pre-created at build time for some dedicated non-root user.

Create all such directories in the SPIRE Server and Agent image builds.
The directories chosen were ones defined in the
[Linux Filesystem Hierarchy Standard](https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html).

Additionally, provide sample configurations that use the paths pre-created
in the images, and add documentation on how to run the images as a non-root user.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-02-07 12:46:35 -08:00
Troy Dai 4d6de7bba4
Prevent nil panic from derefeence nil context in authorization middleware (#3829)
* Prevent nil panic from derefeence a nil context in authorization middleware

Nil panics happens authorization middleware's Preprocess function when a nil context is passed down from a failed database operation while fetching entries in function WithCallerEntries. This change addresses this risk by dereference the context and fetch the logger earlier before the ctx variable is mutated.

Extended explanation:

WithCallerEntries returns error when a database operation failure happens. The error itself is not fatal, however, it returns a nil context. Returns zero value when errors is correct behavior. However, the reconcileResult function and opaAuth function bubble up the nil context as if it is populated. In the authorization middleware's Preprocess function, it attempts to retrieve a logger from the context thus cased a nil panic.

Fix:

The fix is simple: since the dereference happens for the purpose of fetching a logger. The logger is prefetched before the context is mutated. This is simplest fix of all the forms. Other alternative fix include introduce a separate variable to hold mutated context and I believe it overcomplicates the code.

Other changes:

This change also include a fix in the authorization_opa.go to explicitly returns nil context in when functions errored out. It doesn't change the logic because it is already returning nil.

Signed-off-by: Troy Dai <git@troydai.com>
2023-02-07 12:09:17 -08:00
dependabot[bot] a567981117
Bump golang.org/x/sys from 0.4.0 to 0.5.0 (#3830)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-07 10:56:42 -08:00
dependabot[bot] 27ee5c5d2c
Bump github.com/docker/docker from 20.10.23+incompatible to 23.0.0+incompatible (#3820)
* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.23+incompatible to 23.0.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.23...v23.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Resolve unit test

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-02-07 14:34:43 -03:00
Andrew Harding 6084d97f96
Fix stale link to oidc-discovery-provider image (#3826)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-07 12:04:02 -03:00
Guilherme Oliveira do Carmo Carvalho 6a8726b4a2
Add -output flag to spire-agent api commands (#3818)
* Add output flag for spire-agent api commands

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

---------

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-02-07 11:08:29 -03:00
prasadborole1 d32054f064
Fix flaky agent LRU cache test (#3746)
Signed-off-by: Prasad Borole <prasadb@uber.com>
2023-02-06 17:44:38 -07:00
dependabot[bot] 6b8b9d1fba
Bump sigs.k8s.io/controller-runtime from 0.14.2 to 0.14.4 (#3827)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.2 to 0.14.4.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.2...v0.14.4)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 15:56:36 -03:00
dependabot[bot] f84817ccb6
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.3.0 to 1.3.1 (#3823)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.3.0 to 1.3.1.
- [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.3.0...sdk/azcore/v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-05 21:18:02 -08:00
Andrew Harding a86222b37b
CredentialComposer facade and catalog support (#3819)
Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-02-04 17:19:56 -07:00
dependabot[bot] 4ca57f60dd
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.83.0 to 1.84.0 (#3822)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.83.0 to 1.84.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.83.0...service/ec2/v1.84.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 15:16:27 -03:00
dependabot[bot] a15cef2b77
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.82.0 to 1.83.0 (#3817)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.82.0 to 1.83.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.82.0...service/ec2/v1.83.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 17:21:42 -03:00
dependabot[bot] 95754b2a56
Bump google.golang.org/api from 0.108.0 to 0.109.0 (#3816)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.108.0 to 0.109.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.108.0...v0.109.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 16:20:58 -03:00
dependabot[bot] ff4a7cf43d
Bump github.com/shirou/gopsutil/v3 from 3.22.12 to 3.23.1 (#3815)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.12 to 3.23.1.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.12...v3.23.1)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:03:40 -03:00
Guilherme Oliveira do Carmo Carvalho 1223ec4b53
Add output flag for spire-server mint and generate commands (#3800)
* Add output flag to mint and generate commands

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-31 18:59:19 -03:00
Andrew Harding e2b11c2f5f
Fix stale comment around InMem config (#3814)
The deprecated "enabled" flag was recently removed. This change fixes up
a related stale comment.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-31 17:53:58 -03:00
dependabot[bot] 5953a3fe1e
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.81.0 to 1.82.0 (#3812)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.81.0 to 1.82.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.81.0...service/ec2/v1.82.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 12:57:09 -07:00
dependabot[bot] 3551cb3e92
Bump sigs.k8s.io/controller-runtime from 0.14.1 to 0.14.2 (#3809)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.1...v0.14.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 10:52:54 -08:00
Dennis Gove a1028b7eeb
Remove table column registered_entries.x509_svid_ttl (#3808)
Fixes #3536

Signed-off-by: Dennis Gove <dgove1@bloomberg.net>
2023-01-29 10:07:05 -07:00
Vish Khalipe 1681c0b064
issue #3497 : Removed deprecated enabled flag from InMem telemetry config (#3796)
Signed-off-by: Vish Khalipe <vishvjit@gmail.com>
2023-01-29 08:17:53 -07:00
dependabot[bot] 01f466d101
Bump google.golang.org/grpc from 1.52.0 to 1.52.3 (#3801)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.52.0 to 1.52.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.52.0...v1.52.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 15:16:52 -08:00
dependabot[bot] 883c7584e2
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#3807)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.2.0 to 1.2.1.
- [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/v1.2...sdk/azidentity/v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 13:43:30 -08:00
dependabot[bot] e322d3327d
Bump github.com/google/go-containerregistry from 0.12.1 to 0.13.0 (#3798)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.12.1 to 0.13.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.12.1...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 12:49:19 -08:00
dependabot[bot] abde55e82c
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.80.0 to 1.81.0 (#3803)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.80.0 to 1.81.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.80.0...service/ec2/v1.81.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 11:33:43 -08:00
dependabot[bot] c9111065fa
Bump github.com/gofrs/uuid from 4.3.1+incompatible to 4.4.0+incompatible (#3802)
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.3.1+incompatible to 4.4.0+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 10:39:01 -08:00
Andrew Harding fc0e761f52
Simplify PR workflow status check (#3805)
The status checks required for branch protection are coupled with the
current build matrix on the integration tests.

This change introduces a new job that depends on the integration test
jobs for both linux and windows that can be used for the status check.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-27 10:01:57 -07:00
Andrew Harding f9ab4636e1
Explicitly enable CGO for cross-compilation (#3806)
CGO_ENABLED gets disabled by default during cross-compilation.
Unfortunatly this means that the arm64 spire-server, which has a CGO
dependency for sqlite3, does not function.

This change updates the Dockerfile to explicitly enable CGO for
cross-compilation.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-26 18:53:14 -07:00
Guilherme Oliveira do Carmo Carvalho 2c29cd4c29
Optimize spire server tls connection bundle conversion amount (#3759)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-26 12:23:25 -07:00
Andrew Harding 2ed7d91d2e
Deterministic plugin ordering (#3797)
Future features (i.e. CredentialComposer work) rely on deterministic
plugin execution order. The order that plugins are defined is a nice implied
ordering. Unfortunately, decoding the plugins node into a map of maps
hides the order that they were defined.

This change updates the catalog to instead decode configuration from an
HCL ast.Node so that ordering can be preserved.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-25 15:09:48 -07:00
Andrew Harding 08335f0fef
Drop deprecated default_svid_ttl configurable (#3795)
Also, in order for integration tests to pass, drops the v1.4.x builds,
which is ok since the next release is v1.6.0.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-24 10:03:16 -07:00
Andrew Harding 0d6d64c690
Remove deprecated OmitX509SVIDUID option (#3794)
This change removes the deprecated OmitX509SVIDUID configuration option
ahead of the 1.6.0 release.

This option was added in 1.5.0 as an immediately deprecated option to
disable the new behavior that made each X509-SVID unique through a
random UID added to the subject.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-24 09:08:37 -07:00
Sorin Dumitru 62a8721a62
agent: accept bootstrap bundle in SPIFFE format (#3753)
Allow users to specify the format of the bootstrap bundle, either
pem (the default) or spiffe. This allows using the spire-server trust
bundle endpoint as a source for the bootstrap bundle, removing the need
for an extra place to serve it.

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
2023-01-23 21:24:54 -03:00
Ryan Turner c6b566c478
Simplify step of release process that updates main branch (#3767)
- Consolidates two PRs for the CHANGELOG.md and version bumps into a
  single PR. The previous process had you create the CHANGELOG PR before
  the version bump PR, but the version bump has to be merged first
  because the upgrade integration test fails all CI jobs for PRs until
  it is fixed. This simplifies the process for both maintainers driving
  the release as well as maintainers reviewing the changes into main.
- Provide clearer guidance on what the next projected release version
  should be based on our current release practices.
- Refer to the specific locations in the repository where version numbers
  need to be changed and describe which version belongs in those files.

Signed-off-by: Ryan Turner <turner@uber.com>
2023-01-23 13:37:34 -08:00
dependabot[bot] bbc60d7a36
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.78.0 to 1.80.0 (#3793)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.78.0 to 1.80.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.78.0...service/ec2/v1.80.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 12:36:10 -08:00
dependabot[bot] 7a6bde1688
Bump github.com/docker/docker (#3791)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.22+incompatible to 20.10.23+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.22...v20.10.23)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 11:20:04 -08:00
dependabot[bot] 0399311393
Bump cloud.google.com/go/storage from 1.28.1 to 1.29.0 (#3790)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.28.1 to 1.29.0.
- [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/storage/v1.28.1...spanner/v1.29.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 10:35:35 -08:00
dependabot[bot] 1ebd0e1441
Bump github.com/hashicorp/vault/api from 1.8.2 to 1.8.3 (#3788)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-20 16:55:04 -08:00
Agustín Martínez Fayó d73bd07651
Avoid logging errors that are part of the normal health check operation (#3786)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-01-20 19:41:12 -03:00
dependabot[bot] f7c48d62de
Bump google.golang.org/api from 0.107.0 to 0.108.0 (#3781)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.107.0 to 0.108.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.107.0...v0.108.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 12:45:29 -03:00
dependabot[bot] 69438a568e
Bump k8s.io/kube-aggregator from 0.26.0 to 0.26.1 (#3780)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/kube-aggregator/releases)
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 10:40:18 -03:00
dependabot[bot] ae516690fe
Bump k8s.io/apimachinery from 0.26.0 to 0.26.1 (#3779)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 09:48:37 -03:00
Andrew Harding da99f1407c
Remove non-scratch images (#3785)
The images produced by the project are now all "scratch" images. The
scratch distinction has been removed from everything, since now there
are just "images".

Also removes publishing to GCR, since that was only done for the
non-scratch images.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-19 22:45:53 -07:00
Guilherme Oliveira do Carmo Carvalho 968a198a94
Integration tests for windows service support (#3733)
* Create integration tests for windows service support

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-19 20:55:52 -03:00
Guilherme Oliveira do Carmo Carvalho 0f20b0aaf0
Add integration tests for foreign trust domain admin ids update (#3761)
Add integration tests for foreign trust domain admin ids update

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-19 18:56:46 -03:00
dependabot[bot] d8262d0dee
Bump github.com/sigstore/sigstore from 1.5.0 to 1.5.1 (#3777)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-18 16:42:52 -03:00
dependabot[bot] e80737934d
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.1 to 1.33.2 (#3776)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.1 to 1.33.2.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.2/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.1...v1.33.2)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-18 15:58:29 -03:00
Andrew Harding 0a11b1ecdc
Disable fsync for postgres datastore tests (#3775)
Disabling fsync reduces the datastore-postgres integration test from
8m30s to 1m30s on my machine. We don't need the safety that fsync
provides for data integrity on the integration tests.

Signed-off-by: Andrew Harding <azdagron@gmail.com>

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-18 14:32:10 -03:00
Marco Franssen 7e74cd7619
Publish to ghcr first on release (#3766)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2023-01-17 17:34:23 -07:00
dependabot[bot] 7c3a9ca55b
Bump github.com/spiffe/go-spiffe/v2 from 2.1.1 to 2.1.2 (#3774)
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/spiffe/go-spiffe/releases)
- [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md)
- [Commits](https://github.com/spiffe/go-spiffe/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: github.com/spiffe/go-spiffe/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 18:53:32 -03:00
dependabot[bot] 2a03ceee09
Bump github.com/aws/aws-sdk-go-v2/service/iam from 1.18.16 to 1.19.0 (#3772)
Bumps [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) from 1.18.16 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/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.18.16...service/s3/v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 15:48:39 -03:00
dependabot[bot] 6d043af1cf
Bump github.com/uber-go/tally/v4 from 4.1.4 to 4.1.5 (#3773)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.4...v4.1.5)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 14:24:07 -03:00
dependabot[bot] 3d9d9c7e5d
Bump google.golang.org/api from 0.106.0 to 0.107.0 (#3771)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.106.0 to 0.107.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.106.0...v0.107.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 12:31:36 -03:00
dependabot[bot] bcd6cd7ffa
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.77.0 to 1.78.0 (#3770)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.77.0 to 1.78.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.77.0...service/ec2/v1.78.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 11:32:41 -03:00
dependabot[bot] 3022729b74
Bump github.com/hashicorp/vault/sdk from 0.6.2 to 0.7.0 (#3769)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.6.2...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 10:44:52 -03:00
Faisal Memon 888e281cc7
Fix errors, update versions in k8s-workload-registrar quickstart (#3698)
* Fix errors, update versions in k8s-workload-registrar quickstart
* Update to 1.5.3
* Remove unnecessary unix attestor config

Signed-off-by: Faisal Memon <fymemon@yahoo.com>
Co-authored-by: Evan Gilman <evan2645@gmail.com>
2023-01-16 13:51:03 -08:00
dependabot[bot] 322f7d046d
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.2.0 to 1.3.0 (#3757)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.2.0 to 1.3.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/v1.2...sdk/azcore/v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 14:43:16 -08:00
dependabot[bot] f2a99959e9
Bump cloud.google.com/go/kms from 1.7.0 to 1.8.0 (#3756)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.7.0...dlp/v1.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 13:55:02 -08:00
dependabot[bot] a7aff16712
Bump github.com/open-policy-agent/opa from 0.47.4 to 0.48.0 (#3755)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.47.4 to 0.48.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.47.4...v0.48.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 12:49:31 -08:00
dependabot[bot] c6ddd9d5f2
Bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#3758)
* Bump google.golang.org/grpc from 1.51.0 to 1.52.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.51.0 to 1.52.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.51.0...v1.52.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Ryan Turner <turner@uber.com>
2023-01-13 11:56:34 -08:00
dependabot[bot] 66ebcaaf57
Bump cloud.google.com/go/security from 1.10.0 to 1.11.0 (#3754)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.10.0...asset/v1.11.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 10:32:28 -08:00
Andrew Harding e681516d3c
Fix release workflow (#3764)
- Fixes a recent regression in permissions on the publish-artifact job
  (introduced by #3706).
- Makes image publishing rely on the same jobs as artifact publishing so
  that we don't publish images but fail to publish the release if there
  is a failure in the windows jobs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2023-01-13 10:42:33 -03:00
Ryan Turner e04226af6e
Bring main branch up-to-date after v1.5.4 release (#3765)
- Bump versions in code and integration test
- Bring CHANGELOG.md changes for v1.5.4 release

Signed-off-by: Ryan Turner <turner@uber.com>
2023-01-13 05:36:02 -07:00
Guilherme Oliveira do Carmo Carvalho e9da888aea
Remove null values from cli json priting (#3715)
* Remove fields with null value from proto-json conversion result

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Fix broken tests from federation command

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Refactor variable names

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Address review comments

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Add logic for interface array nil values

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Refactor code

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

* Increase test coverage

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
Co-authored-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-01-12 17:14:07 -03:00
Marco Franssen f9977d1728
Sign images using Sigstore (#3707)
* Limit workflow job permissions to bare minimum

This allows to narrow down workflow permissions in GitHub settings

See https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
and https://docs.github.com/en/actions/security-guides/automatic-token-authentication\#permissions-for-the-github_token

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>

* Add container signing using Sigstore keyless

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-01-12 14:53:05 -03:00
dependabot[bot] 4f5445c73b
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.17.6 to 1.18.0 (#3752)
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.17.6 to 1.18.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.6...config/v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 14:55:50 -08:00
dependabot[bot] 9a5bfc2e7b
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.19.2 to 1.20.0 (#3751)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.19.2 to 1.20.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.19.2...service/s3/v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 14:00:56 -08:00
dependabot[bot] 1b57b0e181
Bump github.com/aws/aws-sdk-go-v2/service/acmpca from 1.19.0 to 1.21.0 (#3750)
Bumps [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) from 1.19.0 to 1.21.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.19.0...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 11:42:55 -08:00
dependabot[bot] dc1557ec7a
Bump cloud.google.com/go/secretmanager from 1.9.0 to 1.10.0 (#3747)
Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.9.0...asset/v1.10.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 10:49:35 -08:00
dependabot[bot] 9f51e45829
Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager (#3743)
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.17.0...config/v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 09:55:49 -08:00
dependabot[bot] f2835a0b26
Bump google.golang.org/api from 0.105.0 to 0.106.0 (#3737)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.105.0 to 0.106.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.105.0...v0.106.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 10:57:50 -03:00
dependabot[bot] 89781aecb9
Bump cloud.google.com/go/iam from 0.9.0 to 0.10.0 (#3736)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.9.0 to 0.10.0.
- [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/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 16:45:09 -08:00
dependabot[bot] a69c8cff98
Bump golang.org/x/crypto from 0.4.0 to 0.5.0 (#3735)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 15:25:44 -03:00
Guilherme Oliveira do Carmo Carvalho 3dfbfa1b77
Add a new hook for normalizing log time fields (#2649) (#3734)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-10 08:39:14 -07:00
dependabot[bot] 64b526a40f
Bump github.com/sigstore/sigstore from 1.4.6 to 1.5.0 (#3738)
Bumps [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) from 1.4.6 to 1.5.0.
- [Release notes](https://github.com/sigstore/sigstore/releases)
- [Commits](https://github.com/sigstore/sigstore/compare/v1.4.6...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/sigstore/sigstore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 11:45:20 -03:00
Marco Franssen 3b194def08
Add arm64 support for linux images (#3607)
Add arm64 support for linux images

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2023-01-09 19:20:40 -03:00
Guilherme Oliveira do Carmo Carvalho 7bff3a0e0c
Support foreign trust domains admin ids config (#3642)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2023-01-05 17:51:55 -03:00
jcrumb-u21 5c02e75e48
Add bundle_file_arn to plugin options for awssecret (#3578)
* Generate new certificates and keys on every test run

The static test keys and certificates that currently live in
testdata/keys/EC are brittle and won't pass additional validation added
to the plugin. The certificate is expired and if replaced we're just
kicking the can down the road.

This commit moves towards a setup similar to how the disk
upstreamauthority plugin works, with dynamically generated keys and
certificates that will never be out of date. Instead of static test
data, on each run we generate chains of keys and certificates with
generateTestData() which returns both a function that will wrap these
values in a fake secrets manager client and a struct containing the
keys/certs so that we can use the same values to assert against SPIRE's
returned X509CaChain and UpstreamX509Roots.

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Add bundle_file_arn to plugin options for awssecret

This will allow us to specify addtional certificates that should
be added to the trust bundle when using non-self-signed certificates in
the cert_file_arn configuration field. Without this, it is only possible
to use the awssecret UpstreamAuthority with a self-signed cert.
Otherwise, you will end up with a partial chain when presented with the
trust bundle + client certificate chain.

This parameter is optional, and when omitted does not break existing
flows.

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Add tests for specifying an intermediate as secret/key

This adds a few new testcases:

- Ensuring that bundle_file_arn is properly validated if it's present
- Ensuring that when specifying a bundle, the non self-signed CA
  specified in cert_file_arn is included in the resultant x509CaChain
  and the upstreamX509Roots contains the specified root

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Add support for specifying an intermediate CA in cert_file_arn

This is a pretty major refactor of the awssecret plugin which allows
specifying an intermediate CA in cert_file_arn and brings this plugin
much more inline with the disk upstreamauthority. In addition to
allowing intermediates, we are now much stricter about checking the
provided certificate, key, and bundle at plugin load time. On init, we
now check that either cert_file_arn is a single self-signed CA or that
it is not self signed and can be verified with the roots specified in
bundle_file_arn.

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Document new bundle_file_path parameter

This new parameter is optional as long as you are using a self-signed CA
in cert_file_arn. Otherwise bundle_file_arn should include one or more
roots to be included in the trust bundle, one of which must be the end
of the chain for the certificate specified in cert_file_arn.

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Remove old static test cert/key

These are no longer needed since we're generating dynamic ones on every
test run now.

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>

* Update doc/plugin_server_upstreamauthority_awssecret.md

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>
Co-authored-by: Evan Gilman <evan2645@gmail.com>

Signed-off-by: Jay Crumb <jay.crumb@unit21.ai>
Co-authored-by: Evan Gilman <evan2645@gmail.com>
2023-01-05 10:36:28 -08:00
Willian Alves b239112f3a
Add Sigstore on workload attestor for SPIRE (#3159)
* Added Sigstore workload attestor for SPIRE

Thanks to:
@willallves
@rodrigolc
@joaoguazzelli
@marcusvtms
@otaviolcs3
@tjamir
@matheusdefarias

Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <matheusdefariascs@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br>
Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br>
Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Matheus Santos <mfcs@cesar.org.br>
Co-authored-by: Matheus de Farias Cavalcanti Santos <matheusdefariascs@gmail.com>
Co-authored-by: Rodrigo Lopes <rodrigolpscarvalho@gmail.com>
Co-authored-by: Thiago Jamir <tjamir@gmail.com>
Co-authored-by: Rodrigo Lopes <rlc2@cesar.org.br>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: Guazzelli <joao.guazzelli@gmail.com>
2023-01-05 12:42:53 -03:00
dependabot[bot] 0a9d64048a
Bump golang.org/x/net from 0.4.0 to 0.5.0 (#3730)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 21:11:57 -03:00
Agustín Martínez Fayó a7df8a5389
Support running SPIRE as a Windows service (#3625)
* Support running SPIRE as a Windows service

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2023-01-04 17:37:09 -03:00
dependabot[bot] 4e8aee56c7
Bump github.com/shirou/gopsutil/v3 from 3.22.11 to 3.22.12 (#3728)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.11 to 3.22.12.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/commits/v3.22.12)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 16:13:32 -03:00
dependabot[bot] be2947fb71
Bump golang.org/x/crypto from 0.1.0 to 0.4.0 (#3724)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.1.0 to 0.4.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.1.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 14:32:47 -03:00
dependabot[bot] afcbde6297
Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager (#3725)
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 16:31:08 -03:00
dependabot[bot] 8aae8a382a
Bump k8s.io/kube-aggregator from 0.23.3 to 0.26.0 (#3693)
Bumps [k8s.io/kube-aggregator](https://github.com/kubernetes/kube-aggregator) from 0.23.3 to 0.26.0.
- [Release notes](https://github.com/kubernetes/kube-aggregator/releases)
- [Commits](https://github.com/kubernetes/kube-aggregator/compare/v0.23.3...v0.26.0)

---
updated-dependencies:
- dependency-name: k8s.io/kube-aggregator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 15:23:32 -03:00
dependabot[bot] 202713a765
Bump sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.1 (#3719)
* Bump sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.1

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.13.1 to 0.14.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.13.1...v0.14.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update code to solve refactor changes on library

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-30 07:40:10 -07:00
dependabot[bot] f659153c65
Bump google.golang.org/api from 0.103.0 to 0.105.0 (#3723)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.103.0 to 0.105.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.103.0...v0.105.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-27 14:33:53 -03:00
Marcos Yacob 3ef60fc432
Solve flaky tests caused by edge cases where audit logs from previous calls was not successfully cleaned (#3721)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-26 16:35:15 -03:00
dependabot[bot] fc31e86f49
Bump github.com/hashicorp/vault/sdk from 0.6.1 to 0.6.2 (#3720)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.6.1...v0.6.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-26 15:41:25 -03:00
dependabot[bot] 0101524d61
Bump github.com/open-policy-agent/opa from 0.47.3 to 0.47.4 (#3722)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.47.3 to 0.47.4.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.47.3...v0.47.4)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-26 15:06:01 -03:00
dependabot[bot] a9897d088a
Bump github.com/google/go-tpm-tools from 0.3.9 to 0.3.10 (#3718)
Bumps [github.com/google/go-tpm-tools](https://github.com/google/go-tpm-tools) from 0.3.9 to 0.3.10.
- [Release notes](https://github.com/google/go-tpm-tools/releases)
- [Commits](https://github.com/google/go-tpm-tools/compare/v0.3.9...v0.3.10)

---
updated-dependencies:
- dependency-name: github.com/google/go-tpm-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-23 16:13:41 -03:00
dependabot[bot] dbf91a1d4b
Bump github.com/docker/docker (#3704)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.21+incompatible to 20.10.22+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.21...v20.10.22)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-23 08:39:17 -07:00
Alexander Viktorov 42540aeff4
Add serial number and revision number to svid minting log entries (#3699)
* Added svid serial number and entry revision number where applicable

Signed-off-by: Alexander Viktorov <a.viktorov@live.com>
2022-12-22 18:11:17 -03:00
Guilherme Oliveira do Carmo Carvalho fe4b0dd551
Expand gcp kms plugin test scenarios (#3696)
* Add new test case for retry pending generation state

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-22 16:49:10 -03:00
dependabot[bot] 45d29f7b2d
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.75.0 to 1.77.0 (#3714)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.75.0 to 1.77.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.75.0...service/ec2/v1.77.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-22 16:10:35 -03:00
Guilherme Oliveira do Carmo Carvalho 2094f5dacf
Disable dynamic service config to ensure default one (#3712)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-22 15:16:50 -03:00
Marcos Yacob f6ca2805f7
Add DS_Store to .gitignore (#3710)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-22 13:48:09 -03:00
Marco Franssen 9d0b194f4c
Limit workflow job permissions to bare minimum (#3706)
This allows to narrow down workflow permissions in GitHub settings

See https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
and https://docs.github.com/en/actions/security-guides/automatic-token-authentication\#permissions-for-the-github_token

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-12-22 12:58:32 -03:00
Marco Franssen 3cfae580aa
Utilize more native Make features to reduce duplication (#3679)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-12-21 13:27:39 -07:00
Guilherme Oliveira do Carmo Carvalho db16fecd6a
Add default value to output format flag description (#3713)
* Add default value to output format flag description

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-21 12:14:18 -03:00
Brian J Martin 82cbc55c16
Do not test EOL databases (#3709)
Signed-off-by: Brian Martin <15804005+bri365@users.noreply.github.com>
2022-12-20 17:50:21 -07:00
Guilherme Oliveira do Carmo Carvalho 5b6f29e081
Add support for -output flag in spire server federation commands (#3660)
* Add -output flag support for spire server federation commands

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-20 16:07:22 -03:00
dependabot[bot] 9ab77cc00e
Bump cloud.google.com/go/iam from 0.8.0 to 0.9.0 (#3703)
* Bump cloud.google.com/go/iam from 0.8.0 to 0.9.0

Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.8.0 to 0.9.0.
- [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/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-16 16:52:46 -03:00
dependabot[bot] 265290f3ce
Bump k8s.io/api from 0.25.4 to 0.26.0 (#3692)
* Bump k8s.io/api from 0.25.4 to 0.26.0

Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.25.4 to 0.26.0.
- [Release notes](https://github.com/kubernetes/api/releases)
- [Commits](https://github.com/kubernetes/api/compare/v0.25.4...v0.26.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-16 15:52:34 -03:00
Ryan Turner 883a8b7c21
Replace usage of alpine images with scratch images (#3636)
* Replace usage of alpine images with scratch images

Also remove usage of wait-for-it image from GCR that doesn't exist in
GHCR and shouldn't be required.

Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-15 11:57:06 -08:00
Marcos Yacob 95800d3caa
Bump version to 1.5.4 (#3701)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-14 20:32:45 -07:00
dependabot[bot] 175437519d
Bump github.com/open-policy-agent/opa from 0.47.1 to 0.47.3 (#3697)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.47.1 to 0.47.3.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.47.1...v0.47.3)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 15:41:01 -03:00
Marcos Yacob f707313b14
resolve flaky test TestDisposeStaleCryptoKeys (#3695)
* resolve TestDisposeStaleCryptoKeys flaky test

Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-12 17:06:31 -03:00
dependabot[bot] 1fc7ae6068
Bump github.com/hashicorp/go-hclog from 1.3.1 to 1.4.0 (#3674)
* Bump github.com/hashicorp/go-hclog from 1.3.1 to 1.4.0

Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/hashicorp/go-hclog/releases)
- [Commits](https://github.com/hashicorp/go-hclog/compare/v1.3.1...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-hclog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Implement new Logger method GetLevel() in HCLogAdapter

Signed-off-by: Ryan Turner <turner@uber.com>

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-12 15:30:01 -03:00
Guilherme Oliveira do Carmo Carvalho a7a95a1dfe
Update aws node attestor plugin to include new selectors (#3640)
* Update aws node attestor plugin to include new selectors from the instance identity document

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-09 14:05:45 -08:00
Andrew Harding 314a6d6945
Fix push-images script (#3689)
The k8s-workload-registrar element was not removed from
the array but rather stripped of the prefix, leaving
a blank string element. This caused the suffix -scratch
to be passed to docker, which gratefully just failed.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
2022-12-09 11:44:56 -08:00
Ryan Turner 186af671dd
Update release documentation to reflect more currently followed practices (#3563)
* Update release documentation to reflect more currently followed practices

Much of the release documentation has fallen out of date. There are some
key differences to how we manage the project that are not accounted for
in the currently documented process:

- Correlation of PRs to releases is tracked with GitHub milestones
- Every release has its own dedicated release branch
- We are not triggering releases directly off of the HEAD of main branch
- We are post-1.0, where the digits of the version strings have
  different meanings than in pre-1.0 releases. In many cases we were
  using the term "major" where we should be using "minor", and "minor"
  when we should be using "patch".
- The maintainers follow an on-call style rotation, where duties are
  distributed across the maintainers depending on when they are on-call.

Out-of-scope in this PR is defining a process for major version
releases, e.g. 2.x, because we have not defined a conclusive process for
this yet post-1.0.

Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-08 18:15:46 -08:00
Marcos Yacob dd2a038964
Update test to verify disabled keys (#3686)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-12-08 16:49:38 -08:00
Guilherme Oliveira do Carmo Carvalho 4c8ae1e464
Ignore config files from asdf version control manager (#3661)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-08 16:05:39 -08:00
dependabot[bot] 593c5e5a15
Bump github.com/open-policy-agent/opa from 0.47.0 to 0.47.1 (#3673)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.47.0 to 0.47.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.47.0...v0.47.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 10:47:28 -08:00
dependabot[bot] 33d979c08d
Bump github.com/uber-go/tally/v4 from 4.1.3 to 4.1.4 (#3672)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.3...v4.1.4)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 12:26:30 -03:00
Ryan Turner 08c48976b2
Rename spire-oidc-provider scratch image to oidc-discovery-provider (#3654)
In order to preserve the same naming as the alpine-based image published
to GCR, rename the spire-oidc-provider image to oidc-discovery-provider
to match the name referenced in documentation, examples, and the source
code.

The rename to spire-oidc-provider was previously done to convey that the
service is only usable with SPIRE and does not depend on SPIFFE APIs,
since the image is published under the `spiffe` image namespace.

Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-07 15:25:38 -08:00
Marco Franssen 5d8a36278b
Skip k8s-workload-registrar when publishing to ghcr.io (#3678)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-12-07 14:15:20 -08:00
Ryan Turner 8407f71826
Update CHANGELOG.md to include latest releases (#3670)
Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-07 13:22:03 -03:00
Ryan Turner 84aa2c1eb9
Upgrade to Go 1.19.4 (#3669)
Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-07 12:12:40 -03:00
Ryan Turner cd9dad066d
Bump versions (#3668)
Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-07 06:59:10 -07:00
Agustín Martínez Fayó 04b44cd655
Fix race in TestGenerateKey (#3645)
* Fix race in TestGenerateKey

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-12-06 10:56:57 -03:00
dependabot[bot] a8aad778f2
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.74.0 to 1.75.0 (#3667)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.74.0 to 1.75.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.74.0...service/ec2/v1.75.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 14:41:12 -08:00
dependabot[bot] 9b4794a3ee
Bump cloud.google.com/go/iam from 0.7.0 to 0.8.0 (#3666)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.7.0 to 0.8.0.
- [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/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 13:59:21 -08:00
dependabot[bot] 836ca61b05
Bump github.com/open-policy-agent/opa from 0.46.1 to 0.47.0 (#3664)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.46.1 to 0.47.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.46.1...v0.47.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 13:05:03 -08:00
dependabot[bot] c10663c0b0
Bump golang.org/x/time from 0.2.0 to 0.3.0 (#3665)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/time/releases)
- [Commits](https://github.com/golang/time/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 12:18:43 -08:00
dependabot[bot] 2c938035f6
Bump golang.org/x/sys from 0.2.0 to 0.3.0 (#3663)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 11:39:40 -08:00
Agustín Martínez Fayó d15f8de600
Retry GetPublicKey if needed (#3655)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-12-03 13:42:33 -03:00
dependabot[bot] 43eb3474a9
Bump cloud.google.com/go/storage from 1.28.0 to 1.28.1 (#3662)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.28.0 to 1.28.1.
- [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/spanner/v1.28.0...storage/v1.28.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 16:40:49 -08:00
dependabot[bot] ca5394dd69
Bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.0 (#3658)
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 14:41:44 -08:00
dependabot[bot] 101807f205
Bump cloud.google.com/go/kms from 1.6.0 to 1.7.0 (#3659)
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.6.0...dlp/v1.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 13:46:01 -08:00
Marco Franssen fde87a667d
Refactor push-images script to reduce duplication (#3656)
Can be used for both scratch and non-scratch
images.

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-12-02 08:04:37 -03:00
Agustín Martínez Fayó 9dc2206fea
Use the UpdateMask field when calling UpdateCryptoKey (#3653)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-12-01 17:15:41 -03:00
Marco Franssen 5b8d3653b5
Remove strategy from Windows jobs (#3652)
strategy required matrix and only has effect on matrix builds.

My vscode has linting against the scheme and showed a squigly at this element in the yaml

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-12-01 12:25:41 -03:00
Guilherme Oliveira do Carmo Carvalho d59bde3b8e
Use cli printer server bundle commands (#3624)
* Use cliprinter to enable more output format options in list agent command

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-12-01 09:54:04 -03:00
dependabot[bot] ac9bc300f7
Bump github.com/shirou/gopsutil/v3 from 3.22.10 to 3.22.11 (#3651)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.10 to 3.22.11.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.10...v3.22.11)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 09:14:20 -03:00
dependabot[bot] 2c69556374
Bump github.com/aws/aws-sdk-go-v2/service/kms from 1.18.8 to 1.19.0 (#3649)
Bumps [github.com/aws/aws-sdk-go-v2/service/kms](https://github.com/aws/aws-sdk-go-v2) from 1.18.8 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/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.18.8...service/s3/v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/kms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 08:16:26 -03:00
dependabot[bot] e99d25f3b7
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.73.0 to 1.74.0 (#3650)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.73.0 to 1.74.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.73.0...service/ec2/v1.74.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 07:26:51 -03:00
Keegan Witt d65f4779ca
Fix election RBAC YAML (#3617)
* Fix apiGroup for lease RBAC

Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-12-01 06:46:58 -03:00
Ryan Turner a2c1f06c8d
Document existence of release container images (#3641)
Signed-off-by: Ryan Turner <turner@uber.com>
2022-12-01 01:31:32 -03:00
Tomoya Usami 4aa9b7e503
Add note for static building (#3646)
Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
2022-11-30 23:50:48 -03:00
Marco Franssen 7a26883b97
Improve image layers (#3633)
This will reduce the amount of layers that need a rebuild
by moving the most static layers first.

As a benefit builds will be faster and pushes and pulls
will only require the last layer of the image to be
pushed and pulled.

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-11-30 19:41:17 -03:00
Marco Franssen b395b9f6a8
Reduce duplication in docker build (#3635)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-11-30 13:49:41 -03:00
Guilherme Oliveira do Carmo Carvalho bc71caa89d
Auto remove markdown lint container (#3643)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-11-29 16:00:16 -03:00
dependabot[bot] 2b14e804cf
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.72.0 to 1.73.0 (#3644)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.72.0 to 1.73.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.72.0...service/ec2/v1.73.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-29 14:38:05 -03:00
Agustín Martínez Fayó 4e4e5cd3c1
Update list of required permissions (#3639)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-25 17:02:01 -03:00
Agustín Martínez Fayó dedb04b767
Do not try to close client if not initialized (#3638)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-25 16:26:13 -03:00
Guilherme Oliveira do Carmo Carvalho 3d4c8a2da0
Use cli printer server entry commands (#3628)
* Use cliprinter to enable more output format options in list agent command

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-11-24 15:58:05 -03:00
Agustín Martínez Fayó edf3589ec6
Fixes in documentation for "gcp_kms" plugin (#3632)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-23 17:10:58 -03:00
Agustín Martínez Fayó 9ec4d35d5a
Update help in Makefile to include lint commands (#3631)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-23 12:36:20 -07:00
Agustín Martínez Fayó 77f12b7a5c
Update the `k8sbundle` plugin documentation to clarify when `kube_config_file_path` is required (#3630)
* Update the `k8sbundle` plugin documentation to clarify when `kube_config_file_path` is required

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-22 22:05:44 -03:00
Marcos Yacob 6875464f22
Add markdown lint (#3494)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-11-22 12:39:30 -07:00
dependabot[bot] 97112fb652
Bump google.golang.org/grpc from 1.50.1 to 1.51.0 (#3627)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.50.1 to 1.51.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.50.1...v1.51.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 16:46:06 -07:00
dependabot[bot] 0d0a9e7c9c
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.33.0 to 1.33.1 (#3615)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.33.0 to 1.33.1.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.1/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.33.0...v1.33.1)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 15:52:13 -07:00
dependabot[bot] 22ab6c7396
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.70.0 to 1.72.0 (#3626)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.70.0 to 1.72.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.70.0...service/ec2/v1.72.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 12:44:22 -07:00
dependabot[bot] 62d1c14e38
Bump github.com/aws/aws-sdk-go-v2/config from 1.17.4 to 1.18.2 (#3623)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.17.4 to 1.18.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.4...config/v1.18.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 10:47:30 -07:00
Guilherme Oliveira do Carmo Carvalho 9e633765b7
Enable output format definition for spire-server agent commands (#3523)
* Use cliprinter to enable more output format options in list agent command
* Use cliprinter to enable more output format options in count and show agents commands
* Use cliprinter to enable more output format options in evict and ban agents commands

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-11-16 14:09:59 -08:00
Agustín Martínez Fayó e79d6cab34
Fix race in TestDisposeActiveCryptoKeys accessing the stored fake CryptoKeys through the use of locks (#3616)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-16 17:32:56 -03:00
dependabot[bot] e400cfb96e
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.68.0 to 1.70.0 (#3603)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.68.0 to 1.70.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.68.0...service/ec2/v1.70.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 15:02:33 -03:00
Agustín Martínez Fayó 60330f540e
Write files on Windows with a specific security descriptor (#3604)
* Write files on Windows with a specific security descriptor

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-15 18:32:23 -03:00
dependabot[bot] f4fc4eb2b9
Bump k8s.io/client-go from 0.25.3 to 0.25.4 (#3601)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.3 to 0.25.4.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.25.3...v0.25.4)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 14:38:52 -03:00
dependabot[bot] 23b57c6bf8
Bump github.com/mitchellh/cli from 1.1.4 to 1.1.5 (#3599)
Bumps [github.com/mitchellh/cli](https://github.com/mitchellh/cli) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/mitchellh/cli/releases)
- [Commits](https://github.com/mitchellh/cli/compare/v1.1.4...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 12:22:56 -03:00
dependabot[bot] e303d75075
Bump actions/dependency-review-action from 2 to 3 (#3608)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2 to 3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 11:30:24 -03:00
Agustín Martínez Fayó 7bfcd47459
Use `default_x509_svid_ttl` instead of the deprecated `default_svid_ttl` config (#3606)
* Use default_x509_svid_ttl instead of the deprecated default_svid_ttl config

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-11 16:44:02 -03:00
Agustín Martínez Fayó f884f59d16
Fix race in TestDisposeStaleCryptoKeys (#3605)
Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-11 14:09:36 -03:00
dependabot[bot] a1fccd1ece
Bump github.com/prometheus/client_golang from 1.13.1 to 1.14.0 (#3585)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 12:40:25 -03:00
Agustín Martínez Fayó 1e272b0d2b
Introduce the `gcp_kms` KeyManager plugin (#3410)
* Introduce the gcp_kms plugin

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-10 17:29:41 -03:00
Marco Franssen 3a59711555
Fix OIDC healthcheck to work with k8s healthprobes (#3580)
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
2022-11-09 17:58:48 -03:00
Brandon Menc 9b558df0df
Fix spelling (#3584)
Signed-off-by: Brandon Menc <brandonmenc@icloud.com>
2022-11-09 17:22:00 -03:00
dependabot[bot] 0af18e6664
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.66.0 to 1.68.0 (#3592)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.66.0 to 1.68.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.66.0...service/ec2/v1.68.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 16:43:31 -03:00
dependabot[bot] c137a34614
Bump github.com/hashicorp/go-plugin from 1.4.5 to 1.4.6 (#3594)
Bumps [github.com/hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/hashicorp/go-plugin/releases)
- [Changelog](https://github.com/hashicorp/go-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-plugin/compare/v1.4.5...v1.4.6)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 16:05:29 -03:00
dependabot[bot] 31bc1887e9
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity (#3591)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.1.0 to 1.2.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/v1.1...v1.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 15:24:11 -03:00
dependabot[bot] 14a30ca942
Bump golang.org/x/time from 0.1.0 to 0.2.0 (#3588)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/golang/time/releases)
- [Commits](https://github.com/golang/time/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 14:36:53 -03:00
dependabot[bot] 60c8c69b0f
Bump google.golang.org/api from 0.102.0 to 0.103.0 (#3593)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.102.0 to 0.103.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.102.0...v0.103.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 13:51:02 -03:00
dependabot[bot] 85dec8083c
Bump cloud.google.com/go/storage from 1.27.0 to 1.28.0 (#3586)
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.27.0 to 1.28.0.
- [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/spanner/v1.27.0...spanner/v1.28.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-11-09 12:53:15 -03:00
Marcos Yacob 678e1536f0
Bump version to 1.5.2 (#3590)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-11-08 16:57:30 -07:00
Agustín Martínez Fayó 8f8e8431af
Atomic writing of files on Windows with a specific security descriptor (#3577)
* Atomic writing of files on Windows with a specific security descriptor

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-08 18:25:01 -03:00
Dennis Gove 800ab8d322
Fixes #3581: Ensures that config default_svid_ttl can still be used (#3583)
Signed-off-by: Dennis Gove <dgove1@bloomberg.net>
2022-11-08 15:11:32 -03:00
Andrew Harding 9aab1cde1d
Fix racy AttestAgent tests (#3579)
* Fix racy AttestAgent tests

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-11-08 09:45:49 -03:00
Andrew Harding d98577f7eb
Fix racy bundle client tests (#3575)
This change fixes test failures in the bundle client package. The
failures were caused by non-goroutine safe manipulation of a map of
configurations used as a config source and also an errant assertion that
didn't account for production code behavior.

To fix the non-goroutine safe config source, a new type was introduced
that protected the underlying config map with a RW mutex.

The errant assertion assumed that only one bundle refresh would be
performed for a newly discovered trust domain. However, since the manual
refresh operation ends up kicking off a goroutine that will also
periodically refresh the bundle, under certain timing conditions, the
bundle is refreshed twice. The assertion was updated to ensure that the
bundle is updated at least once.

Fixes: #2840,#3401

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-11-04 16:28:29 -06:00
dependabot[bot] c22dc5796a
Bump cloud.google.com/go/security from 1.9.0 to 1.10.0 (#3573)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.9.0...asset/v1.10.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 15:14:04 -06:00
dependabot[bot] c95086b615
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.65.0 to 1.66.0 (#3576)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.65.0 to 1.66.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.65.0...service/ec2/v1.66.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 14:32:58 -06:00
dependabot[bot] 1c14fbbb53
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.1.4 to 1.2.0 (#3574)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.1.4 to 1.2.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.1.4...v1.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 13:47:50 -06:00
dependabot[bot] 57caf583fd
Bump cloud.google.com/go/secretmanager from 1.8.0 to 1.9.0 (#3569)
* Bump cloud.google.com/go/secretmanager from 1.8.0 to 1.9.0

Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.8.0...asset/v1.9.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Andrew Harding <aharding@vmware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <aharding@vmware.com>
2022-11-04 13:03:05 -06:00
Andres Vega 1962db8ee8
Add Unity Technologies to adopters (#3568)
Signed-off-by: Andres Vega <av@monkey.org>
2022-11-04 10:41:36 -06:00
Ryan Turner 45bb04a3f6
Fix upstream-authority-cert-manager test on macOS (#3560)
macOS installs LibreSSL at /usr/bin/openssl. Unless macOS users install
OpenSSL separately and configure their PATH to point to OpenSSL with
precedence over /usr/bin, LibreSSL will be used.

LibreSSL prints Issuer and Subject field information from X.509
certificates in a different format than OpenSSL, which was causing some
assertions in the upstream-authority-cert-manager integration test to
fail on macOS when using LibreSSL. Improve the test to be able to handle
both the OpenSSL and LibreSSL formatting of Subject and Issuer X.509
fields.

Signed-off-by: Ryan Turner <turner@uber.com>
2022-11-04 10:02:17 -06:00
dependabot[bot] 0b8e3a8911
Bump github.com/open-policy-agent/opa from 0.45.0 to 0.46.1 (#3570)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.45.0 to 0.46.1.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.45.0...v0.46.1)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 08:55:23 -06:00
dependabot[bot] e4daeb6c9a
Bump sigs.k8s.io/controller-runtime from 0.13.0 to 0.13.1 (#3567)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 16:01:40 -07:00
dependabot[bot] 71a27861bc
Bump github.com/googleapis/gax-go/v2 from 2.6.0 to 2.7.0 (#3566)
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 14:44:31 -07:00
dependabot[bot] 990a6a9545
Bump google.golang.org/api from 0.101.0 to 0.102.0 (#3557)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.101.0 to 0.102.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.101.0...v0.102.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 13:58:08 -07:00
dependabot[bot] f110278a91
Bump github.com/prometheus/client_golang from 1.13.0 to 1.13.1 (#3556)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.13.1/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.0...v1.13.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 13:19:44 -07:00
Agustín Martínez Fayó 8f25c48126
Update the documentation related with the Delegated Identity API (#3565)
* Update the documentation related with the Delegated Identity API

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
2022-11-03 15:28:45 -03:00
Ryan Turner 375a86ee7d
Update SECURITY.md (#3564)
This document has fallen out of date and does not reflect the currently
supported versions. In order to keep this document current without
needing to update it for every minor release series, document the policy
rather than the exact versions that are supported.

Signed-off-by: Ryan Turner <turner@uber.com>

Signed-off-by: Ryan Turner <turner@uber.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-11-03 13:12:44 -03:00
Ryan Turner c289fd1e45
Bring CHANGELOG.md up to date on main (#3562)
Bring CHANGELOG.md up to date on main 

Signed-off-by: Ryan Turner <turner@uber.com>
2022-11-03 12:27:32 -03:00
Ryan Turner 7e8e4fa7f1
Update versions in main (#3561)
* Update versions in main

Signed-off-by: Ryan Turner <turner@uber.com>
2022-11-03 11:39:43 -03:00
Ryan Turner 39f9da23b3
Update Go to 1.19.3 (#3553)
Go 1.19.3 is a security release that fixes CVE-2022-41716.

Signed-off-by: Ryan Turner <turner@uber.com>
2022-11-02 11:03:22 -06:00
Evan Gilman 10781c58aa
Pin k8s image version in integration tests (#3461)
Previously, the integration tests would rely on the default k8s
image version, which differs based on the version of kind we're
using. This commit explicitly pins the image version such that 1)
it's clear what version of k8s is in use, and 2) it's easily
changed when needed.

Signed-off-by: Evan Gilman <evan2645@gmail.com>
2022-11-01 14:41:04 -06:00
dependabot[bot] e98f90e169
Bump github.com/shirou/gopsutil/v3 from 3.22.9 to 3.22.10 (#3552)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.9 to 3.22.10.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.9...v3.22.10)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 10:03:37 -07:00
dependabot[bot] f771c78bdc
Bump github.com/gofrs/uuid from 4.3.0+incompatible to 4.3.1+incompatible (#3551)
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.3.0+incompatible to 4.3.1+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 16:03:44 -07:00
dependabot[bot] af1ef94107
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.64.0 to 1.65.0 (#3550)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.64.0 to 1.65.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.64.0...service/ec2/v1.65.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 14:47:05 -07:00
dependabot[bot] b67649afc7
Bump github.com/hashicorp/vault/api from 1.8.1 to 1.8.2 (#3548)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 13:38:45 -07:00
dependabot[bot] 7cddbb3306
Bump github.com/hashicorp/vault/sdk from 0.6.0 to 0.6.1 (#3547)
Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 11:49:56 -07:00
Keegan Witt 848b63fc2b
Fix some spelling issues (#3546)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-10-31 07:49:51 -06:00
dependabot[bot] 26127ae502
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.63.0 to 1.64.0 (#3544)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.63.0 to 1.64.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.63.0...service/ec2/v1.64.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-28 10:57:11 -06:00
Andrew Harding 9c7479da76
Remove X509-SVID-TTL field from datastore model (#3541)
In order to remove the x509_svid_ttl column in 1.6.0, and still support
downgrading, we need to remove the X509SvidTtl column from the GORM
model in 1.5.0. Otherwise entry creation/updates will fail after the
downgrade as the 1.5.x code will still try and set the column, which
won't exist anymore.

Removing the field from the model does mean that new 1.5.x deployments will
not have the x509_svid_ttl column. This shouldn't be problematic on
upgrade as long as the column removal migration we do in 1.6.0 is idempotent.

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-27 14:56:44 -06:00
Keegan Witt 1e400b13d5
Fix some spelling issues (#3534)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-10-27 13:15:25 -06:00
dependabot[bot] dd9e2e51aa
Bump cloud.google.com/go/security from 1.8.0 to 1.9.0 (#3539)
Bumps [cloud.google.com/go/security](https://github.com/googleapis/google-cloud-go) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.8.0...asset/v1.9.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/security
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 11:05:53 -07:00
dependabot[bot] 3cbfb6277d
Bump google.golang.org/api from 0.100.0 to 0.101.0 (#3533)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.100.0 to 0.101.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.100.0...v0.101.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 21:27:17 -06:00
dependabot[bot] 740d3956d3
Bump github.com/mattn/go-sqlite3 from 1.14.15 to 1.14.16 (#3532)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.15 to 1.14.16.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.15...v1.14.16)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:53:14 -06:00
dependabot[bot] 05fe6ae4f5
Bump github.com/docker/docker (#3531)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.20+incompatible to 20.10.21+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.20...v20.10.21)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:00:40 -06:00
dependabot[bot] 551464d275
Bump cloud.google.com/go/secretmanager from 1.7.0 to 1.8.0 (#3530)
Bumps [cloud.google.com/go/secretmanager](https://github.com/googleapis/google-cloud-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/asset/v1.7.0...asset/v1.8.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/secretmanager
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 17:43:05 -06:00
dependabot[bot] f10a17d7c5
Bump github.com/GoogleCloudPlatform/cloudsql-proxy from 1.32.0 to 1.33.0 (#3529)
Bumps [github.com/GoogleCloudPlatform/cloudsql-proxy](https://github.com/GoogleCloudPlatform/cloudsql-proxy) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/v1.33.0/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/cloudsql-proxy/compare/v1.32.0...v1.33.0)

---
updated-dependencies:
- dependency-name: github.com/GoogleCloudPlatform/cloudsql-proxy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 16:12:26 -06:00
Guilherme Oliveira do Carmo Carvalho 80074ed14a
Improve run command test coverage (#3505)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-10-26 15:26:30 -06:00
Andrew Harding dbd610a7bf
Use test keys for keymanager and other tests (#3499)
This change uses the available test keys instead of generating new keys
for the keymanager tests which speeds up the tests and avoids sporadic
timeout test failures we've observed in CI/CD, particularly when
generating 4096 bit RSA keys.

This change also updates the testkey package to no longer fail if a
test exceeds the number of pregenerated keys, instead opting to generate
the new key and save it to disk so it can be included in the PR
introducing the test change.

The agent fake keymanager was also updated to use test keys.

CI/CD has also been updated to fail the unit-test step if the git
repository is no longer clean, implying that there were possibly test
keys generated that were not part of the PR.

Additionally, to ensure that production key management flows are not
broken the real key generation routines are used when the NIGHTLY tests
are executing. To prevent spurious timeouts, the go test timeouts are
also removed.

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-26 13:35:33 -06:00
Dennis Gove bcc05ff5a2
Issue #2700: Adds support for X509 and JWT specific SVID TTLs (#3445)
* Adds support for X509 and JWT specific SVID TTLs

Fixes #2700

This change adds support for X509 and JWT specific SVID TTLs in each of the following places
 * Default values in spire-server configuration. Similar to the existing TTL value, if provided then it must be >= 0. A value of 0 is considered 'unset', meaning there is no default.
 * Entry records in the database and API

During Entry creation and update
 * If the API call contains a non-zero X509SvidTtl value then that will be stored, else the config default x509SvidTtl value is used
 * If the API call contains a non-zero JWTSvidTtl value then that will stored, else the config default jwtSvidTtl value is used

During X509-SVID creation
 * If the API call contains a non-zero TTL value then that is used, else
 * If the stored record contains a non-zero X509SvidTtl value then that will be used, else
 * If the stored record contains a non-zero TTL value then that will be used,
 * The hard-coded default X509SvidTTL value will be used

During JWT-SVID creation
 * If the API call contains a non-zero TTL value then that is used, else
 * If the stored record contains a non-zero JWTSvidTtl value then that will be used, else
 * If the stored record contains a non-zero TTL value then that will be used,
 * The hard-coded default JWTSvidTTL value will be used

X509SvidTtl and JwtSvidTtl will be considered during the following cases
 * All must be valid with-respect-to the configured CA TTL - they are all part of the min/max validation checks
 * Entry sorting now includes each of X509SvidTtl and JwtSvidTtl

Signed-off-by: Dennis Gove <dgove1@bloomberg.net>
2022-10-26 12:34:57 -06:00
Guilherme Oliveira do Carmo Carvalho 5f2d901dca
Update cliprinter default flag name (#3528)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-10-25 17:06:14 -06:00
Andrew Harding 6e2b9e01a8
Mark k8s-workload-registrar as deprecated (#3526)
Fixes: #3501

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-25 12:25:21 -06:00
dependabot[bot] 2403380954
Bump github.com/aws/aws-sdk-go-v2/service/acmpca from 1.18.0 to 1.19.0 (#3524)
Bumps [github.com/aws/aws-sdk-go-v2/service/acmpca](https://github.com/aws/aws-sdk-go-v2) from 1.18.0 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/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.18.0...service/s3/v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/acmpca
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 11:43:29 -06:00
Dennis Gove 81f6a7825f
Avoids using the TPM Simulator on Darwin based systems (#3525)
Fixes #2875

This change allows all tests to pass and avoids linting errors on Darwin-based systems. The result is that tests depending on the TPM Simulator will not run on Darwin machines.

Signed-off-by: Dennis Gove <dgove1@bloomberg.net>
2022-10-25 10:13:45 -03:00
dependabot[bot] 11ffa669a7
Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#3521)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 14:36:13 -06:00
dependabot[bot] e65c795ace
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.16.16 to 1.17.0 (#3520)
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.16.16 to 1.17.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.16...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 13:18:21 -06:00
Guilherme Oliveira do Carmo Carvalho 432d2a398e
Fix intermittent test by using a timed require statement (#3517)
* Fix intermittent test by using a timed require statement

Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-10-21 12:34:06 -03:00
Andrew Harding dc64066f63
Add CallCounter details in telemetry docs (#3515)
Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-20 16:26:25 -06:00
dependabot[bot] 7eb425460a
Bump google.golang.org/api from 0.98.0 to 0.100.0 (#3512)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.98.0 to 0.100.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.98.0...v0.100.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 17:53:35 -06:00
dependabot[bot] 965c619989
Bump google.golang.org/grpc from 1.50.0 to 1.50.1 (#3510)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.50.0 to 1.50.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.50.0...v1.50.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <aharding@vmware.com>
2022-10-19 16:08:43 -06:00
Marcos Yacob 38f152e1a1
Remove go health dependency (#3513)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-10-19 15:33:03 -06:00
dependabot[bot] 6f54e32abb
Bump k8s.io/client-go from 0.25.2 to 0.25.3 (#3509)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.2 to 0.25.3.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.25.2...v0.25.3)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <aharding@vmware.com>
2022-10-19 14:56:34 -06:00
dependabot[bot] e375f1085d
Bump github.com/docker/docker (#3508)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.18+incompatible to 20.10.20+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.18...v20.10.20)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Harding <aharding@vmware.com>
2022-10-19 13:51:41 -06:00
Guilherme Oliveira do Carmo Carvalho 50d677f7c6
Enable agent path template customization for azure_msi node attestor plugin (#3488)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-10-19 11:47:31 -06:00
Marcos Yacob 1ec7a038f6
Upgrade go health (#3507)
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-10-18 14:28:17 -06:00
dependabot[bot] 326d7967b4
Bump github.com/hashicorp/vault/api from 1.8.0 to 1.8.1 (#3500)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-16 13:38:25 -07:00
Andrew Harding 2361a3a260
Disable in-mem telemetry collection by default (#3492)
PR #1248 provided a mechanism to disable the in-memory telemetry
collector, which until that point had been always on. The new
configuration block and `enabled` configurable were introduced in a
backwards compatible way, with a warning that the in-memory telemetry
collector would default to disabled in a future release.

This commit changes the behavior to disable the in-memory telemetry
collector by default. In addition, it adds a warning log level that the
"enabled" flag is now deprecated and will be removed in a future
release. We can remove this flag in SPIRE 1.6.0.

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-12 10:28:55 -06:00
dependabot[bot] 5076400c54
Bump github.com/uber-go/tally/v4 from 4.1.2 to 4.1.3 (#3493)
Bumps [github.com/uber-go/tally/v4](https://github.com/uber-go/tally) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/uber-go/tally/releases)
- [Commits](https://github.com/uber-go/tally/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: github.com/uber-go/tally/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 12:51:34 -06:00
dependabot[bot] 629748233b
Bump github.com/open-policy-agent/opa from 0.44.0 to 0.45.0 (#3491)
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.44.0...v0.45.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 09:50:25 -06:00
dependabot[bot] bc7474ef0e
Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.1.3 to 1.1.4 (#3489)
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.1.3...sdk/azcore/v1.1.4)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-07 15:38:17 -06:00
dependabot[bot] f9818b59d1
Bump google.golang.org/grpc from 1.49.0 to 1.50.0 (#3487)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.49.0 to 1.50.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.49.0...v1.50.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-10-07 11:05:43 -03:00
dependabot[bot] d588b7d2b2
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.60.0 to 1.63.0 (#3482)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.60.0 to 1.63.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.60.0...service/ec2/v1.63.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com>
2022-10-07 10:16:29 -03:00
Guilherme Oliveira do Carmo Carvalho 375ee79f69
Resolve provided spire-server bind address (#3479)
Signed-off-by: Guilherme Carvalho <guilhermbrsp@gmail.com>
2022-10-06 15:54:47 -06:00
Andrew Harding 0c996d3336
Upgrade to golangci-lint v1.50.0 (#3486)
Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-06 14:56:34 -06:00
Keegan Witt 76d069762d
Format Markdown tables (#3474)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-10-06 09:35:03 -06:00
Andrew Harding f27b074df6
Upgrade to Go 1.19.2 (#3483)
Upgrade to Go 1.19.2

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-06 11:52:45 -03:00
Andrew Harding b010348ac4
Cherry-pick v1.4.3 into main (#3481)
Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-05 16:14:04 -06:00
Andrew Harding 0ceb728c69
Bump version in main (#3485)
* Bump version in main

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-05 18:15:18 -03:00
Andrew Harding d4372be67b
Remove deprecated NodeResolver plugins and interface (#3470)
Fixes: #3291

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-10-04 16:37:01 -06:00
Keegan Witt 5f1ba34db2
Add version flag to k8s-workload-registrar and oidc-discovery-provider (closes #3464) (#3475)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-10-04 14:27:41 -06:00
dependabot[bot] c59339459f
Bump github.com/shirou/gopsutil/v3 from 3.22.8 to 3.22.9 (#3476)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.8 to 3.22.9.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.8...v3.22.9)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-04 11:32:35 -03:00
Keegan Witt 465ee51909
Fix markdown escapes (#3473)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-09-30 17:46:39 -06:00
Keegan Witt bfa325e021
Spell Kubernetes correctly (#3472)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-09-30 16:29:12 -06:00
Andrew Harding d52a489516
Fail if join token plugin override is configured (#3469)
The external plugin has previously been ignored. In 1.4.0, we deprecated
this ability and logged a warning.

This configuration is now an error for 1.5.0.

Fixes: #3048

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-09-30 12:44:38 -06:00
Andrew Harding 3a41486599
Remove orphaned entry-related row cleanup code (#3471)
Fixes: #3131

Signed-off-by: Andrew Harding <aharding@vmware.com>
2022-09-30 12:15:03 -06:00
Keegan Witt 2b1c38f5c5
.Pod.pod_name should be .Pod.Name in example (#3468)
Signed-off-by: Keegan Witt <keeganwitt@gmail.com>
2022-09-30 10:32:04 -06:00
Daniele 33d028b9df
Bump Ubuntu actions runners from 18.04 to 20.04 (#3462)
Signed-off-by: danieled-it <daniele.registrazioni@outlook.it>
2022-09-29 14:22:16 -07:00
1585 changed files with 109426 additions and 38575 deletions

View File

@ -3,3 +3,9 @@
.cache
releases/
artifacts/
.githooks/
script/
doc/
examples/
oci/
*-image.tar

8
.envrc.example Normal file
View File

@ -0,0 +1,8 @@
toplevel="$(git rev-parse --show-toplevel)"
# build and use the managed go sdk
unset GOROOT
make -C "$toplevel" go-check
PATH="$(make --no-print-directory -C "$toplevel" go-bin-path)"
# add custom direnv initialization below here

View File

@ -1,26 +0,0 @@
#!/bin/sh
# Copyright 2012 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# git gofmt pre-commit hook
#
# To use, store as .git/hooks/pre-commit inside your repository and make sure
# it has execute permissions.
#
# This script does not handle file names that contain spaces.
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.go$')
[ -z "$gofiles" ] && exit 0
unformatted=$(gofmt -l $gofiles)
[ -z "$unformatted" ] && exit 0
# Some files are not gofmt'd. Print message and fail.
echo >&2 "Go files must be formatted with gofmt. Please run:"
for fn in $unformatted; do
echo >&2 " gofmt -w $PWD/$fn"
done
exit 1

View File

@ -6,6 +6,25 @@ updates:
interval: "daily"
time: "09:00"
timezone: "America/Los_Angeles"
groups:
actions:
patterns:
- "github.com/actions/*"
aws-sdk:
patterns:
- "github.com/aws/aws-sdk-go-v2/*"
azure-sdk:
patterns:
- "github.com/Azure/azure-sdk-for-go/*"
google-cloud-sdk:
patterns:
- "cloud.google.com/go/*"
k8s.io:
patterns:
- "k8s.io/*"
sigs.k8s.io:
patterns:
- "sig.k8s.io/*"
ignore:
- dependency-name: "github.com/spiffe/spire-api-sdk"
- dependency-name: "github.com/spiffe/spire-plugin-sdk"
@ -14,6 +33,8 @@ updates:
versions: ["2.x"]
- dependency-name: "github.com/aws/aws-sdk-go-v2*"
update-types: ["version-update:semver-patch"]
- dependency-name: "cloud.google.com/go/*"
update-types: ["version-update:semver-patch"]
open-pull-requests-limit: 5
- package-ecosystem: "github-actions"
directory: "/"

23
.github/workflows/dco.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: DCO
on:
pull_request: {}
workflow_dispatch: {}
merge_group:
types:
- checks_requested
jobs:
check-dco:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python 3.x
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.x'
- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -U dco-check
dco-check --exclude-pattern 'dependabot\[bot\]@users\.noreply\.github\.com'

View File

@ -1,14 +1,15 @@
name: 'Dependency Review'
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

View File

@ -4,31 +4,35 @@ on:
# Random minute number to avoid GH scheduler stampede
- cron: '37 21 * * *'
workflow_dispatch: {}
permissions:
contents: read
packages: write
env:
NIGHTLY: true
jobs:
build-and-publish-images:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images
run: make images scratch-images
- name: Log in to GCR
uses: docker/login-action@v2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install cosign
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Push images
run: ./.github/workflows/scripts/push-images.sh nightly
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Build images
run: make images
- name: Log in to GHCR
uses: docker/login-action@v2
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push images
run: ./.github/workflows/scripts/push-scratch-images.sh nightly
run: ./.github/workflows/scripts/push-images.sh nightly

View File

@ -2,24 +2,30 @@ name: PR Build
on:
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: 1.19.1
merge_group:
types:
- checks_requested
permissions:
contents: read
jobs:
cache-deps:
name: cache-deps (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Setup dep cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -28,27 +34,30 @@ jobs:
lint:
name: lint (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: cache-deps
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup build tool cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Lint
run: make lint
- name: Tidy check
@ -61,18 +70,23 @@ jobs:
unit-test:
strategy:
matrix:
OS: [ubuntu-18.04, macos-latest]
OS: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.OS }}
needs: cache-deps
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -81,17 +95,22 @@ jobs:
unit-test-race-detector:
name: unit-test (linux with race detection)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: cache-deps
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -100,64 +119,74 @@ jobs:
artifacts:
name: artifacts (linux)
runs-on: ubuntu-18.04
needs: [cache-deps]
runs-on: ubuntu-22.04
needs: [cache-deps, images]
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Load cached deps
uses: actions/cache@v3
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
name: images
path: .
- name: Expand archived images
run: |
tar xvf images.tar.gz
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries
name: binaries-linux
path: ./artifacts/
images:
name: images (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: [cache-deps]
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Build images
run: make images
run: make images-no-load
- name: Export images
run: docker save spire-server:latest-local spire-agent:latest-local k8s-workload-registrar:latest-local oidc-discovery-provider:latest-local | gzip > images.tar.gz
run: tar -czvf images.tar.gz *-image.tar
- name: Archive images
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images
path: images.tar.gz
@ -165,15 +194,20 @@ jobs:
images-windows:
name: images (windows)
runs-on: windows-2022
needs: artifact-windows
needs: artifacts-windows
timeout-minutes: 45
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Load cached executables
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
name: bin-windows
path: ./bin/
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Build images
run: make images-windows
- name: Export images
@ -181,55 +215,53 @@ jobs:
docker save spire-server-windows:latest-local spire-agent-windows:latest-local oidc-discovery-provider-windows:latest-local -o images-windows.tar
gzip images-windows.tar
- name: Archive images
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images-windows
path: images-windows.tar.gz
scratch-images:
runs-on: ubuntu-18.04
build-matrix:
name: Build matrix
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Load cached deps
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
- name: Build scratch images
run: make scratch-images
- name: Export scratch images
run: docker save spire-server-scratch:latest-local spire-agent-scratch:latest-local k8s-workload-registrar-scratch:latest-local oidc-discovery-provider-scratch:latest-local | gzip > scratch-images.tar.gz
- name: Archive scratch images
uses: actions/upload-artifact@v3
with:
name: scratch-images
path: scratch-images.tar.gz
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: set-matrix
name: Collect versions
run: |
json_array=$(bash ./.github/workflows/scripts/find_k8s.sh)
echo "test=$json_array" >> $GITHUB_OUTPUT
echo "Collected tests: $json_array"
outputs:
test: ${{ steps.set-matrix.outputs.test }}
integration:
name: integration (linux)
runs-on: ubuntu-18.04
needs: [cache-deps, images, scratch-images]
name: integration (${{ matrix.arch }}) (${{ strategy.job-index}}/${{ strategy.job-total }})
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images]
timeout-minutes: 45
permissions:
contents: read
strategy:
fail-fast: false
matrix:
num_runners: [5]
runner_id: [1, 2, 3, 4, 5]
arch: [x64, arm64]
num_runners: [10]
runner_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
include:
- arch: x64
runs-on: ubuntu-22.04
- arch: arm64
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# The "upgrade" integration test needs the history to ensure
# that the version number in the source code has been bumped as
@ -237,84 +269,154 @@ jobs:
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Download archived images
uses: actions/download-artifact@v3
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Download archived scratch images
uses: actions/download-artifact@v3
with:
name: scratch-images
path: .
- name: Load archived images
run: zcat images.tar.gz | docker load
- name: Load archived scratch images
run: zcat scratch-images.tar.gz | docker load
run: |
tar xvf images.tar.gz
make load-images
- name: Run integration tests
env:
NUM_RUNNERS: ${{ matrix.num_runners }}
THIS_RUNNER: ${{ matrix.runner_id }}
TERM: dumb
CICD_TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
IGNORE_SUITES: ${{ matrix.arch == 'arm64' && 'suites/upstream-authority-ejbca' || '' }} # Waiting for EJBCA to support arm64 (https://github.com/spiffe/spire/issues/6060)
run: ./.github/workflows/scripts/split.sh | xargs ./test/integration/test.sh
integration-k8s:
name: integration-k8s-${{ matrix.test[0] }}-${{ matrix.arch }}
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images, build-matrix]
timeout-minutes: 45
permissions:
contents: read
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-22.04
num_runners: 1
runner_id: 1
- arch: arm64
runs-on: ubuntu-22.04-arm
num_runners: 1
runner_id: 1
#Test elements should be added as [KubeCTLVersion, K8s-image, KindVersion]
test: ${{ fromJson(needs.build-matrix.outputs.test) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# The "upgrade" integration test needs the history to ensure
# that the version number in the source code has been bumped as
# expected. This action does not fetch tags unless we supply a
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Download archived images
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Load archived images
run: |
tar xvf images.tar.gz
make load-images
- name: Run k8s integration
env:
NUM_RUNNERS: ${{ matrix.num_runners }}
THIS_RUNNER: ${{ matrix.runner_id }}
KUBECTLVERSION: ${{ matrix.test[0] }}
K8SIMAGE: ${{ matrix.test[1] }}
KINDVERSION: ${{ matrix.test[2] }}
TERM: dumb
CICD_TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
run: ./.github/workflows/scripts/split_k8s.sh | xargs ./test/integration/test-k8s.sh
integration-windows:
name: integration (windows)
runs-on: windows-2022
needs: images-windows
strategy:
fail-fast: false
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
cache: true
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
path-type: inherit
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Download archived images
uses: actions/download-artifact@v3
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images-windows
path: .
@ -327,15 +429,26 @@ jobs:
cache-deps-windows:
name: cache-deps (windows)
runs-on: windows-2022
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
cache: true
- name: Setup dep cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -346,40 +459,46 @@ jobs:
name: lint (windows)
runs-on: windows-2022
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
cache: true
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup build tool cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Lint
run: make lint
run: make lint-code
- name: Tidy check
run: make tidy-check
- name: Generate check
@ -389,80 +508,105 @@ jobs:
name: unit-test (windows)
runs-on: windows-2022
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
cache: true
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Run unit tests
run: ./.github/workflows/scripts/run_unit_tests.sh
artifact-windows:
name: artifact (windows)
artifacts-windows:
name: artifacts (windows)
runs-on: windows-2022
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
cache: true
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
zip
unzip
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh
- name: Archive binaries
uses: actions/upload-artifact@v3
git base-devel mingw-w64-x86_64-toolchain zip unzip
- name: Build binaries
run: make build
- name: Setup executables cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
name: bin-windows
path: ./bin/
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries
name: binaries-windows
path: ./artifacts/
success:
runs-on: ubuntu-22.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, integration-k8s, lint-windows, unit-test-windows, artifacts-windows, integration-windows]
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Declare victory!
run: echo "# Successful" >> $GITHUB_STEP_SUMMARY

View File

@ -3,21 +3,23 @@ on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]+'
env:
GO_VERSION: 1.19.1
jobs:
cache-deps:
name: cache-deps (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Setup dep cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -26,27 +28,29 @@ jobs:
lint:
name: lint (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: cache-deps
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup build tool cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Lint
run: make lint
- name: Tidy check
@ -59,18 +63,22 @@ jobs:
unit-test:
strategy:
matrix:
OS: [ubuntu-18.04, macos-latest]
OS: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.OS }}
needs: cache-deps
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -79,17 +87,21 @@ jobs:
unit-test-race-detector:
name: unit-test (linux with race detection)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: cache-deps
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -98,64 +110,69 @@ jobs:
artifacts:
name: artifacts (linux)
runs-on: ubuntu-18.04
needs: [cache-deps]
runs-on: ubuntu-22.04
needs: [cache-deps, images]
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Load cached deps
uses: actions/cache@v3
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
name: images
path: .
- name: Expand archived images
run: |
tar xvf images.tar.gz
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries
name: binaries-linux
path: ./artifacts/
images:
name: images (linux)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Build images
run: make images
run: TAG=${GITHUB_REF##refs/tags/v} make images-no-load
- name: Export images
run: docker save spire-server:latest-local spire-agent:latest-local k8s-workload-registrar:latest-local oidc-discovery-provider:latest-local | gzip > images.tar.gz
run: tar -czvf images.tar.gz *-image.tar
- name: Archive images
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images
path: images.tar.gz
@ -163,15 +180,19 @@ jobs:
images-windows:
name: images (windows)
runs-on: windows-2022
needs: artifact-windows
needs: artifacts-windows
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Load cached executables
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
name: bin-windows
path: ./bin/
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Build images
run: make images-windows
- name: Export images
@ -179,55 +200,53 @@ jobs:
docker save spire-server-windows:latest-local spire-agent-windows:latest-local oidc-discovery-provider-windows:latest-local -o images-windows.tar
gzip images-windows.tar
- name: Archive images
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images-windows
path: images-windows.tar.gz
scratch-images:
runs-on: ubuntu-18.04
build-matrix:
name: Build matrix
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Load cached deps
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
- name: Build scratch images
run: make scratch-images
- name: Export scratch images
run: docker save spire-server-scratch:latest-local spire-agent-scratch:latest-local k8s-workload-registrar-scratch:latest-local oidc-discovery-provider-scratch:latest-local | gzip > scratch-images.tar.gz
- name: Archive scratch images
uses: actions/upload-artifact@v3
with:
name: scratch-images
path: scratch-images.tar.gz
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: set-matrix
name: Collect versions
run: |
json_array=$(bash ./.github/workflows/scripts/find_k8s.sh)
echo "test=$json_array" >> $GITHUB_OUTPUT
echo "Collected tests: $json_array"
outputs:
test: ${{ steps.set-matrix.outputs.test }}
integration:
name: integration (linux)
runs-on: ubuntu-18.04
needs: [cache-deps, images, scratch-images]
name: integration (${{ matrix.arch }}) (${{ strategy.job-index}}/${{ strategy.job-total }})
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images]
timeout-minutes: 45
permissions:
contents: read
strategy:
fail-fast: false
matrix:
num_runners: [5]
runner_id: [1, 2, 3, 4, 5]
arch: [x64, arm64]
num_runners: [10]
runner_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
include:
- arch: x64
runs-on: ubuntu-22.04
- arch: arm64
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# The "upgrade" integration test needs the history to ensure
# that the version number in the source code has been bumped as
@ -244,86 +263,148 @@ jobs:
- name: Fix tag annotations
run: git fetch --tags --force
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Download archived images
uses: actions/download-artifact@v3
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Download archived scratch images
uses: actions/download-artifact@v3
with:
name: scratch-images
path: .
- name: Load archived images
run: zcat images.tar.gz | docker load
- name: Load archived scratch images
run: zcat scratch-images.tar.gz | docker load
run: |
tar xvf images.tar.gz
make load-images
- name: Run integration tests
env:
NUM_RUNNERS: ${{ matrix.num_runners }}
THIS_RUNNER: ${{ matrix.runner_id }}
TERM: dumb
IGNORE_SUITES: ${{ matrix.arch == 'arm64' && 'suites/upstream-authority-ejbca' || '' }} # Waiting for EJBCA to support arm64 (https://github.com/spiffe/spire/issues/6060)
# We don't need to specify CICD_TARGET_BRANCH since the upgrade
# integration test will detect the annotated tag for version checking.
# CICD_TARGET_BRANCH:
run: ./.github/workflows/scripts/split.sh | xargs ./test/integration/test.sh
integration-k8s:
name: integration-k8s-${{ matrix.test[0] }}-${{ matrix.arch }}
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images, build-matrix]
timeout-minutes: 45
permissions:
contents: read
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-22.04
num_runners: 1
runner_id: 1
- arch: arm64
runs-on: ubuntu-22.04-arm
num_runners: 1
runner_id: 1
#Test elements should be added as [KubeCTLVersion, K8s-image, KindVersion]
test: ${{ fromJson(needs.build-matrix.outputs.test) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# The "upgrade" integration test needs the history to ensure
# that the version number in the source code has been bumped as
# expected. This action does not fetch tags unless we supply a
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Download archived images
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Load archived images
run: |
tar xvf images.tar.gz
make load-images
- name: Run k8s integration
env:
NUM_RUNNERS: ${{ matrix.num_runners }}
THIS_RUNNER: ${{ matrix.runner_id }}
KUBECTLVERSION: ${{ matrix.test[0] }}
K8SIMAGE: ${{ matrix.test[1] }}
KINDVERSION: ${{ matrix.test[2] }}
TERM: dumb
CICD_TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
run: ./.github/workflows/scripts/split_k8s.sh | xargs ./test/integration/test-k8s.sh
integration-windows:
name: integration (windows)
runs-on: windows-2022
needs: images-windows
strategy:
fail-fast: false
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
path-type: inherit
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Download archived images
uses: actions/download-artifact@v3
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images-windows
path: .
@ -336,15 +417,19 @@ jobs:
cache-deps-windows:
name: cache-deps (windows)
runs-on: windows-2022
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Setup dep cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -355,40 +440,39 @@ jobs:
name: lint (windows)
runs-on: windows-2022
needs: cache-deps-windows
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Setup build tool cache
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Lint
run: make lint
run: make lint-code
- name: Tidy check
run: make tidy-check
- name: Generate check
@ -398,143 +482,146 @@ jobs:
name: unit-test (windows)
runs-on: windows-2022
needs: cache-deps-windows
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
unzip
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Run unit tests
run: ./.github/workflows/scripts/run_unit_tests.sh
artifact-windows:
name: artifact (windows)
artifacts-windows:
name: artifacts (windows)
runs-on: windows-2022
needs: cache-deps-windows
permissions:
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'go.mod'
- name: Load cached deps
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Load cached build tools
uses: actions/cache@v3
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ github.sha }}
restore-keys: |
${{ runner.os }}-tools-
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
zip
unzip
git base-devel mingw-w64-x86_64-toolchain zip unzip
- name: Build binaries
run: make build
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh
- name: Archive binaries
uses: actions/upload-artifact@v3
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Setup executables cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
name: bin-windows
path: ./bin/
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries
name: binaries-windows
path: ./artifacts/
publish-artifacts:
runs-on: ubuntu-18.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration,
lint-windows, unit-test-windows, artifact-windows, integration-windows]
runs-on: ubuntu-22.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, integration-k8s, lint-windows, unit-test-windows, artifacts-windows, integration-windows]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download archived artifacts
uses: actions/download-artifact@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download archived Linux artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: binaries
name: binaries-linux
path: ./artifacts/
- name: Download archived Windows artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: binaries-windows
path: ./artifacts/
- name: Create Release
env:
# GH_REPO is required for older releases of `gh`. Until we're
# reasonably confident that that the gh release is new enough,
# reasonably confident that the gh release is new enough,
# set GH_REPO to the repository to create the release in.
#
# See https://github.com/cli/cli/issues/3556
GH_REPO: ${{ github.repository }}
GH_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create the release using the version number as the title
run: gh release create "${GITHUB_REF#refs/tags/}" ./artifacts/*.zip ./artifacts/*.tar.gz ./artifacts/*.txt --title "${GITHUB_REF#refs/tags/}"
publish-images:
runs-on: ubuntu-18.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration]
runs-on: ubuntu-22.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, integration-k8s, lint-windows, unit-test-windows, artifacts-windows, integration-windows]
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install cosign
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
with:
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@v3
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Download archived scratch images
uses: actions/download-artifact@v3
with:
name: scratch-images
path: .
- name: Load archived images
run: zcat images.tar.gz | docker load
- name: Load archived scratch images
run: zcat scratch-images.tar.gz | docker load
- name: Log in to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
# Push the images to GCR using the version number (without the "v" prefix).
- name: Push images
run: ./.github/workflows/scripts/push-images.sh "${GITHUB_REF#refs/tags/v}"
- name: Log in to GHCR
uses: docker/login-action@v2
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Push the images to GHCR using the version number (without the "v" prefix).
- name: Push images
run: ./.github/workflows/scripts/push-scratch-images.sh "${GITHUB_REF#refs/tags/v}"
run: |
tar xzvf images.tar.gz
./.github/workflows/scripts/push-images.sh "${GITHUB_REF}"

View File

@ -1,14 +1,36 @@
#!/bin/bash
# Builds all SPIRE artifacts for all supported architectures for the provided operating system.
# Usage: build_artifacts.sh <Linux|Windows|macOS>
set -e
usage() {
echo "usage: ${BASH_SOURCE[0]} <Linux|Windows>"
exit 1
}
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export TAG=
if [[ "$GITHUB_REF" =~ ^refs/tags/v[0-9.]+$ ]]; then
# Strip off the leading "v" from the release tag. Release artifacts are
# named just with the version number (e.g. v0.9.3 tag produces
# spire-0.9.3-linux-x64.tar.gz).
TAG="${GITHUB_REF##refs/tags/v}"
# Strip off the leading "v" from the release tag. Release artifacts are
# named just with the version number (e.g. v0.9.3 tag produces
# spire-0.9.3-linux-x64.tar.gz).
TAG="${GITHUB_REF##refs/tags/v}"
fi
# Make references the $TAG environment variable set above
make artifact
[[ $# -eq 1 ]] || usage
os="$1"
case "${os}" in
Linux)
"${SCRIPTDIR}"/build_linux_artifacts.sh
;;
Windows)
"${SCRIPTDIR}"/build_windows_artifacts.sh
;;
*)
echo "Only artifacts for Linux and Windows are supported" 1>&2
usage
;;
esac

View File

@ -0,0 +1,83 @@
#!/bin/bash
set -e
REPODIR=$(git rev-parse --show-toplevel)
TAG=${TAG:-$(git log -n1 --pretty=%h)}
OUTDIR=${OUTDIR:-"${REPODIR}/artifacts"}
TAROPTS=("--owner=root" "--group=root")
TMPDIR=$(mktemp -d)
cleanup() {
rm -rf "${TMPDIR}"
}
trap cleanup EXIT
copy_binary_from_multiarch_tar() {
local arch=$1
local binary=$2
local destdir=$3
local srcpath="/opt/spire/bin/${binary}"
local destpath="${destdir}/${binary}"
local ocidir="ocidir://${TMPDIR}/${arch}/oci/${binary}"
local imagetar="${REPODIR}/${binary}-image.tar"
local platform="linux/${arch}"
echo "Importing multiarch image ${imagetar}..."
regctl image import "${ocidir}" "${imagetar}"
echo "Copying ${srcpath} for platform ${platform}..."
regctl image get-file "${ocidir}" "${srcpath}" "${destpath}" -p "${platform}"
# file does not retain permission bits, so fix up the executable bit.
chmod +x "${destpath}"
}
build_artifact() {
local arch="$1"
local artifact="${OUTDIR}/spire-${TAG}-linux-${arch}-musl.tar.gz"
local checksum="${OUTDIR}/spire-${TAG}-linux-${arch}-musl_sha256sum.txt"
local extras_artifact="${OUTDIR}/spire-extras-${TAG}-linux-${arch}-musl.tar.gz"
local extras_checksum="${OUTDIR}/spire-extras-${TAG}-linux-${arch}-musl_sha256sum.txt"
local tardir="${TMPDIR}/${arch}/tar"
local staging="${tardir}"/spire/spire-${TAG}
local extras_staging="${tardir}"/spire-extras/spire-extras-${TAG}
mkdir -p "${staging}"/bin
mkdir -p "${extras_staging}"/bin
mkdir -p "${OUTDIR}"
echo "Creating \"${artifact}\" and \"${extras_artifact}\""
# Copy in the contents under release/
cp -r "${REPODIR}"/release/posix/spire/* "${staging}"
cp -r "${REPODIR}"/release/posix/spire-extras/* "${extras_staging}"
# Copy in the LICENSE
cp "${REPODIR}"/LICENSE "${staging}"
cp "${REPODIR}"/LICENSE "${extras_staging}"
# Copy in the SPIRE binaries from the docker images:
# 1. import the image from the multiarch tarball into the OCI directory
copy_binary_from_multiarch_tar "$arch" "spire-server" "${staging}/bin"
copy_binary_from_multiarch_tar "$arch" "spire-agent" "${staging}/bin"
copy_binary_from_multiarch_tar "$arch" "oidc-discovery-provider" "${extras_staging}/bin"
# Create the tarballs and checksums
(cd "${tardir}/spire"; tar -cvzf "${artifact}" "${TAROPTS[@]}" -- *)
(cd "${tardir}/spire-extras"; tar -cvzf "${extras_artifact}" "${TAROPTS[@]}" -- *)
(cd "$(dirname "${artifact}")"; shasum -a 256 "$(basename "${artifact}")" > "${checksum}" )
(cd "$(dirname "${extras_artifact}")"; shasum -a 256 "$(basename "${extras_artifact}")" > "${extras_checksum}" )
}
command -v regctl >/dev/null 2>&1 || { echo -e "The regctl cli is required to run this script." >&2 ; exit 1; }
build_artifact amd64
build_artifact arm64

View File

@ -0,0 +1,51 @@
#!/bin/bash
set -e
REPODIR=$(git rev-parse --show-toplevel)
BINDIR="${REPODIR}/bin"
TAG=${TAG:-$(git log -n1 --pretty=%h)}
OUTDIR=${OUTDIR:-"${REPODIR}/artifacts"}
ARCH=amd64
ARTIFACT="${OUTDIR}/spire-${TAG}-windows-${ARCH}.zip"
CHECKSUM="${OUTDIR}/spire-${TAG}-windows-${ARCH}_sha256sum.txt"
EXTRAS_ARTIFACT="${OUTDIR}/spire-extras-${TAG}-windows-${ARCH}.zip"
EXTRAS_CHECKSUM="${OUTDIR}/spire-extras-${TAG}-windows-${ARCH}_sha256sum.txt"
TMPDIR=$(mktemp -d)
cleanup() {
rm -rf "${TMPDIR}"
}
trap cleanup EXIT
STAGING="${TMPDIR}"/spire/spire-${TAG}
EXTRAS_STAGING="${TMPDIR}"/spire-extras/spire-extras-${TAG}
mkdir -p "${STAGING}" "${EXTRAS_STAGING}"
echo "Creating \"${ARTIFACT}\" and \"${EXTRAS_ARTIFACT}\""
# Copy in the contents under release/
cp -r "${REPODIR}"/release/windows/spire/* "${STAGING}"
cp -r "${REPODIR}"/release/windows/spire-extras/* "${EXTRAS_STAGING}"
# Copy in the LICENSE
cp "${REPODIR}"/LICENSE "${STAGING}"
cp "${REPODIR}"/LICENSE "${EXTRAS_STAGING}"
# Copy in the SPIRE binaries
mkdir -p "${STAGING}"/bin "${EXTRAS_STAGING}"/bin
cp "${BINDIR}"/spire-server.exe "${STAGING}"/bin
cp "${BINDIR}"/spire-agent.exe "${STAGING}"/bin
cp "${BINDIR}"/oidc-discovery-provider.exe "${EXTRAS_STAGING}"/bin
mkdir -p "${OUTDIR}"
(cd "${TMPDIR}/spire"; zip -rv "${ARTIFACT}" -- *)
(cd "${TMPDIR}/spire-extras"; zip -rv "${EXTRAS_ARTIFACT}" -- *)
(cd "$(dirname "${ARTIFACT}")"; CertUtil -hashfile "$(basename "${ARTIFACT}")" SHA256 > "${CHECKSUM}")
(cd "$(dirname "${EXTRAS_ARTIFACT}")"; CertUtil -hashfile "$(basename "${EXTRAS_ARTIFACT}")" SHA256 > "${EXTRAS_CHECKSUM}")

74
.github/workflows/scripts/find_k8s.sh vendored Executable file
View File

@ -0,0 +1,74 @@
#!/usr/bin/env bash
kind_release_info=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest)
kind_version=$(echo "$kind_release_info" | jq -r '.tag_name')
all_tags=()
# Currently we're taking the first 5 pages of the URL
for ((page=1; page<=5; page++)); do
# Fetch tags for the current page using curl and jq
tags=$(curl -s "https://hub.docker.com/v2/repositories/kindest/node/tags?page=$page" | jq -r '.results[].name')
# Check if the tags variable is empty
if [[ -z "$tags" ]]; then
break
fi
# Append the current page tags to the all_tags array
all_tags+=( "$tags" )
done
readarray -t tags_sorted < <(printf '%s\n' "${all_tags[@]}" | sort -V)
lowest_target_version=$(cat ./test/integration/suites/k8s/integration_k8s_min_version.txt)
declare -A tags_map
for element in "${tags_sorted[@]}"; do
# Skip 1.32.1 until either a new version of kind is released the problem
# with the kindest/node:1.32.1 image is fixed. See upstream kind issue:
# https://github.com/kubernetes-sigs/kind/issues/3853
if [[ "$element" == "v1.32.1" ]]; then
continue
fi
# Element is in this form: "X.XX.YY"
# If not, continue
num_dots=$(echo "$element" | grep -o '\.' | wc -l)
# Continue to the next iteration if the number of dots is not equal to 2
if [[ "$num_dots" -ne 2 ]]; then
continue
fi
# Extract the "X.XX" part as the key for the map
key="${element%.*}"
key="${key//\"}"
# Check if the key is greater than or equal to "1.21"
if [[ $(printf "%s\n$lowest_target_version" "$key" | sort -V | head -n1) == "$lowest_target_version" ]]; then
# Extract the "YY" part as the value for the map
value="${element##*.}"
tags_map["$key"]=$value
fi
done
# Read the content of the array.txt file
# Currently we just have one row as example, add more if we need to test a specific version
# Test elements should be added as [KubeCTLVersion, K8s-image, KindVersion]
IFS= readarray -t matrix_lines < ./test/integration/suites/k8s/integration_k8s_versions.txt
# Convert each line of the file into a JSON array element
json_array="["
for line in "${matrix_lines[@]}"; do
json_array+="$line,"
done
# Add every version from tags_map
for key in "${!tags_map[@]}"; do
value="${tags_map[$key]}"
k8s_image="kindest/node:$key.$value"
new_version_row="[\"$key.$value\",\"$k8s_image\",\"$kind_version\"]"
json_array+="$new_version_row,"
done
json_array="${json_array%,}]"
echo "${json_array}"

View File

@ -0,0 +1,64 @@
#!/usr/bin/env bash
# shellcheck shell=bash
##
## USAGE: __PROG__
##
## "__PROG__" loads oci tarballs created with xbuild into docker.
##
## Usage example(s):
## ./__PROG__
## PLATFORM=linux/arm64 ./__PROG__
##
## Commands
## - ./__PROG__ loads the oci tarball into Docker.
function usage {
grep '^##' "$0" | sed -e 's/^##//' -e "s/__PROG__/$me/" >&2
}
function normalize_path {
# Remove all /./ sequences.
local path=${1//\/.\//\/}
local npath
# Remove first dir/.. sequence.
npath="${path//[^\/][^\/]*\/\.\.\//}"
# Remove remaining dir/.. sequence.
while [[ $npath != "$path" ]] ; do
path=$npath
npath="${path//[^\/][^\/]*\/\.\.\//}"
done
echo "$path"
}
me=$(basename "$0")
BASEDIR=$(dirname "$0")
ROOTDIR="$(normalize_path "$BASEDIR/../../../")"
command -v regctl >/dev/null 2>&1 || { usage; echo -e "\n * The regctl cli is required to run this script." >&2 ; exit 1; }
command -v docker >/dev/null 2>&1 || { usage; echo -e "\n * The docker cli is required to run this script." >&2 ; exit 1; }
# Takes the current platform architecture or plaftorm as defined externally in a platform variable.
# e.g.:
# linux/amd64
# linux/arm64
# linux/arm64/v7
PLATFORM="${PLATFORM:-local}"
OCI_IMAGES=(
spire-server spire-agent oidc-discovery-provider
)
echo "Importing ${OCI_IMAGES[*]} into docker".
for img in "${OCI_IMAGES[@]}"; do
oci_dir="ocidir://${ROOTDIR}oci/${img}"
platform_tar="${img}-${PLATFORM}-image.tar"
# regclient works with directories rather than tars, so import the OCI tar to a directory
regctl image import "$oci_dir" "${img}-image.tar"
dig="$(regctl image digest --platform "$PLATFORM" "$oci_dir")"
# export the single platform image using the digest
regctl image export "$oci_dir@${dig}" "${platform_tar}"
docker load < "${platform_tar}"
docker image tag "localhost/oci/${img}:latest" "${img}:latest-local"
docker image rm "localhost/oci/${img}:latest"
done

View File

@ -1,20 +1,72 @@
#!/bin/bash
#!/usr/bin/env bash
# shellcheck shell=bash
##
## USAGE: __PROG__
##
## "__PROG__" publishes images to a registry.
##
## Usage example(s):
## ./__PROG__ 1.5.2
## ./__PROG__ v1.5.2
## ./__PROG__ refs/tags/v1.5.2
##
## Commands
## - ./__PROG__ <version> pushes images to the registry using given version.
set -e
IMAGETAG="$1"
if [ -z "$IMAGETAG" ]; then
echo "IMAGETAG not provided!" 1>&2
echo "Usage: push-images.sh IMAGETAG" 1>&2
exit 1
function usage {
grep '^##' "$0" | sed -e 's/^##//' -e "s/__PROG__/$me/" >&2
}
function normalize_path {
# Remove all /./ sequences.
local path=${1//\/.\//\/}
local npath
# Remove first dir/.. sequence.
npath="${path//[^\/][^\/]*\/\.\.\//}"
# Remove remaining dir/.. sequence.
while [[ $npath != "$path" ]] ; do
path=$npath
npath="${path//[^\/][^\/]*\/\.\.\//}"
done
echo "$path"
}
me=$(basename "$0")
BASEDIR=$(dirname "$0")
ROOTDIR="$(normalize_path "$BASEDIR/../../../")"
version="$1"
if [ -z "${version}" ]; then
usage
echo -e "\n Errors:\n * the version must be provided." >&2
exit 1
fi
echo "Pushing images tagged as $IMAGETAG..."
# remove the git tag prefix
# Push the images using the version tag (without the "v" prefix).
# Also strips the refs/tags part if the GITHUB_REF variable is used.
version="${version#refs/tags/v}"
version="${version#v}"
for img in spire-server spire-agent k8s-workload-registrar oidc-discovery-provider; do
gcrimg=gcr.io/spiffe-io/"$img":"${IMAGETAG}"
echo "Executing: docker tag $img:latest-local $gcrimg"
docker tag "$img":latest-local "$gcrimg"
echo "Executing: docker push $gcrimg"
docker push "$gcrimg"
OCI_IMAGES=(
spire-server spire-agent oidc-discovery-provider
)
org_name=$(echo "$GITHUB_REPOSITORY" | tr '/' "\n" | head -1 | tr -d "\n")
org_name="${org_name:-spiffe}" # default to spiffe in case ran on local
registry=ghcr.io/${org_name}
echo "Pushing images ${OCI_IMAGES[*]} to ${registry} with tag ${version}".
for img in "${OCI_IMAGES[@]}"; do
oci_dir="ocidir://${ROOTDIR}oci/${img}"
image_to_push="${registry}/${img}:${version}"
regctl image import "${oci_dir}" "${img}-image.tar"
regctl image copy "${oci_dir}" "${image_to_push}"
image_digest="$(jq -r '.manifests[0].digest' "${ROOTDIR}oci/${img}/index.json")"
cosign sign -y "${registry}/${img}@${image_digest}"
done

View File

@ -1,32 +0,0 @@
#!/bin/bash
set -e
IMAGETAG="$1"
if [ -z "$IMAGETAG" ]; then
echo "IMAGETAG not provided!" 1>&2
echo "Usage: push-images.sh IMAGETAG" 1>&2
exit 1
fi
# Extracting org name rather than hardcoding allows this
# action to be portable across forks
ORGNAME=$(echo "$GITHUB_REPOSITORY" | tr '/' "\n" | head -1 | tr -d "\n")
echo "Pushing images tagged as $IMAGETAG..."
for img in spire-server spire-agent oidc-discovery-provider; do
ghcrimg="ghcr.io/${ORGNAME}/${img}:${IMAGETAG}"
# Detect the oidc image and give it a different name for GHCR
# TODO: Remove this hack and fully rename the image once we move
# off of GCR.
if [ "$img" == "oidc-discovery-provider" ]; then
ghcrimg="ghcr.io/${ORGNAME}/spire-oidc-provider:${IMAGETAG}"
fi
echo "Executing: docker tag $img-scratch:latest-local $ghcrimg"
docker tag "$img"-scratch:latest-local "$ghcrimg"
echo "Executing: docker push $ghcrimg"
docker push "$ghcrimg"
done

View File

@ -14,3 +14,7 @@ if [ -n "${COVERALLS_TOKEN}" ]; then
"$(go env GOPATH)"/bin/goveralls -coverprofile="${COVERPROFILE}" \
-service=github
fi
# This ensures that running the tests didn't modify the source files, for
# example by generating test keys that should have been checked in with the PR.
make git-clean-check

View File

@ -8,9 +8,13 @@ if [ -n "${COVERALLS_TOKEN}" ]; then
go install github.com/mattn/goveralls@v0.0.7
fi
COVERPROFILE="${COVERPROFILE}" make ci-race-test
COVERPROFILE="${COVERPROFILE}" make race-test
if [ -n "${COVERALLS_TOKEN}" ]; then
"$(go env GOPATH)"/bin/goveralls -coverprofile="${COVERPROFILE}" \
-service=github
fi
# This ensures that running the tests didn't modify the source files, for
# example by generating test keys that should have been checked in with the PR.
make git-clean-check

View File

@ -18,7 +18,7 @@ for FILE in test/integration/suites/*; do
job_set[$current_runner]+="${FILE##test/integration/} "
((current_runner++))
if [ $current_runner -gt "$NUM_RUNNERS" ]; then
if [ "$current_runner" -gt "$NUM_RUNNERS" ]; then
current_runner=1
fi
done

26
.github/workflows/scripts/split_k8s.sh vendored Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -e
if [ -z "$NUM_RUNNERS" ]; then
echo "split.sh: NUM_RUNNERS environment variable must be set"
exit 1
fi
if [ -z "$THIS_RUNNER" ]; then
echo "split.sh: THIS_RUNNER environment variable must be set"
exit 1
fi
declare -a job_set
current_runner=1
for FILE in test/integration/suites/k8s*; do
job_set[$current_runner]+="${FILE##test/integration/} "
((current_runner++))
if [ "$current_runner" -gt "$NUM_RUNNERS" ]; then
current_runner=1
fi
done
echo "${job_set[$THIS_RUNNER]}"

39
.github/workflows/stalebot.yaml vendored Normal file
View File

@ -0,0 +1,39 @@
name: stalebot
on:
schedule:
# Random minute number to avoid GH scheduler stampede
- cron: '39 22 * * *'
jobs:
process-stale-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
days-before-issue-stale: 365 # 1 year
days-before-issue-close: 30
stale-issue-label: "stale"
exempt-issue-labels: "blocked" # Ignore blocked issues
stale-issue-message: "This issue is stale because it has been open for 365 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale."
days-before-pr-stale: -1 # Don't handle PRs
days-before-pr-close: -1 # Don't handle PRs
process-stale-blocked-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
only-labels: "blocked"
days-before-issue-stale: 30
days-before-issue-close: -1 # Don't close blocked issues
stale-issue-label: "stale"
stale-issue-message: "This issue has been in the blocked state for 30 days, marking as stale so the blocking issue is re-checked."
days-before-pr-stale: -1 # Don't handle PRs
days-before-pr-close: -1 # Don't handle PRs

18
.gitignore vendored
View File

@ -1,8 +1,10 @@
.build*
.build
.cache
.data
.envrc
.glide
.tmp
.DS_Store
*.swp
*.log
/bin
@ -18,14 +20,24 @@ svid.*.pem
# within the respective main packages.
/spire-server
/spire-agent
/k8s-workload-registrar
/oidc-discovery-provider
cmd/spire-server/spire-server
cmd/spire-agent/spire-agent
support/k8s/k8s-workload-registrar/k8s-workload-registrar
support/oidc-discovery-provider/oidc-discovery-provider
tools/spire-plugingen/spire-plugingen
# Editor specific configuration
.idea
.vscode
# Runtime version manager specific configuration
# asdf config file
.tool-versions
# oci artifacts
*-image.tar
oci/
# Go workspace files
go.work
go.work.sum

View File

@ -1 +1 @@
1.19.1
1.24.4

View File

@ -1,34 +1,87 @@
version: "2"
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 12m
skip-dirs:
- testdata$
- test/mock
skip-files:
- ".*\\.pb\\.go"
- support/k8s/k8s-workload-registrar/mode-crd/api/spiffeid/v1beta1/spiffeid_types.go
linters:
enable:
- bodyclose
- depguard
- copyloopvar
- durationcheck
- errorlint
- goimports
- revive
- exptostd
- gocritic
- gosec
- intrange
- mirror
- misspell
- nakedret
- nilnesserr
- nolintlint
- predeclared
- reassign
- revive
- unconvert
- unparam
- wastedassign
- whitespace
- gocritic
# nolintlint can be re-enabled after the rest of the linters have gained
# support for go1.18.
# - nolintlint
linters-settings:
revive:
# minimal confidence for issues, default is 0.8
confidence: 0.0
settings:
govet:
enable:
- sortslice
- unusedwrite
revive:
confidence: 0
rules:
- name: atomic
- name: bool-literal-in-expr
- name: constant-logical-expr
- name: context-as-argument
- name: datarace
- name: error-naming
- name: error-return
- name: errorf
- name: identical-branches
- name: if-return
- name: increment-decrement
- name: modifies-value-receiver
- name: optimize-operands-order
- name: range
- name: receiver-naming
- name: redundant-import-alias
- name: redundant-test-main-exit
- name: string-of-int
- name: time-equal
- name: unconditional-recursion
- name: unnecessary-stmt
- name: unreachable-code
- name: use-any
- name: use-errors-new
- name: useless-break
- name: var-declaration
- name: waitgroup-by-value
staticcheck:
checks:
- all
- -ST1003
- -QF1001
- -QF1008
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
path: (.*_test\.go$)|(^test/.*)
text: integer overflow conversion
- linters:
- revive
text: Import alias "v1" is redundant
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax

7
.markdownlint.yaml Normal file
View File

@ -0,0 +1,7 @@
MD013: false
# We are not interested on requesting output when using "$" on shell documentation
MD014: false
MD024:
siblings_only: true
# we use emphasis on all node attestors
MD036: false

3
.spire-tool-versions Normal file
View File

@ -0,0 +1,3 @@
golangci-lint v2.1.6
markdown_lint v0.37.0
protoc 29.4

View File

@ -1,34 +1,38 @@
# Adopters
## End users
Known end users with notable contributions to the advancement of the project include:
Known end users with notable contributions to the advancement of the project include:
* Anthem
* Bloomberg
* ByteDance
* Bloomberg
* ByteDance
* Duke Energy
* GitHub
* Netflix
* Niantic
* Pinterest
* Pinterest
* Square
* Twilio
* Twilio
* Uber
* Unity Technologies
* Z Lab Corporation
SPIFFE and SPIRE are being used by numerous other companies, both large and small, to build higher layer products and services. The list includes but is not limited to:
SPIFFE and SPIRE are being used by numerous other companies, both large and small, to build higher layer products and services. The list includes but is not limited to:
* AccuKnox
* Amazon
* Arm
* Cisco
* Decipher Technology Studios
* F5 Networks
* HashiCorp
* Cisco
* Decipher Technology Studios
* F5 Networks
* HashiCorp
* Hewlett Packard Enterprise
* Intel
* Google
* IBM
* Intel
* Google
* IBM
* SAP
* Tigera
* Tigera
* TestifySec
* Transferwise
* VMware
@ -37,70 +41,69 @@ SPIFFE and SPIRE are being used by numerous other companies, both large and smal
SPIFFE and SPIRE have integrations available with a number of open-source projects. The list includes but is not limited to:
* [App Mesh Controller](https://github.com/aws/aws-app-mesh-controller-for-k8s)
* [App Mesh Controller](https://github.com/aws/aws-app-mesh-controller-for-k8s)
* [Athenz](https://github.com/yahoo/athenz)
* [Cert-Manager](https://github.com/cert-manager/csi-driver-spiffe)
* [Consul](https://github.com/hashicorp/consul)
* [Dapr](https://github.com/dapr)
* [Docker](https://github.com/containerd/containerd)
* [Emissary](https://github.com/github/emissary)
* [Envoy](https://github.com/envoyproxy/envoy)
* [Ghostunnel](https://github.com/square/ghostunnel)
* [gRPC](https://pkg.go.dev/github.com/spiffe/go-spiffe/v2/examples/spiffe-grpc)
* [Hamlet](https://github.com/vmware/hamlet)
* [Istio](https://github.com/istio/istio)
* [Knox](https://github.com/pinterest/knox)
* [Kubernetes](https://github.com/kubernetes/kubernetes)
* [NGINX](http://hg.nginx.org/nginx/)
* [Parsec](https://github.com/parallaxsecond/parsec)
* [Sigstore](https://github.com/sigstore/fulcio)
* [Tekton](https://github.com/tektoncd/chains)
* [Tornjak](https://github.com/spiffe/tornjak)
* [Cert-Manager](https://github.com/cert-manager/csi-driver-spiffe)
* [Consul](https://github.com/hashicorp/consul)
* [Dapr](https://github.com/dapr)
* [Docker](https://github.com/containerd/containerd)
* [Emissary](https://github.com/github/emissary)
* [Envoy](https://github.com/envoyproxy/envoy)
* [Ghostunnel](https://github.com/square/ghostunnel)
* [gRPC](https://pkg.go.dev/github.com/spiffe/go-spiffe/v2/examples/spiffe-grpc)
* [Hamlet](https://github.com/vmware/hamlet)
* [Istio](https://github.com/istio/istio)
* [Knox](https://github.com/pinterest/knox)
* [Kubernetes](https://github.com/kubernetes/kubernetes)
* [Linkerd](https://github.com/linkerd/linkerd2)
* [NGINX](http://hg.nginx.org/nginx/)
* [Parsec](https://github.com/parallaxsecond/parsec)
* [Sigstore](https://github.com/sigstore/fulcio)
* [Tekton](https://github.com/tektoncd/chains)
* [Tornjak](https://github.com/spiffe/tornjak)
* [Traefik](https://github.com/traefik/traefik)
## Case Studies/User Stories
* Amazon Web Services blogs about using mTLS with SPIFFE/SPIRE in AWS App Mesh on Amazon EKS
https://aws.amazon.com/blogs/containers/using-mtls-with-spiffe-spire-in-app-mesh-on-eks/
* Amazon Web Services blogs about using mTLS with SPIFFE/SPIRE in AWS App Mesh on Amazon EKS:
<https://aws.amazon.com/blogs/containers/using-mtls-with-spiffe-spire-in-app-mesh-on-eks/>
* Anthem writes about developing a zero trust framework at Anthem Using SPIFFE and SPIRE:
https://upshotstories.com/stories/developing-a-zero-trust-framework-at-anthem-using-spiffe-and-spire
<https://upshotstories.com/stories/developing-a-zero-trust-framework-at-anthem-using-spiffe-and-spire>
* ARM and VMware showcase hardware backed security for multitenancy at the Edge with SPIFFE & PARSEC
https://www.youtube.com/watch?v=-I_rCKMyY7Y
* ARM and VMware showcase hardware backed security for multi-tenancy at the Edge with SPIFFE & PARSEC:
<https://www.youtube.com/watch?v=-I_rCKMyY7Y>
* Bloomberg talks about TPM node attestation with SPIRE:
https://youtu.be/30S0sKRxzjM
<https://youtu.be/30S0sKRxzjM>
* Coinbase details Container Technologies part of their stack:
https://blog.coinbase.com/container-technologies-at-coinbase-d4ae118dcb6c
<https://blog.coinbase.com/container-technologies-at-coinbase-d4ae118dcb6c>
* Duke Energy describes securing the Microgrid using SPIFFE and SPIRE with TPMs
https://www.distributech.com/distributech-international-2022-conference-sessions/achieving-the-promise-of-grid-security-with-openfmb-and-cybersecurity-zero-trust-best-practices
* Duke Energy describes securing the Microgrid using SPIFFE and SPIRE with TPMs:
<https://www.distributech.com/distributech-international-2022-conference-sessions/achieving-the-promise-of-grid-security-with-openfmb-and-cybersecurity-zero-trust-best-practices>
* NGINX/F5 on how NGINX service mesh leverages SPIFFE and SPIRE
https://youtu.be/plRkDK5xFpM
* Google announces standardization on SPIFFE across Google Cloud as the unified workload identity platform offered as a managed service:
<https://www.youtube.com/watch?v=aaPvEUCXvvw>
* Styra demonstrates fortifying microservices with SPIRE and OPA
https://www.youtube.com/watch?v=iQ5ctLQswUc
* NGINX/F5 on how NGINX service mesh leverages SPIFFE and SPIRE:
<https://youtu.be/plRkDK5xFpM>
* Styra demonstrates fortifying microservices with SPIRE and OPA:
<https://www.youtube.com/watch?v=iQ5ctLQswUc>
* Square talks about how Square uses SPIFFE and SPIRE to secure communications across hybrid infrastructure services:
https://youtu.be/H5IlmYmEDKk?t=2585
<https://youtu.be/H5IlmYmEDKk?t=2585>
* Square describes how they provide mTLS identities to Lambdas using SPIFFE and SPIRE
https://developer.squareup.com/blog/providing-mtls-identities-to-lambdas/
* Square describes how they provide mTLS identities to Lambdas using SPIFFE and SPIRE:
<https://developer.squareup.com/blog/providing-mtls-identities-to-lambdas/>
* Tigera demonstrates how Calico, Envoy and SPIRE are used to deliver unified Layer 4 and Layer 7 authorization policies:
https://youtu.be/H5IlmYmEDKk?t=7812
* Uber talks about integrating SPIRE with workload schedulers:
https://youtu.be/H5IlmYmEDKk?t=4703
<https://youtu.be/H5IlmYmEDKk?t=7812>
* Uber talks about integrating SPIRE with workload schedulers:
<https://youtu.be/H5IlmYmEDKk?t=4703>
## Adding a name
If you would like to add your name to this file, submit a pull request with your change.
If you would like to add your name to this file, submit a pull request with your change.

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,10 @@
### Contributor Code of Conduct
# Code of Conduct
## Contributor Code of Conduct
We follow the [CNCF Contributor Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). Additionally, we commit to the following guidelines as detailed on the [SPIFFE Code of Conduct](https://github.com/spiffe/spiffe/blob/main/CODE-OF-CONDUCT.md):
### Community Guidelines
## Community Guidelines
- Our goal is to foster an inclusive and diverse community of technology enthusiasts.
@ -14,6 +16,6 @@ We follow the [CNCF Contributor Code of Conduct](https://github.com/cncf/foundat
- We do our best to avoid [subtle-isms](https://www.recurse.com/manual#sub-sec-social-rules): small actions that make others feel uncomfortable. If you witness a subtle-ism, you may respectfully point it out to the person publicly or privately, or you may ask a moderator to say something. Accidentally saying something biased is common, expected, and readily forgiven. It is not in and of itself a bannable offense.
### Moderation
## Moderation
- If you feel any of SPIFFE's Slack channels require moderation, please e-mail [SPIFFE's Technical Steering Committee (TSC)](mailto:tsc@spiffe.io). The TSC will issue a warning to users who don't follow this code of conduct. A second offense results in a temporary ban. A third offense warrants a permanent ban. It is at the moderator's discretion to un-ban offending users, or to immediately ban a toxic user without warning.

View File

@ -1,27 +1,27 @@
* @evan2645 @amartinezfayo @azdagron @MarcosDY @rturner3
* @evan2645 @amartinezfayo @sorindumitru @MarcosDY @rturner3
##########################################
# Maintainers
##########################################
# Evan Gilman
# VMware, Inc
# SPIRL, Inc.
# @evan2645
# Agustin Martínez Fayó
# Hewlett-Packard Enterprise
# @amartinezfayo
# Andrew Harding
# VMware, Inc
# @azdagron
# Sorin Dumitru
# Bloomberg L.P.
# @sorindumitru
# Marcos Yacob
# Hewlett-Packard Enterprise
# @MarcosDY
# Ryan Turner
# Uber Technologies, Inc
# Cielara AI
# @rturner3
##########################################
@ -29,5 +29,5 @@
##########################################
# Umair Khan
# Hewlett-Packard Enterprise
# Stacklet, Inc.
# @umairmkhan

View File

@ -1,4 +1,6 @@
# Contributor guidelines and Governance
# Contributing
## Contributor guidelines and Governance
Please see
[CONTRIBUTING](https://github.com/spiffe/spiffe/blob/main/CONTRIBUTING.md)
@ -6,20 +8,23 @@ and
[GOVERNANCE](https://github.com/spiffe/spiffe/blob/main/GOVERNANCE.md)
from the SPIFFE project.
# Prerequisites
As a general guideline, it is suggested to first create an issue summarizing the changes you would like to see to the project.
The project maintainers regularly triage open issues to clarify the request, refine the scope, and determine the direction for the issue.
Contributions that are tied to a triaged issue are more likely to be successfully merged into the project.
## Prerequisites
For basic development you will need:
* **Go 1.11** or higher (https://golang.org/dl/)
* **Go 1.11** or higher (<https://golang.org/dl/>)
For development that requires changes to the gRPC interfaces you will need:
* The protobuf compiler (https://github.com/google/protobuf)
* The protobuf documentation generator (https://github.com/pseudomuto/protoc-gen-doc)
* The protobuf compiler (<https://github.com/google/protobuf>)
* The protobuf documentation generator (<https://github.com/pseudomuto/protoc-gen-doc>)
* protoc-gen-go and protoc-gen-spireplugin (`make utils`)
# Building
## Building
Since go modules are used, this repository can live in any folder on your local disk (it is not required to be in GOPATH).
@ -38,20 +43,20 @@ The Makefile takes care of installing the required toolchain as needed. The
toolchain and other build related files are cached under the `.build` folder
(ignored by git).
## Development in Docker
### Development in Docker
You can either build SPIRE on your host or in a Ubuntu docker container. In
You can either build SPIRE on your host or in an Ubuntu docker container. In
both cases you will use the same Makefile commands.
To build SPIRE within a container, first build the development image:
```
```shell
$ make dev-image
```
Then launch a shell inside of development container:
```
```shell
$ make dev-shell
```
@ -59,17 +64,17 @@ Because the docker container shares the `.build` cache and `$GOPATH/pkg/mod`
you will not have to re-install the toolchain or go dependencies every time you
run the container.
# Conventions
## Conventions
In addition to the conventions covered in the SPIFFE project's
[CONTRIBUTING](https://github.com/spiffe/spiffe/blob/main/CONTRIBUTING.md), the following
conventions apply to the SPIRE repository:
## SQL Plugin Changes
### SQL Plugin Changes
Datastore changes must be present in at least one full minor release cycle prior to introducing code changes that depend on them.
## Directory layout
### Directory layout
`/cmd/{spire-server,spire-agent}/`
@ -94,30 +99,30 @@ gRPC .proto files, their generated .pb.go, and README_pb.md.
The protobuf package names should be `spire.{server,agent,api,common}.<name>` and the go package name
should be specified with `option go_package = "<name>";`
## Interfaces
### Interfaces
Packages should be exported through interfaces. Interaction with packages must be done through these
interfaces
Interfaces should be defined in their own file, named (in lowercase) after the name of the
interface. eg. `foodata.go` implements `type FooData interface{}`
interface. e.g. `foodata.go` implements `type FooData any`
## Metrics
### Metrics
As much as possible, label names should be constants defined in the `telemetry` package. Additionally,
specific metrics should be centrally defined in the `telemetry` package or its subpackages. Functions
desiring metrics should delegate counter, gauge, timer, etc. creation to such packages.
The metrics emitted by SPIRE are listed in the [telemetry document](doc/telemetry.md) and should be kept up to date.
The metrics emitted by SPIRE are listed in the [telemetry document](doc/telemetry/telemetry.md) and should be kept up to date.
In addition, metrics should be unit-tested where reasonable.
### Count in Aggregate
#### Count in Aggregate
Event count metrics should aggregate where possible to reduce burden on metric sinks, infrastructure,
and consumers.
That is, instead of:
```
```go
for ... {
if ... {
foo.Bar = X
@ -130,7 +135,7 @@ for ... {
Change to this instead:
```
```go
updateCount := 0
notUpdatedCount := 0
for ... {
@ -149,16 +154,18 @@ telemetry.FooNotUpdatedCount(notUpdatedCount)
Labels added to metrics must be singular only; that is:
- the value of a metrics label must not be an array or slice, and a label of some name must only be added
* the value of a metrics label must not be an array or slice, and a label of some name must only be added
once. Failure to follow this will make metrics less usable for non-tagging metrics libraries such as `statsd`.
As counter examples, DO NOT do the following:
```
```go
[]telemetry.Label{
{Name: "someName", "val1"},
{Name: "someName", "val2"},
}
```
```
```go
var callCounter telemetry.CallCounter
...
callCounter.AddLabel("someName", "val1")
@ -166,12 +173,13 @@ callCounter.AddLabel("someName", "val1")
callCounter.AddLabel("someName", "val2")
```
- the existence of a metrics label is constant for all instances of a given metric. For some given metric A with
* the existence of a metrics label is constant for all instances of a given metric. For some given metric A with
label X, label X must appear in every instance of metric A rather than conditionally. Failure to follow this will
make metrics less usable for non-tagging metrics libraries such as `statsd`, and potentially break aggregation for
tagging metrics libraries.
As a counter example, DO NOT do the following:
```
```go
var callCounter telemetry.CallCounter
...
if caller != "" {
@ -182,8 +190,10 @@ if x > 5000 {
callCounter.AddLabel("big_load", "true")
}
```
Instead, the following would be more acceptable:
```
```go
var callCounter telemetry.CallCounter
...
if caller != "" {
@ -199,7 +209,7 @@ if x > 5000 {
}
```
## Logs and Errors
### Logs and Errors
Errors should start with lower case, and logged messages should follow standard casing.
@ -209,7 +219,7 @@ look for and hinders aggregation.
Log messages and error messages should not end with periods.
## Mocks v.s. Fakes
### Mocks v.s. Fakes
Unit tests should avoid mocks (e.g. those generated via go-mock) and instead
prefer fake implementations. Mocks tend to be brittle as they encode specific
@ -223,13 +233,21 @@ implementation can easily serve the needs for an entire suite of tests and
the behavior is in a centralized location when it needs to be updated. Fakes
are also less inclined to be impacted by changes to usage patterns.
# Git hooks
## Example [direnv][direnv_link] .envrc
We have checked in a pre-commit hook which enforces `go fmt` styling. Please install it
before sending a pull request. From the project root:
We have committed a basic `.envrc.example`. If you use [direnv][direnv_link],
copy it into `.envrc`, edit as desired, and enable it with `direnv allow`. The
`.envrc` is `.gitignored`. Be aware that [source_env][source_env] is insecure
so keep your customizations in `.envrc`.
```
ln -s .githooks/pre-commit .git/hooks/pre-commit
```
# Reporting security vulnerabilities
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at security@spiffe.io. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.
[direnv_link]: https://direnv.net/
[source_env]: https://direnv.net/man/direnv-stdlib.1.html#codesourceenv-ltfileordirpathgtcode
## Project Tool Versions
This project uses a `.spire-tool-versions` file to centralize the versions of various tools used for
development, linting, and other tasks.
## Reporting security vulnerabilities
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at <security@spiffe.io>. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.

View File

@ -1,43 +1,85 @@
# syntax = docker/dockerfile:1.6.0@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
# Build stage
ARG goversion
FROM golang:${goversion}-alpine as builder
RUN apk add build-base git mercurial
ADD go.mod /spire/go.mod
RUN cd /spire && go mod download
ADD . /spire
FROM --platform=${BUILDPLATFORM} golang:${goversion}-alpine3.22 as base
WORKDIR /spire
RUN make build
RUN apk --no-cache --update add file bash clang lld pkgconfig git make
COPY go.* ./
# https://go.dev/ref/mod#module-cache
RUN --mount=type=cache,target=/go/pkg/mod go mod download
COPY . .
# Common base
FROM alpine AS spire-base
RUN apk --no-cache add dumb-init
RUN apk --no-cache add ca-certificates
RUN mkdir -p /opt/spire/bin
# xx is a helper for cross-compilation
# when bumping to a new version analyze the new version for security issues
# then use crane to lookup the digest of that version so we are immutable
# crane digest tonistiigi/xx:1.3.0
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.5.0@sha256:0c6a569797744e45955f39d4f7538ac344bfb7ebf0a54006a0a4297b153ccf0f AS xx
FROM --platform=${BUILDPLATFORM} base as builder
ARG TAG
ARG TARGETPLATFORM
ARG TARGETARCH
COPY --link --from=xx / /
RUN xx-go --wrap
RUN set -e ; xx-apk --no-cache --update add build-base musl-dev libseccomp-dev
ENV CGO_ENABLED=1
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
if [ "$TARGETARCH" = "arm64" ]; then CC=aarch64-alpine-linux-musl; elif [ "$TARGETARCH" = "s390x" ]; then CC=s390x-alpine-linux-musl; fi && \
make build-static git_tag=$TAG git_dirty="" && \
for f in $(find bin -executable -type f); do xx-verify --static $f; done
FROM --platform=${BUILDPLATFORM} scratch AS spire-base
COPY --link --from=builder --chown=root:root --chmod=755 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /opt/spire
# Preparation environment for setting up directories
FROM alpine as prep-spire-server
RUN mkdir -p /spireroot/opt/spire/bin \
/spireroot/etc/spire/server \
/spireroot/run/spire/server/private \
/spireroot/tmp/spire-server/private \
/spireroot/var/lib/spire/server
FROM alpine as prep-spire-agent
RUN mkdir -p /spireroot/opt/spire/bin \
/spireroot/etc/spire/agent \
/spireroot/run/spire/agent/public \
/spireroot/tmp/spire-agent/public \
/spireroot/var/lib/spire/agent
# For users that wish to run SPIRE containers with a specific uid and gid, the
# spireuid and spiregid arguments are provided. The default paths that SPIRE
# will try to read from, write to, and create at runtime are given the
# corresponding file ownership/permissions at build time.
# A default non-root user is defined for SPIRE Server and the OIDC Discovery
# Provider. The SPIRE Agent image runs as root by default to facilitate the
# sharing of the agent socket in Kubernetes environments.
# SPIRE Server
FROM spire-base AS spire-server
COPY --from=builder /spire/bin/spire-server /opt/spire/bin/spire-server
WORKDIR /opt/spire
ENTRYPOINT ["/usr/bin/dumb-init", "/opt/spire/bin/spire-server", "run"]
CMD []
ARG spireuid=1000
ARG spiregid=1000
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/spire-server", "run"]
COPY --link --from=prep-spire-server --chown=${spireuid}:${spiregid} --chmod=755 /spireroot /
COPY --link --from=builder --chown=${spireuid}:${spiregid} --chmod=755 /spire/bin/static/spire-server /opt/spire/bin/
# SPIRE Agent
FROM spire-base AS spire-agent
COPY --from=builder /spire/bin/spire-agent /opt/spire/bin/spire-agent
WORKDIR /opt/spire
ENTRYPOINT ["/usr/bin/dumb-init", "/opt/spire/bin/spire-agent", "run"]
CMD []
# K8S Workload Registrar
FROM spire-base AS k8s-workload-registrar
COPY --from=builder /spire/bin/k8s-workload-registrar /opt/spire/bin/k8s-workload-registrar
WORKDIR /opt/spire
ENTRYPOINT ["/usr/bin/dumb-init", "/opt/spire/bin/k8s-workload-registrar"]
CMD []
ARG spireuid=0
ARG spiregid=0
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/spire-agent", "run"]
COPY --link --from=prep-spire-agent --chown=${spireuid}:${spiregid} --chmod=755 /spireroot /
COPY --link --from=builder --chown=${spireuid}:${spiregid} --chmod=755 /spire/bin/static/spire-agent /opt/spire/bin/
# OIDC Discovery Provider
FROM spire-base AS oidc-discovery-provider
COPY --from=builder /spire/bin/oidc-discovery-provider /opt/spire/bin/oidc-discovery-provider
WORKDIR /opt/spire
ENTRYPOINT ["/usr/bin/dumb-init", "/opt/spire/bin/oidc-discovery-provider"]
CMD []
ARG spireuid=1000
ARG spiregid=1000
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/oidc-discovery-provider"]
COPY --link --from=builder --chown=${spireuid}:${spiregid} --chmod=755 /spire/bin/static/oidc-discovery-provider /opt/spire/bin/

View File

@ -1,6 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:24.04
WORKDIR /spire
RUN apt-get update && apt-get -y install \
curl unzip git build-essential ca-certificates libssl-dev
WORKDIR /spire

View File

@ -1,42 +0,0 @@
# Build stage
ARG goversion
FROM golang:${goversion}-alpine as builder
RUN apk add build-base git mercurial ca-certificates
RUN apk add --update gcc musl-dev
ADD go.mod /spire/go.mod
RUN cd /spire && go mod download
ADD . /spire
WORKDIR /spire
RUN make build-static
# SPIRE Server
FROM scratch AS spire-server-scratch
COPY --from=builder /spire/bin/spire-server-static /opt/spire/bin/spire-server
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /opt/spire
ENTRYPOINT ["/opt/spire/bin/spire-server", "run"]
CMD []
FROM scratch AS spire-agent-scratch
COPY --from=builder /spire/bin/spire-agent-static /opt/spire/bin/spire-agent
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /opt/spire
EXPOSE 8080 8443
ENTRYPOINT ["/opt/spire/bin/spire-agent", "run"]
CMD []
# K8S Workload Registrar
FROM scratch AS k8s-workload-registrar-scratch
COPY --from=builder /spire/bin/k8s-workload-registrar-static /opt/spire/bin/k8s-workload-registrar
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /opt/spire
ENTRYPOINT ["/opt/spire/bin/k8s-workload-registrar"]
CMD []
# OIDC Discovery Provider
FROM scratch AS oidc-discovery-provider-scratch
COPY --from=builder /spire/bin/oidc-discovery-provider-static /opt/spire/bin/oidc-discovery-provider
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /opt/spire
ENTRYPOINT ["/opt/spire/bin/oidc-discovery-provider"]
CMD []

View File

@ -4,32 +4,20 @@
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 AS spire-base-windows
RUN mkdir c:\\spire\\bin
RUN mkdir c:\\spire\\data
WORKDIR C:/spire
CMD []
# SPIRE Server
FROM spire-base-windows AS spire-server-windows
COPY bin/spire-server.exe C:/spire/bin/spire-server.exe
WORKDIR C:/spire
ENTRYPOINT ["c:/spire/bin/spire-server.exe", "run"]
CMD []
COPY bin/spire-server.exe C:/spire/bin/spire-server.exe
# SPIRE Agent
FROM spire-base-windows AS spire-agent-windows
COPY ./bin/spire-agent.exe C:/spire/bin/spire-agent.exe
WORKDIR C:/spire
ENTRYPOINT ["c:/spire/bin/spire-agent.exe", "run"]
CMD []
# K8S Workload Registrar
FROM spire-base-windows AS k8s-workload-registrar-windows
COPY ./bin/k8s-workload-registrar.exe C:/spire/bin/k8s-workload-registrar.exe
WORKDIR c:/spire
ENTRYPOINT ["c:/spire/bin/k8s-workload-registrar.exe"]
CMD []
COPY ./bin/spire-agent.exe C:/spire/bin/spire-agent.exe
# OIDC Discovery Provider
FROM spire-base-windows AS oidc-discovery-provider-windows
COPY ./bin/oidc-discovery-provider.exe c:/spire/bin/oidc-discovery-provider.exe
WORKDIR c:/spire
ENTRYPOINT ["c:/spire/bin/oidc-discovery-provider.exe"]
CMD []
COPY ./bin/oidc-discovery-provider.exe c:/spire/bin/oidc-discovery-provider.exe

View File

@ -1,4 +1,5 @@
# SPIRE Maintainership Guidelines and Processes
This document captures the values, guidelines, and processes that the SPIRE project and its maintainers adhere to. All SPIRE maintainers, in their independent and individual capacity, agree to uphold and abide by the text contained herein.
This process can be changed, either permanently or as a one-time exception, through an 80% supermajority maintainer vote.
@ -6,18 +7,22 @@ This process can be changed, either permanently or as a one-time exception, thro
For a list of active SPIRE maintainers, please see the [CODEOWNERS](CODEOWNERS) file.
## General Governance
The SPIRE project abides by the same [governance procedures][1] as the SPIFFE project, and ultimately reports to the SPIFFE TSC the same way that the SPIFFE project and associated maintainers do.
TSC members do not track day-to-day activity in the SPIFFE/SPIRE projects, and this should be considered when deciding to raise issues to them. While the SPIFFE TSC has the ultimate say, in practice they are only engaged upon serious maintainer disagreement. To say that this would be unprecedented is an understatement.
### Maintainer Responsibility
SPIRE maintainers adhere to the [requirements and responsibilities][2] set forth in the SPIFFE governance document. They further pledge the following:
* To act in the best interest of the project at all times.
* To ensure that project development and direction is a function of community needs.
* To never take any action while hesitant that it is the right action to take.
* To fulfill the responsibilities outlined in this document and its dependents.
### Number of Maintainers
The SPIRE project keeps a total of five maintainer seats. This number was chosen because 1) it results in a healthy distribution of responsibility/load given the current volume of project activity, and 2) an odd number is highly desirable for dispute resolution.
We strive to keep the number of maintainers as low as is reasonably possible, given the fact that maintainers carry powerful privileges.
@ -25,18 +30,21 @@ We strive to keep the number of maintainers as low as is reasonably possible, gi
This section of the document can and should be updated as the above considerations fluctuate. Changes to this section of the document fall under the same requirements as other sections. When changing this section, maintainers must re-review and agree with the document in its entirety, as other guidelines (e.g. voting requirements) will likely change as a result.
### Changes in Maintainership
SPIRE maintainers are appointed according to the [process described in the governance document][2]. Maintainers may voluntarily step down at any time. Unseating a maintainer against their will requires a unanimous vote with the exception of the unseated.
Unseating a maintainer is an extraordinary circumstance. A process to do so is necessary, but its use is not intended. Careful consideration should be made when voting in a new maintainer, particularly in validating that they pledge to uphold the terms of this document. To ensure that these decisions are not taken lightly, and to maintain long term project stability and foresight, no more than one maintainer can be involuntarily unseated in any given nine month period.
SPIRE maintainers are appointed according to the [process described in the governance document][2]. Maintainers may voluntarily step down at any time. Unseating a maintainer against their will requires a unanimous vote except the unseated.
Unseating a maintainer is an extraordinary circumstance. A process to do so is necessary, but its use is not intended. Careful consideration should be made when voting in a new maintainer, particularly in validating that they pledge to uphold the terms of this document. To ensure that these decisions are not taken lightly, and to maintain long term project stability and foresight, no more than one maintainer can be involuntarily unseated in any given nine-month period.
The CNCF MUST be notified of any changes in maintainership via the CNCF Service Desk.
#### Onboarding a New Maintainer
New SPIRE maintainers participate in an onboarding period during which they fulfill all code review and issue management responsibilities that are required for their role. The length of this onboarding period is variable, and is considered complete once both the existing maintainers and the candidate maintainer are comfortable with the candidate's competency in the responsibilities of maintainership. This process MUST be completed prior to the candidate being named an official SPIRE maintainer.
The onboarding period is intended to ensure that the to-be-appointed maintainer is able/willing to take on the time requirements, familiar with SPIRE core logic and concepts, understands the overall system architecture and interactions that comprise it, and is able to work well with both the existing maintainers and the community.
## Change Review and Disagreements
The SPIRE project abides by the same [change review process][3] as the SPIFFE project, unless otherwise specified.
The exact definition/difference between "major" and "minor" changes is left to maintainer's discretion. Changes to particularly sensitive areas like the agent's cache manager, or the server's CA, are always good candidates for additional review. If in doubt, always ask for another review.
@ -44,6 +52,7 @@ The exact definition/difference between "major" and "minor" changes is left to m
If there is a disagreement amongst maintainers over a contribution or proposal, a vote may be called in which a simple majority wins. If any maintainer feels that the result of this vote critically endangers the project or its users, they have the right to raise the matter to the SPIFFE TSC. If this occurs, the contribution or proposal in question MUST be frozen until the SPIFFE TSC has made a decision. Do not take this route lightly (see [General Governance](#general-governance)).
### Security and Usability
SPIRE solves a complicated problem, and is developed and maintained by people with deep expertise. SPIRE maintainers must ensure that new features, log and error messages, documentation and naming choices, are all easily accessible by those who may not be very familiar with SPIFFE or authentication systems in general.
Decisions should favor "secure by default" and "it just works" anywhere possible, and in that order. The number of configurables should be minimized as much as possible, especially in cases where it's believed that many users would need to invoke it, or when their values (and extremes) could significantly affect SPIRE performance, reliability, or security.
@ -51,9 +60,11 @@ Decisions should favor "secure by default" and "it just works" anywhere possible
A good measure is the "beginner" measure. A beginner should be able to easily and quickly understand the configurable/feature, and its potential uses/impacts. They should also be able to easily and quickly troubleshoot a problem when something important goes wrong - and not to mention, be clearly informed of such a condition!
### Review Guidelines
The SPIFFE [governance document][1], its section on [review process][3], and the SPIRE [contribution guidelines][4], must all be applied for any SPIRE review.
While reviewing, SPIRE maintainers should ask questions similar to the following:
* Do I clearly understand the use case that this change is addressing?
* Does the proposed change break any current user's expectations of behavior (i.e. regression)?
* Is it possible for this change to be misconfigured? If it is, what is the impact?
@ -65,76 +76,23 @@ While reviewing, SPIRE maintainers should ask questions similar to the following
The above list is advisory, and is meant only to get the mind going.
## Release and Branch Management
The SPIRE project maintains active support for both the current and the previous major versions. All active development occurs in the `main` branch. Version branches are used for minor releases of the previous major version when necessary.
### Version Branches
When a bug is discovered in the latest release that also affects releases of the prior major version, it is necessary to backport the fix.
If it is the first time that the prior major version is receiving a backported patch, then a version branch is created to track it. The version branch is named `vX.Y` where X and Y are the two most significant digits in the semantic version number. Its base is the last tag present in main for the release in question. For example, if SPIRE is on version 0.9.3, and the last 0.8 release was 0.8.4, then a `v0.8` branch is created with its base being the main commit tagged with `v0.8.4`.
Once the version branch is created, the patch is either cherry picked or backported into a PR against the version branch. The version branch is maintained via the same process as the main branch, including PR approval process etc.
Releases for the previous major version are made directly from its version branch. Ensure that the CHANGELOG is updated in both the main and the version branch to reflect the new release.
### Releasing
The SPIRE release machinery is tag-driven. When the maintainers are ready to release, a tag is pushed referencing the release commit. While the CI/CD pipeline takes care of the rest, it is important to keep an eye on its progress. If an error is encountered during this process, the release is aborted.
The first two releases that a new maintainer performs must be performed under the supervision of maintainer that has already satisfied this requirement.
SPIRE releases are authorized by its maintainers. When doing so, they should carefully consider the proposed release commit. Is there confidence that the changes included do not represent a compatibility concern? Have the affected codepaths been sufficiently exercised, be it by automated test suite or manual testing? Is the maintainer free of general hesitation in releasing this commit, particularly with regards to safety and security? If the answer to any of these questions is "no", then do not release.
A simple majority vote is required to authorize a SPIRE release at a specific commit hash. If any maintainer feels that the result of this vote critically endangers the project or its users, they have the right to raise the matter to the SPIFFE TSC. If this occurs, the release in question MUST be frozen until the SPIFFE TSC has made a decision. Do not take this route lightly (see [General Governance](#general-governance)).
#### Checklist
This section summarizes the steps necessary to execute a SPIRE release. Unless explicitly stated, the below steps must be executed in order.
The following steps must be completed one week prior to release:
* Ensure all changes intended to be included in the release are fully merged.
* Identify a specific commit as the release candidate.
* Create a draft pull request against the main branch with the updates to the CHANGELOG following [these guidelines](doc/changelog_guidelines.md). This allows those tracking the project to have early visibility into what will be included in the upcoming release and an opportunity to provide feedback. The release date can be set as "TBD" while it is a draft.
* Raise an issue "Release SPIRE X.Y.Z", and include the release candidate commit hash. Reference the pull request with the updates to the CHANGELOG.
* If the current state of the main branch has diverged from the candidate commit due to other changes than the ones from the CHANGELOG:
* If there is not a version branch for this release, create a branch following the guidelines described in [Version branches](#version-branches).
* Create a GitHub project named `Release vX.X.X` to identify the PRs that will be cherry-picked. The project should have two statuses to track the progress: one to identify the PRs to be cherry-picked and one for those that have been merged in the version branch.
* Make sure that the [version in the branch](pkg/common/version/version.go) has been bumped to the version that is being released and that the [upgrade integration test is updated](test/integration/suites/upgrade/README.md#maintenance).
* Cherry-pick into the version branch the commits for all the changes that must be included in the release.
**If this is a major release**, the following steps must be completed before releasing:
* Review and exercise all examples in spiffe.io and spire-examples repo against the release candidate hash.
* Raise a PR for every example that updates included text and configuration to reflect current state and best practice.
* Do not merge this PR yet. It will be updated later to use the real version pin rather than the commit hash.
* If anything unusual is encountered during this process, a comment MUST be left on the release issue describing what was observed.
The following steps must be completed to perform a release:
* Mark the pull request to update the CHANGELOG as "Ready for review". Make sure that it is updated with the final release date. **At least two approvals from maintainers are required in order to be able to merge it**. If a version branch was created for the realease, cherry-pick the final CHANGELOG changes into the version branch once they are merged.
* If releasing from main and the current state of the main branch has diverged from the candidate commit due to just the CHANGELOG changes, the candidate commit is now the one that includes the updated CHANGELOG. If releasing from a version branch, the candidate commit is now the one that has the CHANGELOG changes cherry-picked in the branch.
* Cut an annotated tag against the release candidate named `vX.X.X`, where `X.X.X` is the semantic version number of SPIRE.
* The first line of the annotation should be `vX.X.X` followed by the CHANGELOG. **There should be a newline between the version and the CHANGELOG**.
* Push the annotated tag to SPIRE, and watch the build to completion.
* If the build fails, or anything unusual is encountered, abort the release.
* Ensure that the GitHub release, container images, and release artifacts are deleted/rolled back if necessary.
* Visit the releases page on GitHub, copy the release notes, click edit and paste them back in. This works around a GitHub rendering bug that you will notice before completing this task.
* Close the GitHub project created to track the release process.
* Open and merge a PR to bump the SPIRE version to the next projected version and [update the upgrade integration test](test/integration/suites/upgrade/README.md#maintenance).
* For example, after releasing 0.10.0, update the version to 0.10.1, since it is more likely to be released before 0.11.0.
* Ideally, this is the first commit merged following the release.
**If this is a major release**, the following steps must be completed no later than one week after the release:
* PRs to update spiffe.io and spire-examples repo to the latest major version must be merged.
* Ensure that the PRs have been updated to use the version tag instead of the commit sha.
* Broadcast news of release to the community via available means: SPIFFE Slack, Twitter, etc.
See [RELEASING.md](RELEASING.md).
## Community Interaction and Presence
Maintainers represent the front line of SPIFFE and SPIRE community engagement. They are the ones interacting with end users on issues, and with contributors on their PRs.
SPIRE maintainers must make themselves available to the community. It is critical that maintainers engage in this capacity - for understanding user needs and pains, for ensuring success in project adoption and deployment, and to close feedback loops on recently-introduced changes or features... to name a few.
PR and Issue management/response is a critical responsibility for all SPIRE maintainers. In addition, maintainers should, whenever possible:
* Be generally available on the SPIFFE Slack, and engage in questions/conversations raised in the #help and #spire channels.
* Attend SPIFFE/SPIRE community events (physically or virtually).
* Present SPIFFE/SPIRE at meetups and industry conferences.
### Communication Values
SPIRE maintainers always engage in a respectful and constructive manner, and always follow the [SPIFFE Code of Conduct][6].
It is very important for maintainers to understand that contributions are generally acts of generosity, whether it be creating an issue or sending a pull request. It takes time to do these things. In the vast majority of cases, the motivating factor for taking the time to do this is either to improve the quality of the project for others, or to enable the project to (more easily?) solve a problem that it could not previously. Both of these factors are positive.
@ -145,7 +103,7 @@ This is a very important aspect of SPIRE maintainership. Adoption and contributi
## Product Management and Roadmap Curation
In addition to the maintainer seats, the SPIRE project designates one product manager seat. While maintainers strive to ensure that project development and direction is a function of community needs, and interact with end users and contributors on a daily basis, the product manager works to clarify user needs by gathering additional information and context. This includes, but is not limited to, conducting user research and field testing to better inform maintainers, and communicating project development information to the community.
In addition to the maintainer seats, the SPIRE project designates one product manager seat. While maintainers strive to ensure that project development and direction is a function of community needs, and interact with end users and contributors on a daily basis, the product manager works to clarify user needs by gathering additional information and context. This includes, but is not limited to, conducting user research and field-testing to better inform maintainers, and communicating project development information to the community.
Maintainers are expected to have heavy participation in the community, but it may be impractical to dedicate themselves to gathering and analyzing community feedback and end-user pain points. Based on data collection, the role of the product manager is intended to aid maintainers to validate the desirability, feasibility, and viability of efforts to help drive project direction and priorities in long term planning.
@ -165,17 +123,16 @@ The product manager must:
The product manager makes the same pledge as maintainers do to act in the best interest at all times and its seat follows the same change guidelines as maintainer seats as described in the governance document. Unseating a product manager against their will requires a unanimous vote by the maintainers.
## Community Facilitation and Outreach
The project designates a community chair to work with the product manager seat to focus on growing awareness of the project and increasing community engagement. In this role, the community chair is responsible for community outreach and outbound communication.
The project designates a community chair to work with the product manager seat to focus on growing awareness of the project and increasing community engagement. In this role, the community chair is responsible for community outreach and outbound communication.
The responsibilities of the community chair are as follows:
* Maintain, share with the community and execute a plan for proposed marketing and community outreach activities every release cycle.
* Coordinate and facilitate community events (online and in-person).
* Maintain and manage the spiffe.io website, ensuring that it stays available and up-to-date.
* Coordinate social media communications.
* Coordinate social media communications.
* Ensure that all community events and meetings are recorded, and make the recordings available and discoverable on YouTube.
* Ensure that all community meeting notes, discussions, and designs are easily discoverable on Google Docs.
* Encourage use of project official channels for all technical and non-technical discussions.
@ -183,8 +140,6 @@ The responsibilities of the community chair are as follows:
* Protect the privacy and confidentiality of non-public community information, including personal contact information such as email addresses and phone numbers.
* Onboard contributors and welcome them into the community.
[1]: https://github.com/spiffe/spiffe/blob/main/GOVERNANCE.md
[2]: https://github.com/spiffe/spiffe/blob/main/GOVERNANCE.md#maintainers
[3]: https://github.com/spiffe/spiffe/blob/main/GOVERNANCE.md#change-review-process

278
Makefile
View File

@ -26,38 +26,36 @@ help:
@echo
@echo "$(bold)Build:$(reset)"
@echo " $(cyan)build$(reset) - build all SPIRE binaries (default)"
@echo " $(cyan)artifact$(reset) - build SPIRE tarball artifact"
@echo
@echo "$(bold)Test:$(reset)"
@echo " $(cyan)test$(reset) - run unit tests"
@echo " $(cyan)race-test$(reset) - run unit tests with race detection"
@echo " $(cyan)integration$(reset) - run integration tests (requires Docker images)"
@echo " support 'SUITES' variable for executing specific tests"
@echo " and 'IGNORE_SUITES' variable for ignoring tests"
@echo " e.g. SUITES='suites/join-token suites/k8s' make integration"
@echo " $(cyan)integration-windows$(reset) - run integration tests for windows (requires Docker images)"
@echo " support 'SUITES' variable for executing specific tests"
@echo " e.g. SUITES='windows-suites/windows-workload-attestor' make integration-windows"
@echo
@echo "$(bold)Build and test:$(reset)"
@echo " $(cyan)all$(reset) - build all SPIRE binaries, lint the code, and run unit tests"
@echo "$(bold)Lint:$(reset)"
@echo " $(cyan)lint$(reset) - lint the code and markdown files"
@echo " $(cyan)lint-code$(reset) - lint the code"
@echo " $(cyan)lint-md$(reset) - lint markdown files"
@echo
@echo "$(bold)Build, lint and test:$(reset)"
@echo " $(cyan)all$(reset) - build all SPIRE binaries, run linters and unit tests"
@echo
@echo "$(bold)Docker image:$(reset)"
@echo " $(cyan)images$(reset) - build all SPIRE Docker images"
@echo " $(cyan)images-no-load$(reset) - build all SPIRE Docker images but don't load them into the local docker registry"
@echo " $(cyan)spire-server-image$(reset) - build SPIRE server Docker image"
@echo " $(cyan)spire-agent-image$(reset) - build SPIRE agent Docker image"
@echo " $(cyan)k8s-workload-registrar-image$(reset) - build Kubernetes Workload Registrar Docker image"
@echo " $(cyan)oidc-discovery-provider-image$(reset) - build OIDC Discovery Provider Docker image"
@echo "$(bold)Docker from scratch image:$(reset)"
@echo " $(cyan)scratch-images$(reset) - build all SPIRE Docker from scratch images"
@echo " $(cyan)spire-server-scratch-image$(reset) - build SPIRE server Docker scratch image"
@echo " $(cyan)spire-agent-scratch-image$(reset) - build SPIRE agent Docker scratch image"
@echo " $(cyan)k8s-workload-registrar-scratch-image$(reset) - build Kubernetes Workload Registrar Docker scratch image"
@echo " $(cyan)oidc-discovery-provider-scratch-image$(reset) - build OIDC Discovery Provider Docker image"
@echo "$(bold)Windows docker image:$(reset)"
@echo " $(cyan)images-windows$(reset) - build all SPIRE Docker images for windows"
@echo " $(cyan)spire-server-image-windows$(reset) - build SPIRE server Docker image for windows"
@echo " $(cyan)spire-agent-image-windows$(reset) - build SPIRE agent Docker image for windows"
@echo " $(cyan)k8s-workload-registrar-image-windows$(reset) - build Kubernetes Workload Registrar Docker image for windows"
@echo " $(cyan)oidc-discovery-provider-image-windows$(reset) - build OIDC Discovery Provider Docker image for windows"
@echo "$(bold)Developer support:$(reset)"
@echo " $(cyan)dev-image$(reset) - build the development Docker image"
@ -98,42 +96,65 @@ else ifeq ($(arch1),aarch64)
arch2=arm64
else ifeq ($(arch1),arm64)
arch2=arm64
else ifeq ($(arch1),s390x)
arch2=s390x
else ifeq ($(arch1),ppc64le)
arch2=ppc64le
else
$(error unsupported ARCH: $(arch1))
endif
ignore_suites := $(IGNORE_SUITES)
############################################################################
# Docker TLS detection for buildx
############################################################################
dockertls=
ifeq ($(DOCKER_TLS_VERIFY), 1)
dockertls=spire-buildx-tls
endif
############################################################################
# Vars
############################################################################
PLATFORMS ?= linux/amd64,linux/arm64
binaries := spire-server spire-agent oidc-discovery-provider
build_dir := $(DIR)/.build/$(os1)-$(arch1)
go_version_full := $(shell cat .go-version)
go_version := $(go_version_full:.0=)
go_version := $(shell cat .go-version)
go_dir := $(build_dir)/go/$(go_version)
ifeq ($(os1),windows)
go_bin_dir = $(go_dir)/go/bin
go_url = https://storage.googleapis.com/golang/go$(go_version).$(os1)-$(arch2).zip
go_url = https://go.dev/dl/go$(go_version).$(os1)-$(arch2).zip
exe=".exe"
else
go_bin_dir = $(go_dir)/bin
go_url = https://storage.googleapis.com/golang/go$(go_version).$(os1)-$(arch2).tar.gz
go_url = https://go.dev/dl/go$(go_version).$(os1)-$(arch2).tar.gz
exe=
endif
go_path := PATH="$(go_bin_dir):$(PATH)"
golangci_lint_version = v1.49.0
golangci_lint_version := $(shell awk '/golangci-lint/{print $$2}' .spire-tool-versions)
golangci_lint_dir = $(build_dir)/golangci_lint/$(golangci_lint_version)
golangci_lint_bin = $(golangci_lint_dir)/golangci-lint
golangci_lint_cache = $(golangci_lint_dir)/cache
protoc_version = 3.20.1
markdown_lint_version := $(shell awk '/markdown_lint/{print $$2}' .spire-tool-versions)
markdown_lint_image = ghcr.io/igorshubovych/markdownlint-cli:$(markdown_lint_version)
protoc_version := $(shell awk '/protoc/{print $$2}' .spire-tool-versions)
ifeq ($(os1),windows)
protoc_url = https://github.com/protocolbuffers/protobuf/releases/download/v$(protoc_version)/protoc-$(protoc_version)-win64.zip
else ifeq ($(arch2),arm64)
protoc_url = https://github.com/protocolbuffers/protobuf/releases/download/v$(protoc_version)/protoc-$(protoc_version)-$(os2)-aarch_64.zip
else ifeq ($(arch2),s390x)
protoc_url = https://github.com/protocolbuffers/protobuf/releases/download/v$(protoc_version)/protoc-$(protoc_version)-$(os2)-s390_64.zip
else ifeq ($(arch2),ppc64le)
protoc_url = https://github.com/protocolbuffers/protobuf/releases/download/v$(protoc_version)/protoc-$(protoc_version)-$(os2)-ppcle_64.zip
else
protoc_url = https://github.com/protocolbuffers/protobuf/releases/download/v$(protoc_version)/protoc-$(protoc_version)-$(os2)-$(arch1).zip
endif
@ -145,7 +166,7 @@ protoc_gen_go_base_dir := $(build_dir)/protoc-gen-go
protoc_gen_go_dir := $(protoc_gen_go_base_dir)/$(protoc_gen_go_version)-go$(go_version)
protoc_gen_go_bin := $(protoc_gen_go_dir)/protoc-gen-go
protoc_gen_go_grpc_version := v1.1.0
protoc_gen_go_grpc_version := v1.3.0
protoc_gen_go_grpc_base_dir := $(build_dir)/protoc-gen-go-grpc
protoc_gen_go_grpc_dir := $(protoc_gen_go_grpc_base_dir)/$(protoc_gen_go_grpc_version)-go$(go_version)
protoc_gen_go_grpc_bin := $(protoc_gen_go_grpc_dir)/protoc-gen-go-grpc
@ -168,7 +189,7 @@ protos := \
api-protos := \
plugin-protos := \
proto/spire/common/plugin/plugin.proto
proto/spire/common/plugin/plugin.proto
service-protos := \
@ -201,7 +222,11 @@ endif
############################################################################
# Flags passed to all invocations of go test
go_test_flags := -timeout=60s
go_test_flags :=
ifeq ($(NIGHTLY),)
# Cap unit-test timout to 90s unless we're running nightlies.
go_test_flags += -timeout=90s
endif
go_flags :=
ifneq ($(GOPARALLEL),)
@ -226,54 +251,42 @@ ifeq ($(git_dirty),)
go_ldflags += -X github.com/spiffe/spire/pkg/common/version.githash=$(git_hash)
endif
endif
go_ldflags := '${go_ldflags}'
#############################################################################
# Build Targets
#############################################################################
.PHONY: build
build: tidy $(addprefix bin/,$(binaries))
build: tidy bin/spire-server bin/spire-agent bin/k8s-workload-registrar bin/oidc-discovery-provider
go_build := $(go_path) go build $(go_flags) -ldflags '$(go_ldflags)' -o
define binary_rule
.PHONY: $1
$1: | go-check bin/
@echo Building $1...
$(E)$(go_path) go build $$(go_flags) -ldflags $$(go_ldflags) -o $1$(exe) $2
endef
bin/%: cmd/% FORCE | go-check
@echo Building $@
$(E)$(go_build) $@$(exe) ./$<
# main SPIRE binaries
$(eval $(call binary_rule,bin/spire-server,./cmd/spire-server))
$(eval $(call binary_rule,bin/spire-agent,./cmd/spire-agent))
$(eval $(call binary_rule,bin/k8s-workload-registrar,./support/k8s/k8s-workload-registrar))
$(eval $(call binary_rule,bin/oidc-discovery-provider,./support/oidc-discovery-provider))
bin/:
@mkdir -p $@
bin/%: support/% FORCE | go-check
@echo Building $@
$(E)$(go_build) $@$(exe) ./$<
#############################################################################
# Build Static binaries for scratch docker images
# Build static binaries for docker images
#############################################################################
.PHONY: build-static
build-static: tidy bin/spire-server-static bin/spire-agent-static bin/k8s-workload-registrar-static bin/oidc-discovery-provider-static
# The build-static is intended to statically link to musl libc.
# There are possibilities of unexpected errors when statically link to GLIBC.
# https://7thzero.com/blog/golang-w-sqlite3-docker-scratch-image
define binary_rule_static
.PHONY: $1
$1: | go-check bin/
@echo Building $1...
$(E)$(go_path) CGO_ENABLED=1 go build $$(go_flags) -ldflags '-s -w -linkmode external -extldflags "-static"' -o $1$(exe) $2
build-static: tidy $(addprefix bin/static/,$(binaries))
endef
go_build_static := $(go_path) go build $(go_flags) -ldflags '$(go_ldflags) -linkmode external -extldflags "-static"' -o
# static builds
$(eval $(call binary_rule_static,bin/spire-server-static,./cmd/spire-server))
$(eval $(call binary_rule_static,bin/spire-agent-static,./cmd/spire-agent))
$(eval $(call binary_rule_static,bin/k8s-workload-registrar-static,./support/k8s/k8s-workload-registrar))
$(eval $(call binary_rule_static,bin/oidc-discovery-provider-static,./support/oidc-discovery-provider))
bin/static/%: cmd/% FORCE | go-check
@echo Building $@
$(E)$(go_build_static) $@$(exe) ./$<
bin/static/%: support/% FORCE | go-check
$(E)$(go_build_static) $@$(exe) ./$<
#############################################################################
# Test Targets
@ -295,112 +308,81 @@ else
$(E)$(go_path) go test $(go_flags) $(go_test_flags) -race ./...
endif
ci-race-test: | go-check
ifneq ($(COVERPROFILE),)
$(E)SKIP_FLAKY_TESTS_UNDER_RACE_DETECTOR=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 -coverprofile="$(COVERPROFILE)" ./...
else
$(E)SKIP_FLAKY_TESTS_UNDER_RACE_DETECTOR=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 ./...
endif
integration:
ifeq ($(os1), windows)
$(error Integration tests are not supported on windows)
else
$(E)./test/integration/test.sh $(SUITES)
$(E)$(go_path) IGNORE_SUITES='$(ignore_suites)' ./test/integration/test.sh $(SUITES)
endif
integration-windows:
$(E)./test/integration/test-windows.sh $(SUITES)
#############################################################################
# Build Artifact
#############################################################################
.PHONY: artifact
artifact: build
$(E)OUTDIR="$(OUTDIR)" TAG="$(TAG)" ./script/build-artifact.sh
$(E)$(go_path) IGNORE_SUITES='$(ignore_suites)' ./test/integration/test-windows.sh $(SUITES)
#############################################################################
# Docker Images
#############################################################################
.PHONY: spire-buildx-tls
spire-buildx-tls:
$(E)docker context rm -f "$(dockertls)" > /dev/null
$(E)docker context create $(dockertls) --description "$(dockertls)" --docker "host=$(DOCKER_HOST),ca=$(DOCKER_CERT_PATH)/ca.pem,cert=$(DOCKER_CERT_PATH)/cert.pem,key=$(DOCKER_CERT_PATH)/key.pem" > /dev/null
.PHONY: container-builder
container-builder: $(dockertls)
$(E)docker buildx create $(dockertls) --platform $(PLATFORMS) --name container-builder --node container-builder0 --use
define image_rule
.PHONY: $1
$1: $3 container-builder
@echo Building docker image $2 $(PLATFORM)
$(E)docker buildx build \
--platform $(PLATFORMS) \
--build-arg goversion=$(go_version) \
--build-arg TAG=$(TAG) \
--target $2 \
-o type=oci,dest=$2-image.tar \
-f $3 \
.
endef
$(eval $(call image_rule,spire-server-image,spire-server,Dockerfile))
$(eval $(call image_rule,spire-agent-image,spire-agent,Dockerfile))
$(eval $(call image_rule,oidc-discovery-provider-image,oidc-discovery-provider,Dockerfile))
.PHONY: images-no-load
images-no-load: $(addsuffix -image,$(binaries))
.PHONY: images
images: spire-server-image spire-agent-image k8s-workload-registrar-image oidc-discovery-provider-image
images: images-no-load
.github/workflows/scripts/load-oci-archives.sh
.PHONY: spire-server-image
spire-server-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target spire-server -t spire-server .
docker tag spire-server:latest spire-server:latest-local
.PHONY: spire-agent-image
spire-agent-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target spire-agent -t spire-agent .
docker tag spire-agent:latest spire-agent:latest-local
.PHONY: k8s-workload-registrar-image
k8s-workload-registrar-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target k8s-workload-registrar -t k8s-workload-registrar .
docker tag k8s-workload-registrar:latest k8s-workload-registrar:latest-local
.PHONY: oidc-discovery-provider-image
oidc-discovery-provider-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target oidc-discovery-provider -t oidc-discovery-provider .
docker tag oidc-discovery-provider:latest oidc-discovery-provider:latest-local
.PHONY: load-images
load-images:
.github/workflows/scripts/load-oci-archives.sh
#############################################################################
# Docker Images FROM scratch
# Windows Docker Images
#############################################################################
define windows_image_rule
.PHONY: $1
$1: $3
@echo Building docker image $2
$(E)docker build \
--build-arg goversion=$(go_version) \
--target $2 \
-t $2 -t $2:latest-local \
-f $3 \
.
.PHONY: scratch-images
scratch-images: spire-server-scratch-image spire-agent-scratch-image k8s-workload-registrar-scratch-image oidc-discovery-provider-scratch-image
.PHONY: spire-server-scratch-image
spire-server-scratch-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target spire-server-scratch -t spire-server-scratch -f Dockerfile.scratch .
docker tag spire-server-scratch:latest spire-server-scratch:latest-local
.PHONY: spire-agent-scratch-image
spire-agent-scratch-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target spire-agent-scratch -t spire-agent-scratch -f Dockerfile.scratch .
docker tag spire-agent-scratch:latest spire-agent-scratch:latest-local
.PHONY: k8s-workload-registrar-scratch-image
k8s-workload-registrar-scratch-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target k8s-workload-registrar-scratch -t k8s-workload-registrar-scratch -f Dockerfile.scratch .
docker tag k8s-workload-registrar-scratch:latest k8s-workload-registrar-scratch:latest-local
.PHONY: oidc-discovery-provider-scratch-image
oidc-discovery-provider-scratch-image: Dockerfile
docker build --build-arg goversion=$(go_version_full) --target oidc-discovery-provider-scratch -t oidc-discovery-provider-scratch -f Dockerfile.scratch .
docker tag oidc-discovery-provider-scratch:latest oidc-discovery-provider-scratch:latest-local
#############################################################################
# Docker Images
#############################################################################
endef
.PHONY: images-windows
images-windows: spire-server-image-windows spire-agent-image-windows oidc-discovery-provider-image-windows
images-windows: $(addsuffix -windows-image,$(binaries))
.PHONY: spire-server-image-windows
spire-server-image-windows: Dockerfile
docker build -f Dockerfile.windows --target spire-server-windows -t spire-server-windows .
docker tag spire-server-windows:latest spire-server-windows:latest-local
.PHONY: spire-agent-image-windows
spire-agent-image-windows: Dockerfile
docker build -f Dockerfile.windows --target spire-agent-windows -t spire-agent-windows .
docker tag spire-agent-windows:latest spire-agent-windows:latest-local
.PHONY: k8s-workload-registrar-image-windows
k8s-workload-registrar-image-windows: Dockerfile
docker build -f Dockerfile.windows --target k8s-workload-registrar-windows -t k8s-workload-registrar-windows .
docker tag k8s-workload-registrar-windows:latest k8s-workload-registrar-windows:latest-local
.PHONY: oidc-discovery-provider-image-windows
oidc-discovery-provider-image-windows: Dockerfile
docker build -f Dockerfile.windows --target oidc-discovery-provider-windows -t oidc-discovery-provider-windows .
docker tag oidc-discovery-provider-windows:latest oidc-discovery-provider-windows:latest-local
$(eval $(call windows_image_rule,spire-server-windows-image,spire-server-windows,Dockerfile.windows))
$(eval $(call windows_image_rule,spire-agent-windows-image,spire-agent-windows,Dockerfile.windows))
$(eval $(call windows_image_rule,oidc-discovery-provider-windows-image,oidc-discovery-provider-windows,Dockerfile.windows))
#############################################################################
# Code cleanliness
@ -420,11 +402,16 @@ endif
@echo "Ensuring git repository is clean..."
$(E)$(MAKE) git-clean-check
lint: lint-code
lint: lint-code lint-md
lint-code: $(golangci_lint_bin)
$(E)PATH="$(go_bin_dir):$(PATH)" GOLANGCI_LINT_CACHE="$(golangci_lint_cache)" $(golangci_lint_bin) run ./...
lint-code: | go-check
$(E)mkdir -p $(golangci_lint_cache)
$(E)$(go_path) GOLANGCI_LINT_CACHE="$(golangci_lint_cache)" \
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(golangci_lint_version) \
run --max-issues-per-linter=0 --max-same-issues=0 ./...
lint-md:
$(E)docker run --rm -v "$(DIR):/workdir" $(markdown_lint_image) "**/*.md"
#############################################################################
# Code Generation
@ -525,7 +512,7 @@ endif
go-bin-path: go-check
@echo "$(go_bin_dir):${PATH}"
install-toolchain: install-protoc install-golangci-lint install-protoc-gen-go install-protoc-gen-doc | go-check
install-toolchain: install-protoc install-protoc-gen-go | go-check
install-protoc: $(protoc_bin)
@ -535,15 +522,6 @@ $(protoc_bin):
$(E)mkdir -p $(protoc_dir)
$(E)curl -sSfL $(protoc_url) -o $(build_dir)/tmp.zip; unzip -q -d $(protoc_dir) $(build_dir)/tmp.zip; rm $(build_dir)/tmp.zip
install-golangci-lint: $(golangci_lint_bin)
$(golangci_lint_bin): | go-check
@echo "Installing golangci-lint $(golangci_lint_version)..."
$(E)rm -rf $(dir $(golangci_lint_dir))
$(E)mkdir -p $(golangci_lint_dir)
$(E)mkdir -p $(golangci_lint_cache)
$(E)GOBIN=$(golangci_lint_dir) $(go_path) go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_lint_version)
install-protoc-gen-go: $(protoc_gen_go_bin)
$(protoc_gen_go_bin): | go-check

View File

@ -3,12 +3,10 @@
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/3303/badge)](https://bestpractices.coreinfrastructure.org/projects/3303)
[![Build Status](https://github.com/spiffe/spire/actions/workflows/pr_build.yaml/badge.svg)](https://github.com/spiffe/spire/actions/workflows/pr_build.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/spiffe/spire)](https://goreportcard.com/report/github.com/spiffe/spire)
[![Slack Status](https://slack.spiffe.io/badge.svg)](https://slack.spiffe.io)
[![Production Phase](https://img.shields.io/badge/SPIFFE-Prod-green.svg?logoWidth=18&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgdmlld0JveD0iMC4xMSAxLjg2IDM1OC4yOCAzNTguMjgiPjxzdHlsZT5zdmcge2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzYwIDM2MH08L3N0eWxlPjxzdHlsZT4uc3QyLC5zdDN7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDojYmNkOTE4fS5zdDN7ZmlsbDojMDRiZGQ5fTwvc3R5bGU+PGcgaWQ9IkxPR08iPjxwYXRoIGQ9Ik0xMi4xIDguOWgyOC4zYzIuNyAwIDUgMi4yIDUgNXYyOC4zYzAgMi43LTIuMiA1LTUgNUgxMi4xYy0yLjcgMC01LTIuMi01LTVWMTMuOWMuMS0yLjcgMi4zLTUgNS01eiIgY2xhc3M9InN0MiIvPjxwYXRoIGQ9Ik04OC43IDguOWgyNThjMi43IDAgNSAyLjIgNSA1djI4LjNjMCAyLjctMi4yIDUtNSA1aC0yNThjLTIuNyAwLTUtMi4yLTUtNVYxMy45YzAtMi43IDIuMi01IDUtNXoiIGNsYXNzPSJzdDMiLz48cGF0aCBkPSJNMzQ2LjcgODUuNWgtMjguM2MtMi43IDAtNSAyLjItNSA1djI4LjNjMCAyLjggMi4yIDUgNSA1aDI4LjNjMi43IDAgNS0yLjIgNS01VjkwLjVjMC0yLjgtMi4zLTUtNS01eiIgY2xhc3M9InN0MiIvPjxwYXRoIGQ9Ik0xOTMuNiA4NS41SDEyLjFjLTIuNyAwLTUgMi4zLTUgNXYyOC4zYzAgMi43IDIuMiA1IDUgNWgxODEuNWMyLjcgMCA1LTIuMiA1LTVWOTAuNWMwLTIuOC0yLjItNS01LTV6IiBjbGFzcz0ic3QzIi8+PHBhdGggZD0iTTI3MC4yIDg1LjVoLTI4LjNjLTIuNyAwLTUgMi4yLTUgNXYyOC4zYzAgMi44IDIuMiA1IDUgNWgyOC4zYzIuNyAwIDUtMi4yIDUtNVY5MC41Yy0uMS0yLjgtMi4zLTUtNS01eiIgY2xhc3M9InN0MiIvPjxwYXRoIGQ9Ik0yNzAuMiAxNjJIODguN2MtMi43IDAtNSAyLjItNSA1djI4LjNjMCAyLjcgMi4yIDUgNSA1aDE4MS41YzIuNyAwIDUtMi4yIDUtNVYxNjdjLS4xLTIuOC0yLjMtNS01LTV6IiBjbGFzcz0ic3QzIi8+PHBhdGggZD0iTTM0Ni43IDE2MmgtMjguM2MtMi43IDAtNSAyLjItNSA1djI4LjNjMCAyLjggMi4yIDUgNSA1aDI4LjNjMi43IDAgNS0yLjIgNS01VjE2N2MwLTIuOC0yLjMtNS01LTV6bS0zMDYuMyAwSDEyLjFjLTIuNyAwLTUgMi4yLTUgNXYyOC4zYzAgMi44IDIuMiA1IDUgNWgyOC4zYzIuNyAwIDUtMi4yIDUtNVYxNjdjMC0yLjgtMi4yLTUtNS01em0tMjguMyA3Ni41aDI4LjNjMi43IDAgNSAyLjIgNSA1djI4LjNjMCAyLjctMi4yIDUtNSA1SDEyLjFjLTIuNyAwLTUtMi4yLTUtNXYtMjguM2MuMS0yLjcgMi4zLTUgNS01eiIgY2xhc3M9InN0MiIvPjxwYXRoIGQ9Ik0xNjUuMiAyMzguNWgxODEuNWMyLjcgMCA1IDIuMiA1IDV2MjguM2MwIDIuNy0yLjIgNS01IDVIMTY1LjJjLTIuNyAwLTUtMi4yLTUtNXYtMjguM2MwLTIuNyAyLjItNSA1LTV6IiBjbGFzcz0ic3QzIi8+PHBhdGggZD0iTTg4LjcgMjM4LjVIMTE3YzIuNyAwIDUgMi4yIDUgNXYyOC4zYzAgMi43LTIuMiA1LTUgNUg4OC43Yy0yLjcgMC01LTIuMi01LTV2LTI4LjNjMC0yLjcgMi4yLTUgNS01em0yNTggNzYuN2gtMjguM2MtMi43IDAtNSAyLjItNSA1djI4LjNjMCAyLjggMi4yIDUgNSA1aDI4LjNjMi43IDAgNS0yLjIgNS01di0yOC4zYzAtMi44LTIuMy01LTUtNXoiIGNsYXNzPSJzdDIiLz48cGF0aCBkPSJNMjcwLjIgMzE1LjJoLTI1OGMtMi43IDAtNSAyLjItNSA1djI4LjNjMCAyLjcgMi4yIDUgNSA1aDI1OGMyLjcgMCA1LTIuMiA1LTV2LTI4LjNjLS4xLTIuOC0yLjMtNS01LTV6IiBjbGFzcz0ic3QzIi8+PC9nPjwvc3ZnPg==)](https://github.com/spiffe/spiffe/blob/main/MATURITY.md#production)
SPIRE (the [SPIFFE](https://github.com/spiffe/spiffe) Runtime Environment) is a toolchain of APIs for establishing trust between software systems across a wide variety of hosting platforms. SPIRE exposes the [SPIFFE Workload API](https://github.com/spiffe/go-spiffe/blob/main/v2/proto/spiffe/workload/workload.proto), which can attest running software systems and issue [SPIFFE IDs](https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE-ID.md) and [SVID](https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE-ID.md)s to them. This in turn allows two workloads to establish trust between each other, for example by establishing an mTLS connection or by signing and verifying a JWT token. SPIRE can also enable workloads to securely authenticate to a secret store, a database, or a cloud provider service.
- [Get SPIRE](#get-spire)
- [Learn about SPIRE](#learn-about-spire)
- [Integrate with SPIRE](#integrate-with-spire)
@ -16,13 +14,12 @@ SPIRE (the [SPIFFE](https://github.com/spiffe/spiffe) Runtime Environment) is a
- [Further Reading](#further-reading)
- [Security](#security)
SPIRE is a [graduated](https://www.cncf.io/projects/spire/) project of the [Cloud Native Computing Foundation](https://cncf.io) (CNCF). If you are an organization that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF.
## Get SPIRE
- Pre-built releases of SPIRE can be found at [https://github.com/spiffe/spire/releases](https://github.com/spiffe/spire/releases). These releases contain both SPIRE Server and SPIRE Agent binaries.
- Container images are published for [spire-server](https://ghcr.io/spiffe/spire-server), [spire-agent](https://ghcr.io/spiffe/spire-agent), and [oidc-discovery-provider](https://ghcr.io/spiffe/oidc-discovery-provider).
- Alternatively, you can [build SPIRE from source](/CONTRIBUTING.md).
## Learn about SPIRE
@ -46,7 +43,7 @@ For supported integration versions, see [Supported Integrations](/doc/supported_
## Contribute to SPIRE
The SPIFFE community maintains the SPIRE project. Information on the various SIGs and relevant standards can be found in
https://github.com/spiffe/spiffe.
<https://github.com/spiffe/spiffe>.
- See [CONTRIBUTING](https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md) to get started.
- Use [GitHub Issues](https://github.com/spiffe/spire/issues) to request features or file bugs.
@ -64,10 +61,12 @@ https://github.com/spiffe/spiffe.
A third party security firm ([Cure53](https://cure53.de/)) completed a security audit of SPIFFE and SPIRE in February of 2021. Additionally, the [CNCF Technical Advisory Group for Security](https://github.com/cncf/tag-security) conducted two assessments on SPIFFE and SPIRE in 2018 and 2020. Please find the reports and supporting material, including the threat model exercise results, below.
- [Cure53 Security Audit Report](doc/cure53-report.pdf)
- [SIG-Security SPIFFE/SPIRE Security Assessment: summary](https://github.com/cncf/sig-security/tree/main/assessments/projects/spiffe-spire)
- [SIG-Security SPIFFE/SPIRE Security Assessment: full assessment](https://github.com/cncf/sig-security/blob/main/assessments/projects/spiffe-spire/self-assessment.md)
- [SIG-Security SPIFFE/SPIRE Security Assessment: summary](https://github.com/cncf/sig-security/tree/main/community/assessments/projects/spiffe-spire)
- [SIG-Security SPIFFE/SPIRE Security Assessment: full assessment](https://github.com/cncf/sig-security/blob/main/community/assessments/projects/spiffe-spire/self-assessment.md)
- [Scrutinizing SPIRE to Sensibly Strengthen SPIFFE Security](https://blog.spiffe.io/scrutinizing-spire-security-9c82ba542019)
### Reporting Security Vulnerabilities
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at security@spiffe.io. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at <security@spiffe.io>. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.
<!-- markdownlint-configure-file { "MD041": false } -->

101
RELEASING.md Normal file
View File

@ -0,0 +1,101 @@
# Release and Branch Management
The SPIRE project maintains active support for both the current and the previous minor versions. All active development occurs in the `main` branch. Version branches are used for patch releases of the previous minor version when necessary.
## Version Branches
Each release must have its own release branch following the naming convention `release/vX.Y.Z` where `X` is the major version, `Y` is the minor version, and `Z` is patch version.
The base commit of the release branch is based on the type of release being generated:
* Patch release for older minor release series. In this case, the new release branch is based off of the previous patch release branch for the same minor release series. Example: the latest release is v1.5.z, and the release being prepared is v1.4.5. The base commit should be the `release/v1.4.4` branch.
* Security release for current minor release series. In this case, the new release branch should be based off of the previous release branch for the same minor release series. Example: the latest release is v1.5.0, and the release being prepared is v1.5.1. The base commit should be the `release/v1.5.0` branch.
* Scheduled patch release for current minor release series OR scheduled minor release. In this case, the new release branch should be based off of a commit on the `main` branch. Example: the latest release is v1.5.0, and the release being prepared is v1.5.1. The base commit should be the candidate commit selected from the `main` branch.
When a bug is discovered in the latest release that also affects releases of the prior minor version, it is necessary to backport the fix.
Once the version branch is created, the patch is either cherry-picked or backported into a PR against the version branch. The version branch is maintained via the same process as the main branch, including PR approval process etc.
Ensure that the CHANGELOG is updated in both `main` and the version branch to reflect the new release.
## Releasing
The SPIRE release machinery is tag-driven. When the maintainers are ready to release, a tag is pushed referencing the release commit. While the CI/CD pipeline takes care of the rest, it is important to keep an eye on its progress. If an error is encountered during this process, the release is aborted.
The first two releases that a new maintainer performs must be performed under the supervision of maintainer that has already satisfied this requirement.
SPIRE releases are authorized by its maintainers. When doing so, they should carefully consider the proposed release commit. Is there confidence that the changes included do not represent a compatibility concern? Have the affected codepaths been sufficiently exercised, be it by automated test suite or manual testing? Is the maintainer free of general hesitation in releasing this commit, particularly with regards to safety and security? If the answer to any of these questions is "no", then do not release.
A simple majority vote is required to authorize a SPIRE release at a specific commit hash. If any maintainer feels that the result of this vote critically endangers the project or its users, they have the right to raise the matter to the SPIFFE TSC. If this occurs, the release in question MUST be frozen until the SPIFFE TSC has made a decision. Do not take this route lightly (see [General Governance](MAINTAINERS.md#general-governance)).
### Checklist
This section summarizes the steps necessary to execute a SPIRE release. Unless explicitly stated, the below steps must be executed in order.
The following steps must be completed by the primary on-call maintainer one week prior to release:
* Ensure all changes intended to be included in the release are fully merged. For the spire-api-sdk and spire-plugin-sdk repositories, ensure that all changes intended for the upcoming release are merged into the main branch from the next branch.
* Identify a specific commit as the release candidate.
* Raise an issue "Release SPIRE X.Y.Z", and include the release candidate commit hash.
* Create the release branch following the guidelines described in [Version branches](#version-branches).
* If the current state of the main branch has diverged from the candidate commit due to other changes than the ones from the CHANGELOG:
* Make sure that the [version in the branch](pkg/common/version/version.go) has been bumped to the version that is being released and that the [upgrade integration test is updated](test/integration/suites/upgrade/README.md#maintenance).
* Cherry-pick into the version branch the commits for all the changes that must be included in the release. Ensure the PRs for these commits all target the release milestone in GitHub.
* Create a draft pull request against the release branch with the updates to the CHANGELOG following [these guidelines](doc/changelog_guidelines.md). This allows those tracking the project to have early visibility into what will be included in the upcoming release and an opportunity to provide feedback. The release date can be set as "TBD" while it is a draft.
**If this is a major or minor release**, the following steps must be completed by the secondary on-call maintainer at least one day before releasing:
* Review and exercise all examples in spiffe.io and spire-examples repo against the release candidate hash.
* Raise a PR for every example that updates included text and configuration to reflect current state and best practice.
* Do not merge this PR yet. It will be updated later to use the real version pin rather than the commit hash.
* If anything unusual is encountered during this process, a comment MUST be left on the release issue describing what was observed.
The following steps must be completed by the primary on-call maintainer to perform a release:
* Mark the pull request to update the CHANGELOG as "Ready for review". Make sure that it is updated with the final release date. **At least two approvals from maintainers are required in order to be able to merge it**.
* Cut an annotated tag against the release candidate named `vX.Y.Z`, where `X.Y.Z` is the semantic version number of SPIRE.
* The first line of the annotation should be `vX.Y.Z` followed by the CHANGELOG. **There should be a newline between the version and the CHANGELOG**. The tag should not contain the Markdown header formatting because the "#" symbol is interpreted as a comment by Git.
* Push the annotated tag to SPIRE, and watch the build to completion.
* If the build fails, or anything unusual is encountered, abort the release.
* Ensure that the GitHub release, container images, and release artifacts are deleted/rolled back if necessary.
* Visit the releases page on GitHub, copy the release notes, click edit and paste them back in. This works around a GitHub Markdown rendering bug that you will notice before completing this task.
* Cut new SDK releases (see [SDK Releases](#sdk-releases)).
* Open a PR targeted for the main branch with the following changes:
* Cherry-pick of the changelog commit from the latest release so that the changelog on the main branch contains all the release notes.
* Bump the SPIRE version to the next projected version. As for determining the next projected version, the project generally releases three patch releases per minor release cycle (e.g. `vX.Y.[0-3]`), not including dedicated security releases. The version needs to be updated in the following places:
* Next projected version goes in [version.go](pkg/common/version/version.go)
* Previous version should be added to upgrade integration test, following additional guidelines described in test [README.md](test/integration/suites/upgrade/README.md#maintenance)
* Previous version should be added to [SQL Datastore migration comments](pkg/server/datastore/sqlstore/migration.go), if not already present
* This needs to be the first commit merged following the release because the upgrade integration test will start failing on CI for all PRs until the test is brought up to date.
* Close the GitHub issue created to track the release process.
* Broadcast news of release to the community via available means: SPIFFE Slack, Twitter, etc.
* Create a new GitHub milestone for the next release, if not already created.
**If this is a major or minor release**, the following steps must be completed by the secondary on-call maintainer no later than one week after the release:
* PRs to update spiffe.io and spire-examples repo to the latest major version must be merged.
* Ensure that the PRs have been updated to use the version tag instead of the commit sha.
### SDK Releases
SPIRE has two SDK repositories:
* [API SDK](https://github.com/spiffe/spire-api-sdk)
* [Plugin SDK](https://github.com/spiffe/spire-plugin-sdk)
SPIRE consumes these SDKs using pseudo-versions from the `next` branch in each SDK repository. This allows unreleased changes to be reviewed, merged, and consumed by SPIRE.
These SDKs need to be released with each SPIRE release.
SDK releases take place using tagged commits from the `main` branch in each repository. When cutting a new release, the `main` branch needs to be prepared with any previously unreleased changes that are part of the new release.
To create a release for an SDK, perform the following steps:
1. Review the diff between `next` and `main`.
1. Determine the commits in `next` that are missing from `main`, in other words, commits containing features that were under development that are now publicly available through the new SPIRE release (e.g. API or plugin interface additions).
1. Cherry-pick those commits, if any, into `main`.
1. Create a git tag (not annotated) with the name `vX.Y.Z`, corresponding to the SPIRE release version, for the `HEAD` commit of the main branch.
1. Push the `vX.Y.Z` tag to Github.
> [!WARNING]
> Extra care should be taken to ensure that the tagged commit is correct before pushing. Once it has been pushed, anyone running `go get <SDK module>@latest` will cause the repository to be pulled into the Go module cache at that cache. Changing it afterwards is not without consequence.

View File

@ -1,25 +1,28 @@
**Recently completed**
* Use SPIRE on workloads [running on platforms where installing an agent is not possible](https://github.com/spiffe/spire/projects/9) (New!)
* Provide an [API](https://github.com/spiffe/spire-api-sdk/blob/main/proto/spire/api/server/trustdomain/v1/trustdomain.proto) on SPIRE Server to allow programmatic configuration of federation relationships (New!)
* [API](https://github.com/spiffe/spire-api-sdk) and [Plugin](https://github.com/spiffe/spire-plugin-sdk) SDKs for Integration authors
* Expand [support of TPM node attestation](https://github.com/spiffe/spire/pull/2111) to provide first-class verification and identification of TPM metadata (New!)
* Support for using [Cert-Manager as an upstream authority](https://github.com/spiffe/spire/pull/2274) to SPIRE (New!)
* AWS Support: Support for using [AWS KMS to store signing keys](https://github.com/spiffe/spire/pull/2066), [Support for internet-restricted environments](https://github.com/spiffe/spire/pull/2119)
* Support for using [GCP Certificate Authority Service as an upstream authority](https://github.com/spiffe/spire/pull/2172)
# Roadmap
**Near-Term and Medium-Term**
## Recently completed
* [Support for using Google Cloud Key Management Service to create, maintain, and rotate server key pairs](https://github.com/spiffe/spire/pull/3410)
* [Ability to have separate X.509-SVID and JWT-SVID TTLs, which can be configured both at the entry-level and server default level](https://github.com/spiffe/spire/pull/3445)
* [Experimental support for limiting the number of SVIDs in the agent's cache](https://github.com/spiffe/spire/pull/3181)
* [Experimental Windows support](https://github.com/spiffe/spire/projects/12)
## Near-Term and Medium-Term
* [Key Revocation and Forced Rotation (In Progress)](https://github.com/spiffe/spire/issues/1934)
* Provide a turn-key Kubernetes experience that adheres to security best practices (In Progress)
* Provide a privileged API on SPIRE Agent to delegate SVID management to platform integrators (In Progress)
* [Deprecate the Notifier plugin interface in favor of a BundlePublisher interface, implementing plugins that push bundles to remote locations (In Progress)](https://github.com/spiffe/spire/issues/2909)
* Support for supply chain provenance attestation by verification of binary signing (e.g. TUF/notary/in-toto metadata validation)
* Secretless authentication to Google Compute Platform by expanding OIDC Federation integration support
**Long-Term**
* Key Revocation and Forced Rotation
## Long-Term
* [Re-evaluate SPIRE Server API authorization](https://github.com/spiffe/spire/issues/3620)
* Ensure error messages are indicative of a direction towards resolution
* Improve health-check subsystem
* Secretless authentication to Microsoft Azure by expanding OIDC Federation integration support
***
**Credits**
Thank you to [@anjaltelang](https://github.com/anjaltelang) for helping the SPIRE team keep this roadmap accurate and up-to-date 🎉
## Credits
Thank you to [@anjaltelang](https://github.com/anjaltelang) for helping the SPIRE team keep this roadmap accurate and up-to-date 🎉

View File

@ -2,15 +2,8 @@
## Supported Versions
Versions of the project that are currently being supported with security updates:
| Version | Supported |
| ------- | ------------------ |
| 1.2.x | :white_check_mark: |
| 1.1.x | :white_check_mark: |
| <=1.0.x | :x: |
The project supports security releases for the current minor release series and the previous minor release series, i.e. v1.X and v1.X-1. Example: if the current release series is v1.5, security fixes will be supported for both the v1.4 and v1.5 series.
## Reporting a Vulnerability
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at security@spiffe.io. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.
If you've found a vulnerability or a potential vulnerability in SPIRE please let us know at <security@spiffe.io>. We'll send a confirmation email to acknowledge your report, and we'll send an additional email when we've identified the issue positively or negatively.

View File

@ -0,0 +1,44 @@
//go:build !windows
package api
const (
fetchJWTUsage = `Usage of fetch jwt:
-audience value
comma separated list of audience values
-format value
deprecated; use -output
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-spiffeID string
SPIFFE ID subject (optional)
-timeout value
Time to wait for a response (default 5s)
`
fetchX509Usage = `Usage of fetch x509:
-output value
Desired output format (pretty, json); default: pretty.
-silent
Suppress stdout
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-timeout value
Time to wait for a response (default 5s)
-write string
Write SVID data to the specified path (optional; only available for pretty output format)
`
validateJWTUsage = `Usage of validate jwt:
-audience string
expected audience value
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Agent API Unix domain socket (default "/tmp/spire-agent/public/api.sock")
-svid string
JWT SVID
-timeout value
Time to wait for a response (default 5s)
`
)

View File

@ -0,0 +1,568 @@
package api
import (
"bytes"
"crypto"
"crypto/x509"
"encoding/base64"
"encoding/pem"
"errors"
"fmt"
"os"
"path/filepath"
"testing"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/proto/spiffe/workload"
"github.com/spiffe/go-spiffe/v2/spiffeid"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/x509util"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/fakes/fakeworkloadapi"
"github.com/spiffe/spire/test/spiretest"
"github.com/spiffe/spire/test/testca"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/structpb"
)
var availableFormats = []string{"pretty", "json"}
func TestFetchJWTCommandHelp(t *testing.T) {
test := setupTest(t, newFetchJWTCommandWithEnv)
test.cmd.Help()
require.Equal(t, fetchJWTUsage, test.stderr.String())
}
func TestFetchJWTCommandSynopsis(t *testing.T) {
test := setupTest(t, newFetchJWTCommandWithEnv)
require.Equal(t, "Fetches a JWT SVID from the Workload API", test.cmd.Synopsis())
}
func TestFetchJWTCommand(t *testing.T) {
td := spiffeid.RequireTrustDomainFromString("example.org")
ca := testca.New(t, td)
encodedSvid1 := ca.CreateJWTSVID(spiffeid.RequireFromString("spiffe://domain1.test"), []string{"foo"}).Marshal()
encodedSvid2 := ca.CreateJWTSVID(spiffeid.RequireFromString("spiffe://domain2.test"), []string{"foo"}).Marshal()
bundleJWKSBytes, err := ca.JWTBundle().Marshal()
require.NoError(t, err)
tests := []struct {
name string
args []string
fakeRequests []*fakeworkloadapi.FakeRequest
expectedStderr string
expectedStdoutPretty []string
expectedStdoutJSON string
}{
{
name: "success fetching jwt with bundles",
args: []string{"-audience", "foo", "-spiffeID", "spiffe://domain1.test"},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.JWTBundlesRequest{},
Resp: &workload.JWTBundlesResponse{
Bundles: map[string][]byte{
"spiffe://domain1.test": bundleJWKSBytes,
"spiffe://domain2.test": bundleJWKSBytes,
},
},
},
{
Req: &workload.JWTSVIDRequest{
Audience: []string{"foo"},
SpiffeId: "spiffe://domain1.test",
},
Resp: &workload.JWTSVIDResponse{
Svids: []*workload.JWTSVID{
{
SpiffeId: "spiffe://domain1.test",
Svid: encodedSvid1,
Hint: "external",
},
{
SpiffeId: "spiffe://domain2.test",
Svid: encodedSvid2,
},
},
},
},
},
expectedStdoutPretty: []string{
fmt.Sprintf("token(spiffe://domain1.test):\n\t%s", encodedSvid1),
fmt.Sprintf("hint(spiffe://domain1.test):\n\t%s", "external"),
fmt.Sprintf("token(spiffe://domain2.test):\n\t%s", encodedSvid2),
fmt.Sprintf("bundle(spiffe://domain1.test):\n\t%s", bundleJWKSBytes),
fmt.Sprintf("bundle(spiffe://domain2.test):\n\t%s", bundleJWKSBytes),
},
expectedStdoutJSON: fmt.Sprintf(`[
{
"svids": [
{
"hint": "external",
"spiffe_id": "spiffe://domain1.test",
"svid": "%s"
},
{
"hint": "",
"spiffe_id": "spiffe://domain2.test",
"svid": "%s"
}
]
},
{
"bundles": {
"spiffe://domain1.test": "%s",
"spiffe://domain2.test": "%s"
}
}
]`, encodedSvid1, encodedSvid2, base64.StdEncoding.EncodeToString(bundleJWKSBytes), base64.StdEncoding.EncodeToString(bundleJWKSBytes)),
},
{
name: "fail with error fetching bundles",
args: []string{"-audience", "foo", "-spiffeID", "spiffe://domain1.test"},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.JWTBundlesRequest{},
Resp: &workload.JWTBundlesResponse{},
Err: errors.New("error fetching bundles"),
},
},
expectedStderr: "rpc error: code = Unknown desc = error fetching bundles\n",
},
{
name: "fail with error fetching svid",
args: []string{"-audience", "foo", "-spiffeID", "spiffe://domain1.test"},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.JWTBundlesRequest{},
Resp: &workload.JWTBundlesResponse{
Bundles: map[string][]byte{
"spiffe://domain1.test": bundleJWKSBytes,
},
},
},
{
Req: &workload.JWTSVIDRequest{
Audience: []string{"foo"},
SpiffeId: "spiffe://domain1.test",
},
Resp: &workload.JWTSVIDResponse{},
Err: errors.New("error fetching svid"),
},
},
expectedStderr: "rpc error: code = Unknown desc = error fetching svid\n",
},
{
name: "fail when audience is not provided",
expectedStderr: "audience must be specified\n",
},
}
for _, tt := range tests {
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newFetchJWTCommandWithEnv, tt.fakeRequests...)
args := tt.args
args = append(args, "-output", format)
rc := test.cmd.Run(test.args(args...))
if tt.expectedStderr != "" {
assert.Equal(t, 1, rc)
assert.Equal(t, tt.expectedStderr, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutJSON, tt.expectedStdoutPretty...)
assert.Empty(t, test.stderr.String())
assert.Equal(t, 0, rc)
})
}
}
}
func TestFetchX509CommandHelp(t *testing.T) {
test := setupTest(t, newFetchX509Command)
test.cmd.Help()
require.Equal(t, fetchX509Usage, test.stderr.String())
}
func TestFetchX509CommandSynopsis(t *testing.T) {
test := setupTest(t, newFetchX509Command)
require.Equal(t, "Fetches X509 SVIDs from the Workload API", test.cmd.Synopsis())
}
func TestFetchX509Command(t *testing.T) {
testDir := t.TempDir()
td := spiffeid.RequireTrustDomainFromString("example.org")
ca := testca.New(t, td)
svid := ca.CreateX509SVID(spiffeid.RequireFromString("spiffe://example.org/foo"))
tests := []struct {
name string
args []string
fakeRequests []*fakeworkloadapi.FakeRequest
expectedStderr string
expectedStdoutPretty string
expectedStdoutJSON string
expectedFileResult bool
}{
{
name: "success fetching x509 svid",
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.X509SVIDRequest{},
Resp: &workload.X509SVIDResponse{
Svids: []*workload.X509SVID{
{
SpiffeId: svid.ID.String(),
X509Svid: x509util.DERFromCertificates(svid.Certificates),
X509SvidKey: pkcs8FromSigner(t, svid.PrivateKey),
Bundle: x509util.DERFromCertificates(ca.Bundle().X509Authorities()),
Hint: "external",
},
},
Crl: [][]byte{},
FederatedBundles: map[string][]byte{},
},
},
},
expectedStdoutPretty: fmt.Sprintf(`
SPIFFE ID: spiffe://example.org/foo
Hint: external
SVID Valid After: %v
SVID Valid Until: %v
CA #1 Valid After: %v
CA #1 Valid Until: %v
`,
svid.Certificates[0].NotBefore,
svid.Certificates[0].NotAfter,
ca.Bundle().X509Authorities()[0].NotBefore,
ca.Bundle().X509Authorities()[0].NotAfter,
),
expectedStdoutJSON: fmt.Sprintf(`{
"crl": [],
"federated_bundles": {},
"svids": [
{
"bundle": "%s",
"hint": "external",
"spiffe_id": "spiffe://example.org/foo",
"x509_svid": "%s",
"x509_svid_key": "%s"
}
]
}`,
base64.StdEncoding.EncodeToString(x509util.DERFromCertificates(ca.Bundle().X509Authorities())),
base64.StdEncoding.EncodeToString(x509util.DERFromCertificates(svid.Certificates)),
base64.StdEncoding.EncodeToString(pkcs8FromSigner(t, svid.PrivateKey)),
),
},
{
name: "success fetching x509 and writing to file",
args: []string{"-write", testDir},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.X509SVIDRequest{},
Resp: &workload.X509SVIDResponse{
Svids: []*workload.X509SVID{
{
SpiffeId: svid.ID.String(),
X509Svid: x509util.DERFromCertificates(svid.Certificates),
X509SvidKey: pkcs8FromSigner(t, svid.PrivateKey),
Bundle: x509util.DERFromCertificates(ca.Bundle().X509Authorities()),
},
},
Crl: [][]byte{},
FederatedBundles: map[string][]byte{},
},
},
},
expectedStdoutPretty: fmt.Sprintf(`
SPIFFE ID: spiffe://example.org/foo
SVID Valid After: %v
SVID Valid Until: %v
CA #1 Valid After: %v
CA #1 Valid Until: %v
Writing SVID #0 to file %s
Writing key #0 to file %s
Writing bundle #0 to file %s
`,
svid.Certificates[0].NotBefore,
svid.Certificates[0].NotAfter,
ca.Bundle().X509Authorities()[0].NotBefore,
ca.Bundle().X509Authorities()[0].NotAfter,
fmt.Sprintf("%s/svid.0.pem.", testDir),
fmt.Sprintf("%s/svid.0.key.", testDir),
fmt.Sprintf("%s/bundle.0.pem.", testDir),
),
expectedStdoutJSON: fmt.Sprintf(`{
"crl": [],
"federated_bundles": {},
"svids": [
{
"bundle": "%s",
"hint": "",
"spiffe_id": "spiffe://example.org/foo",
"x509_svid": "%s",
"x509_svid_key": "%s"
}
]
}`,
base64.StdEncoding.EncodeToString(x509util.DERFromCertificates(ca.Bundle().X509Authorities())),
base64.StdEncoding.EncodeToString(x509util.DERFromCertificates(svid.Certificates)),
base64.StdEncoding.EncodeToString(pkcs8FromSigner(t, svid.PrivateKey)),
),
expectedFileResult: true,
},
{
name: "fails fetching svid",
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.X509SVIDRequest{},
Resp: &workload.X509SVIDResponse{},
Err: errors.New("error fetching svid"),
},
},
expectedStderr: "rpc error: code = Unknown desc = error fetching svid\n",
},
}
for _, tt := range tests {
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newFetchX509Command, tt.fakeRequests...)
args := tt.args
args = append(args, "-output", format)
rc := test.cmd.Run(test.args(args...))
if tt.expectedStderr != "" {
assert.Equal(t, 1, rc)
assert.Equal(t, tt.expectedStderr, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutJSON, tt.expectedStdoutPretty)
assert.Empty(t, test.stderr.String())
assert.Equal(t, 0, rc)
if tt.expectedFileResult && format == "pretty" {
content, err := os.ReadFile(filepath.Join(testDir, "svid.0.pem"))
assert.NoError(t, err)
assert.Equal(t, pem.EncodeToMemory(&pem.Block{
Type: "CERTIFICATE",
Bytes: svid.Certificates[0].Raw,
}), content)
content, err = os.ReadFile(filepath.Join(testDir, "svid.0.key"))
assert.NoError(t, err)
assert.Equal(t, string(pem.EncodeToMemory(&pem.Block{
Type: "PRIVATE KEY",
Bytes: pkcs8FromSigner(t, svid.PrivateKey),
})), string(content))
content, err = os.ReadFile(filepath.Join(testDir, "bundle.0.pem"))
assert.NoError(t, err)
assert.Equal(t, pem.EncodeToMemory(&pem.Block{
Type: "CERTIFICATE",
Bytes: ca.Bundle().X509Authorities()[0].Raw,
}), content)
}
})
}
}
}
func TestValidateJWTCommandHelp(t *testing.T) {
test := setupTest(t, newValidateJWTCommand)
test.cmd.Help()
require.Equal(t, validateJWTUsage, test.stderr.String())
}
func TestValidateJWTCommandSynopsis(t *testing.T) {
test := setupTest(t, newValidateJWTCommand)
require.Equal(t, "Validates a JWT SVID", test.cmd.Synopsis())
}
func TestValidateJWTCommand(t *testing.T) {
td := spiffeid.RequireTrustDomainFromString("example.org")
ca := testca.New(t, td)
encodedSvid := ca.CreateJWTSVID(spiffeid.RequireFromString("spiffe://domain1.test"), []string{"foo"}).Marshal()
tests := []struct {
name string
args []string
fakeRequests []*fakeworkloadapi.FakeRequest
expectedStderr string
expectedStdoutPretty string
expectedStdoutJSON string
}{
{
name: "valid svid",
args: []string{"-audience", "foo", "-svid", encodedSvid},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.ValidateJWTSVIDRequest{
Audience: "foo",
Svid: encodedSvid,
},
Resp: &workload.ValidateJWTSVIDResponse{
SpiffeId: "spiffe://example.org/foo",
Claims: &structpb.Struct{
Fields: map[string]*structpb.Value{
"aud": {
Kind: &structpb.Value_ListValue{
ListValue: &structpb.ListValue{
Values: []*structpb.Value{{Kind: &structpb.Value_StringValue{StringValue: "foo"}}},
},
},
},
},
},
},
},
},
expectedStdoutPretty: `SVID is valid.
SPIFFE ID : spiffe://example.org/foo
Claims : {"aud":["foo"]}`,
expectedStdoutJSON: `{
"claims": {
"aud": [
"foo"
]
},
"spiffe_id": "spiffe://example.org/foo"
}`,
},
{
name: "invalid svid",
args: []string{"-audience", "invalid", "-svid", "invalid"},
fakeRequests: []*fakeworkloadapi.FakeRequest{
{
Req: &workload.ValidateJWTSVIDRequest{
Audience: "foo",
Svid: encodedSvid,
},
Resp: &workload.ValidateJWTSVIDResponse{},
Err: status.Error(codes.InvalidArgument, "invalid svid"),
},
},
expectedStderr: "SVID is not valid: invalid svid\n",
},
{
name: "fail when audience is not provided",
expectedStderr: "audience must be specified\n",
},
{
name: "fail when svid is not provided",
args: []string{"-audience", "foo"},
expectedStderr: "svid must be specified\n",
},
}
for _, tt := range tests {
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newValidateJWTCommand, tt.fakeRequests...)
args := tt.args
args = append(args, "-output", format)
rc := test.cmd.Run(test.args(args...))
if tt.expectedStderr != "" {
assert.Equal(t, 1, rc)
assert.Equal(t, tt.expectedStderr, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutJSON, tt.expectedStdoutPretty)
assert.Empty(t, test.stderr.String())
assert.Equal(t, 0, rc)
})
}
}
}
func setupTest(t *testing.T, newCmd func(env *commoncli.Env, clientMaker workloadClientMaker) cli.Command, requests ...*fakeworkloadapi.FakeRequest) *apiTest {
workloadAPIServer := fakeworkloadapi.New(t, requests...)
addr := spiretest.StartGRPCServer(t, func(s *grpc.Server) {
workload.RegisterSpiffeWorkloadAPIServer(s, workloadAPIServer)
})
stdin := new(bytes.Buffer)
stdout := new(bytes.Buffer)
stderr := new(bytes.Buffer)
cmd := newCmd(&commoncli.Env{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
}, newWorkloadClient)
test := &apiTest{
addr: clitest.GetAddr(addr),
stdin: stdin,
stdout: stdout,
stderr: stderr,
workloadAPI: workloadAPIServer,
cmd: cmd,
}
t.Cleanup(func() {
test.afterTest(t)
})
return test
}
type apiTest struct {
stdin *bytes.Buffer
stdout *bytes.Buffer
stderr *bytes.Buffer
addr string
workloadAPI *fakeworkloadapi.WorkloadAPI
cmd cli.Command
}
func (s *apiTest) afterTest(t *testing.T) {
t.Logf("TEST:%s", t.Name())
t.Logf("STDOUT:\n%s", s.stdout.String())
t.Logf("STDIN:\n%s", s.stdin.String())
t.Logf("STDERR:\n%s", s.stderr.String())
}
func (s *apiTest) args(extra ...string) []string {
return append([]string{clitest.AddrArg, s.addr}, extra...)
}
func assertOutputBasedOnFormat(t *testing.T, format, stdoutString, expectedStdoutJSON string, expectedStdoutPretty ...string) {
switch format {
case "pretty":
if len(expectedStdoutPretty) > 0 {
for _, expected := range expectedStdoutPretty {
require.Contains(t, stdoutString, expected)
}
} else {
require.Empty(t, stdoutString)
}
case "json":
if expectedStdoutJSON != "" {
require.JSONEq(t, expectedStdoutJSON, stdoutString)
} else {
require.Empty(t, stdoutString)
}
}
}
func pkcs8FromSigner(t *testing.T, key crypto.Signer) []byte {
keyBytes, err := x509.MarshalPKCS8PrivateKey(key)
require.NoError(t, err)
return keyBytes
}

View File

@ -0,0 +1,44 @@
//go:build windows
package api
const (
fetchJWTUsage = `Usage of fetch jwt:
-audience value
comma separated list of audience values
-format value
deprecated; use -output
-namedPipeName string
Pipe name of the SPIRE Agent API named pipe (default "\\spire-agent\\public\\api")
-output value
Desired output format (pretty, json); default: pretty.
-spiffeID string
SPIFFE ID subject (optional)
-timeout value
Time to wait for a response (default 5s)
`
fetchX509Usage = `Usage of fetch x509:
-namedPipeName string
Pipe name of the SPIRE Agent API named pipe (default "\\spire-agent\\public\\api")
-output value
Desired output format (pretty, json); default: pretty.
-silent
Suppress stdout
-timeout value
Time to wait for a response (default 5s)
-write string
Write SVID data to the specified path (optional; only available for pretty output format)
`
validateJWTUsage = `Usage of validate jwt:
-audience string
expected audience value
-namedPipeName string
Pipe name of the SPIRE Agent API named pipe (default "\\spire-agent\\public\\api")
-output value
Desired output format (pretty, json); default: pretty.
-svid string
JWT SVID
-timeout value
Time to wait for a response (default 5s)
`
)

View File

@ -28,7 +28,7 @@ func newWorkloadClient(ctx context.Context, addr net.Addr, timeout time.Duration
if err != nil {
return nil, err
}
conn, err := util.GRPCDialContext(ctx, target)
conn, err := util.NewGRPCClient(target)
if err != nil {
return nil, err
}

View File

@ -8,22 +8,23 @@ import (
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/proto/spiffe/workload"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
func NewFetchJWTCommand() cli.Command {
return newFetchJWTCommand(common_cli.DefaultEnv, newWorkloadClient)
return newFetchJWTCommandWithEnv(commoncli.DefaultEnv, newWorkloadClient)
}
func newFetchJWTCommand(env *common_cli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, new(fetchJWTCommand))
func newFetchJWTCommandWithEnv(env *commoncli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, &fetchJWTCommand{env: env})
}
type fetchJWTCommand struct {
audience common_cli.CommaStringsFlag
audience commoncli.CommaStringsFlag
spiffeID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *fetchJWTCommand) name() string {
@ -34,7 +35,7 @@ func (c *fetchJWTCommand) synopsis() string {
return "Fetches a JWT SVID from the Workload API"
}
func (c *fetchJWTCommand) run(ctx context.Context, env *common_cli.Env, client *workloadClient) error {
func (c *fetchJWTCommand) run(ctx context.Context, _ *commoncli.Env, client *workloadClient) error {
if len(c.audience) == 0 {
return errors.New("audience must be specified")
}
@ -48,15 +49,14 @@ func (c *fetchJWTCommand) run(ctx context.Context, env *common_cli.Env, client *
return err
}
c.printer.MustPrintProto(svidResp, bundlesResp)
return nil
return c.printer.PrintProto(svidResp, bundlesResp)
}
func (c *fetchJWTCommand) appendFlags(fs *flag.FlagSet) {
fs.Var(&c.audience, "audience", "comma separated list of audience values")
fs.StringVar(&c.spiffeID, "spiffeID", "", "SPIFFE ID subject (optional)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, printPrettyResult)
outputValue := cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, printPrettyResult)
fs.Var(outputValue, "format", "deprecated; use -output")
}
func (c *fetchJWTCommand) fetchJWTSVID(ctx context.Context, client *workloadClient) (*workload.JWTSVIDResponse, error) {
@ -78,27 +78,28 @@ func (c *fetchJWTCommand) fetchJWTBundles(ctx context.Context, client *workloadC
return stream.Recv()
}
func printPrettyResult(results ...interface{}) error {
errMsg := "internal error: cli printer; please report this bug"
func printPrettyResult(env *commoncli.Env, results ...any) error {
svidResp, ok := results[0].(*workload.JWTSVIDResponse)
if !ok {
fmt.Println(errMsg)
return errors.New(errMsg)
env.Println(cliprinter.ErrInternalCustomPrettyFunc.Error())
return cliprinter.ErrInternalCustomPrettyFunc
}
bundlesResp, ok := results[1].(*workload.JWTBundlesResponse)
if !ok {
fmt.Println(errMsg)
return errors.New(errMsg)
env.Println(cliprinter.ErrInternalCustomPrettyFunc.Error())
return cliprinter.ErrInternalCustomPrettyFunc
}
for _, svid := range svidResp.Svids {
fmt.Printf("token(%s):\n\t%s\n", svid.SpiffeId, svid.Svid)
env.Printf("token(%s):\n\t%s\n", svid.SpiffeId, svid.Svid)
if svid.Hint != "" {
env.Printf("hint(%s):\n\t%s\n", svid.SpiffeId, svid.Hint)
}
}
for trustDomainID, jwksJSON := range bundlesResp.Bundles {
fmt.Printf("bundle(%s):\n\t%s\n", trustDomainID, string(jwksJSON))
env.Printf("bundle(%s):\n\t%s\n", trustDomainID, string(jwksJSON))
}
return nil

View File

@ -8,7 +8,6 @@ import (
"errors"
"flag"
"fmt"
"os"
"path"
"time"
@ -17,20 +16,25 @@ import (
"github.com/spiffe/go-spiffe/v2/proto/spiffe/workload"
"github.com/spiffe/go-spiffe/v2/spiffeid"
"github.com/spiffe/go-spiffe/v2/svid/x509svid"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/diskutil"
)
func NewFetchX509Command() cli.Command {
return newFetchX509Command(common_cli.DefaultEnv, newWorkloadClient)
return newFetchX509Command(commoncli.DefaultEnv, newWorkloadClient)
}
func newFetchX509Command(env *common_cli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, new(fetchX509Command))
func newFetchX509Command(env *commoncli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, &fetchX509Command{env: env})
}
type fetchX509Command struct {
silent bool
writePath string
env *commoncli.Env
printer cliprinter.Printer
respTime time.Duration
}
func (*fetchX509Command) name() string {
@ -41,35 +45,21 @@ func (*fetchX509Command) synopsis() string {
return "Fetches X509 SVIDs from the Workload API"
}
func (c *fetchX509Command) run(ctx context.Context, env *common_cli.Env, client *workloadClient) error {
func (c *fetchX509Command) run(ctx context.Context, _ *commoncli.Env, client *workloadClient) error {
start := time.Now()
resp, err := c.fetchX509SVID(ctx, client)
respTime := time.Since(start)
c.respTime = time.Since(start)
if err != nil {
return err
}
svids, err := parseAndValidateX509SVIDResponse(resp)
if err != nil {
return err
}
if !c.silent {
printX509SVIDResponse(svids, respTime)
}
if c.writePath != "" {
if err := c.writeResponse(svids); err != nil {
return err
}
}
return nil
return c.printer.PrintProto(resp)
}
func (c *fetchX509Command) appendFlags(fs *flag.FlagSet) {
fs.BoolVar(&c.silent, "silent", false, "Suppress stdout")
fs.StringVar(&c.writePath, "write", "", "Write SVID data to the specified path (optional)")
fs.StringVar(&c.writePath, "write", "", "Write SVID data to the specified path (optional; only available for pretty output format)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, c.prettyPrintFetchX509)
}
func (c *fetchX509Command) fetchX509SVID(ctx context.Context, client *workloadClient) (*workload.X509SVIDResponse, error) {
@ -90,19 +80,19 @@ func (c *fetchX509Command) writeResponse(svids []*X509SVID) error {
keyPath := path.Join(c.writePath, fmt.Sprintf("svid.%v.key", i))
bundlePath := path.Join(c.writePath, fmt.Sprintf("bundle.%v.pem", i))
fmt.Printf("Writing SVID #%d to file %s.\n", i, svidPath)
c.env.Printf("Writing SVID #%d to file %s.\n", i, svidPath)
err := c.writeCerts(svidPath, svid.Certificates)
if err != nil {
return err
}
fmt.Printf("Writing key #%d to file %s.\n", i, keyPath)
c.env.Printf("Writing key #%d to file %s.\n", i, keyPath)
err = c.writeKey(keyPath, svid.PrivateKey)
if err != nil {
return err
}
fmt.Printf("Writing bundle #%d to file %s.\n", i, bundlePath)
c.env.Printf("Writing bundle #%d to file %s.\n", i, bundlePath)
err = c.writeCerts(bundlePath, svid.Bundle)
if err != nil {
return err
@ -116,7 +106,7 @@ func (c *fetchX509Command) writeResponse(svids []*X509SVID) error {
for j, trustDomain := range federatedDomains {
bundlePath := path.Join(c.writePath, fmt.Sprintf("federated_bundle.%d.%d.pem", i, j))
fmt.Printf("Writing federated bundle #%d for trust domain %s to file %s.\n", j, trustDomain, bundlePath)
c.env.Printf("Writing federated bundle #%d for trust domain %s to file %s.\n", j, trustDomain, bundlePath)
err = c.writeCerts(bundlePath, svid.FederatedBundles[trustDomain])
if err != nil {
return err
@ -153,16 +143,41 @@ func (c *fetchX509Command) writeKey(filename string, privateKey crypto.PrivateKe
Bytes: data,
}
return os.WriteFile(filename, pem.EncodeToMemory(b), 0600)
return diskutil.WritePrivateFile(filename, pem.EncodeToMemory(b))
}
// writeFile creates or truncates filename, and writes data to it
func (c *fetchX509Command) writeFile(filename string, data []byte) error {
return os.WriteFile(filename, data, 0644) // nolint: gosec // expected permission for certificates
return diskutil.WritePubliclyReadableFile(filename, data)
}
func (c *fetchX509Command) prettyPrintFetchX509(env *commoncli.Env, results ...any) error {
resp, ok := results[0].(*workload.X509SVIDResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
svids, err := parseAndValidateX509SVIDResponse(resp)
if err != nil {
return err
}
if !c.silent {
printX509SVIDResponse(env, svids, c.respTime)
}
if c.writePath != "" {
if err := c.writeResponse(svids); err != nil {
return err
}
}
return nil
}
type X509SVID struct {
SPIFFEID string
Hint string
Certificates []*x509.Certificate
PrivateKey crypto.Signer
Bundle []*x509.Certificate
@ -201,7 +216,7 @@ func parseX509SVIDResponse(resp *workload.X509SVIDResponse) ([]*X509SVID, error)
for i, respSVID := range resp.Svids {
svid, err := parseX509SVID(respSVID, federatedBundles)
if err != nil {
return nil, fmt.Errorf("failed to parse svid entry %d for spiffe id %q: %w", i, svid.SPIFFEID, err)
return nil, fmt.Errorf("failed to parse svid entry %d for spiffe id %q: %w", i, respSVID.SpiffeId, err)
}
svids = append(svids, svid)
}
@ -239,6 +254,7 @@ func parseX509SVID(svid *workload.X509SVID, federatedBundles map[string][]*x509.
Certificates: certificates,
Bundle: bundle,
FederatedBundles: federatedBundles,
Hint: svid.Hint,
}, nil
}

View File

@ -4,50 +4,55 @@ import (
"crypto/x509"
"fmt"
"time"
commoncli "github.com/spiffe/spire/pkg/common/cli"
)
func printX509SVIDResponse(svids []*X509SVID, respTime time.Duration) {
func printX509SVIDResponse(env *commoncli.Env, svids []*X509SVID, respTime time.Duration) {
lenMsg := fmt.Sprintf("Received %d svid", len(svids))
if len(svids) != 1 {
lenMsg += "s"
}
lenMsg += fmt.Sprintf(" after %s", respTime)
fmt.Println(lenMsg)
env.Println(lenMsg)
for _, svid := range svids {
fmt.Println()
printX509SVID(svid)
env.Println()
printX509SVID(env, svid)
for trustDomain, bundle := range svid.FederatedBundles {
printX509FederatedBundle(trustDomain, bundle)
printX509FederatedBundle(env, trustDomain, bundle)
}
}
fmt.Println()
env.Println()
}
func printX509SVID(svid *X509SVID) {
func printX509SVID(env *commoncli.Env, svid *X509SVID) {
// Print SPIFFE ID first so if we run into a problem, we
// get to know which record it was
fmt.Printf("SPIFFE ID:\t\t%s\n", svid.SPIFFEID)
env.Printf("SPIFFE ID:\t\t%s\n", svid.SPIFFEID)
if svid.Hint != "" {
env.Printf("Hint:\t\t\t%s\n", svid.Hint)
}
fmt.Printf("SVID Valid After:\t%v\n", svid.Certificates[0].NotBefore)
fmt.Printf("SVID Valid Until:\t%v\n", svid.Certificates[0].NotAfter)
env.Printf("SVID Valid After:\t%v\n", svid.Certificates[0].NotBefore)
env.Printf("SVID Valid Until:\t%v\n", svid.Certificates[0].NotAfter)
for i, intermediate := range svid.Certificates[1:] {
num := i + 1
fmt.Printf("Intermediate #%v Valid After:\t%v\n", num, intermediate.NotBefore)
fmt.Printf("Intermediate #%v Valid Until:\t%v\n", num, intermediate.NotAfter)
env.Printf("Intermediate #%v Valid After:\t%v\n", num, intermediate.NotBefore)
env.Printf("Intermediate #%v Valid Until:\t%v\n", num, intermediate.NotAfter)
}
for i, ca := range svid.Bundle {
num := i + 1
fmt.Printf("CA #%v Valid After:\t%v\n", num, ca.NotBefore)
fmt.Printf("CA #%v Valid Until:\t%v\n", num, ca.NotAfter)
env.Printf("CA #%v Valid After:\t%v\n", num, ca.NotBefore)
env.Printf("CA #%v Valid Until:\t%v\n", num, ca.NotAfter)
}
}
func printX509FederatedBundle(trustDomain string, bundle []*x509.Certificate) {
func printX509FederatedBundle(env *commoncli.Env, trustDomain string, bundle []*x509.Certificate) {
for i, ca := range bundle {
num := i + 1
fmt.Printf("[%s] CA #%v Valid After:\t%v\n", trustDomain, num, ca.NotBefore)
fmt.Printf("[%s] CA #%v Valid Until:\t%v\n", trustDomain, num, ca.NotAfter)
env.Printf("[%s] CA #%v Valid After:\t%v\n", trustDomain, num, ca.NotBefore)
env.Printf("[%s] CA #%v Valid Until:\t%v\n", trustDomain, num, ca.NotAfter)
}
}

View File

@ -8,23 +8,26 @@ import (
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/proto/spiffe/workload"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/encoding/protojson"
)
func NewValidateJWTCommand() cli.Command {
return newValidateJWTCommand(common_cli.DefaultEnv, newWorkloadClient)
return newValidateJWTCommand(commoncli.DefaultEnv, newWorkloadClient)
}
func newValidateJWTCommand(env *common_cli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, new(validateJWTCommand))
func newValidateJWTCommand(env *commoncli.Env, clientMaker workloadClientMaker) cli.Command {
return adaptCommand(env, clientMaker, &validateJWTCommand{env: env})
}
type validateJWTCommand struct {
audience string
svid string
env *commoncli.Env
printer cliprinter.Printer
}
func (*validateJWTCommand) name() string {
@ -38,9 +41,10 @@ func (*validateJWTCommand) synopsis() string {
func (c *validateJWTCommand) appendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.audience, "audience", "", "expected audience value")
fs.StringVar(&c.svid, "svid", "", "JWT SVID")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintValidate)
}
func (c *validateJWTCommand) run(ctx context.Context, env *common_cli.Env, client *workloadClient) error {
func (c *validateJWTCommand) run(ctx context.Context, _ *commoncli.Env, client *workloadClient) error {
if c.audience == "" {
return errors.New("audience must be specified")
}
@ -53,17 +57,7 @@ func (c *validateJWTCommand) run(ctx context.Context, env *common_cli.Env, clien
return err
}
if err := env.Println("SVID is valid."); err != nil {
return err
}
if err := env.Println("SPIFFE ID :", resp.SpiffeId); err != nil {
return err
}
claims, err := protojson.Marshal(resp.Claims)
if err != nil {
return fmt.Errorf("unable to unmarshal claims: %w", err)
}
return env.Println("Claims :", string(claims))
return c.printer.PrintProto(resp)
}
func (c *validateJWTCommand) validateJWTSVID(ctx context.Context, client *workloadClient) (*workload.ValidateJWTSVIDResponse, error) {
@ -81,3 +75,21 @@ func (c *validateJWTCommand) validateJWTSVID(ctx context.Context, client *worklo
}
return resp, nil
}
func prettyPrintValidate(env *commoncli.Env, results ...any) error {
resp, ok := results[0].(*workload.ValidateJWTSVIDResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
if err := env.Println("SVID is valid."); err != nil {
return err
}
if err := env.Println("SPIFFE ID :", resp.SpiffeId); err != nil {
return err
}
claims, err := protojson.Marshal(resp.Claims)
if err != nil {
return fmt.Errorf("unable to unmarshal claims: %w", err)
}
return env.Println("Claims :", string(claims))
}

View File

@ -11,6 +11,7 @@ import (
"github.com/spiffe/go-spiffe/v2/workloadapi"
"github.com/spiffe/spire/cmd/spire-agent/cli/common"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/util"
)
@ -86,7 +87,7 @@ func (w *watcher) OnX509ContextUpdate(x509Context *workloadapi.X509Context) {
if candidateBundle.TrustDomain() == svid.ID.TrustDomain() {
bundle = candidateBundle.X509Authorities()
} else {
federatedBundles[candidateBundle.TrustDomain().String()] = candidateBundle.X509Authorities()
federatedBundles[candidateBundle.TrustDomain().Name()] = candidateBundle.X509Authorities()
}
}
@ -98,7 +99,7 @@ func (w *watcher) OnX509ContextUpdate(x509Context *workloadapi.X509Context) {
FederatedBundles: federatedBundles,
})
}
printX509SVIDResponse(svids, time.Since(w.updateTime))
printX509SVIDResponse(commoncli.DefaultEnv, svids, time.Since(w.updateTime))
w.updateTime = time.Now()
}

View File

@ -1,6 +1,7 @@
package cli
import (
"context"
stdlog "log"
"github.com/mitchellh/cli"
@ -17,7 +18,7 @@ type CLI struct {
AllowUnknownConfig bool
}
func (cc *CLI) Run(args []string) int {
func (cc *CLI) Run(ctx context.Context, args []string) int {
c := cli.NewCLI("spire-agent", version.Version())
c.Args = args
c.Commands = map[string]cli.CommandFactory{
@ -37,7 +38,7 @@ func (cc *CLI) Run(args []string) int {
return &api.WatchCLI{}, nil
},
"run": func() (cli.Command, error) {
return run.NewRunCommand(cc.LogOptions, cc.AllowUnknownConfig), nil
return run.NewRunCommand(ctx, cc.LogOptions, cc.AllowUnknownConfig), nil
},
"healthcheck": func() (cli.Command, error) {
return healthcheck.NewHealthCheckCommand(), nil

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package common

View File

@ -1,5 +1,4 @@
//go:build windows
// +build windows
package common

View File

@ -1,9 +1,10 @@
//go:build !windows
// +build !windows
package common
const (
// DefaultSocketPath is the SPIRE agent's default socket path
DefaultSocketPath = "/tmp/spire-agent/public/api.sock"
// DefaultAdminSocketPath is the SPIRE agent's default admin socket path
DefaultAdminSocketPath = "/tmp/spire-agent/private/admin.sock"
)

View File

@ -1,9 +1,10 @@
//go:build windows
// +build windows
package common
const (
// DefaultNamedPipeName is the SPIRE agent's default named pipe name
DefaultNamedPipeName = "\\spire-agent\\public\\api"
// DefaultAdminNamedPipeName is the SPIRE agent's default admin named pipe name
DefaultAdminNamedPipeName = "\\spire-agent\\private\\admin"
)

View File

@ -79,7 +79,7 @@ func (c *healthCheckCommand) run() error {
if err != nil {
return err
}
conn, err := util.GRPCDialContext(context.Background(), target)
conn, err := util.NewGRPCClient(target)
if err != nil {
return err
}

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package healthcheck

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package healthcheck
@ -21,7 +20,7 @@ var (
`
socketAddrArg = "-socketPath"
socketAddrUnavailable = "/tmp/doesnotexist.sock"
unavailableErr = "Failed to check health: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /tmp/doesnotexist.sock: connect: no such file or directory\"\nAgent is unhealthy: unable to determine health\n"
unavailableErr = "Failed to check health: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /tmp/doesnotexist.sock: connect: no such file or directory\"\nAgent is unhealthy: unable to determine health\n"
)
func startGRPCSocketServer(t *testing.T, registerFn func(srv *grpc.Server)) string {

View File

@ -1,5 +1,4 @@
//go:build windows
// +build windows
package healthcheck

View File

@ -1,5 +1,4 @@
//go:build windows
// +build windows
package healthcheck
@ -22,7 +21,7 @@ var (
`
socketAddrArg = "-namedPipeName"
socketAddrUnavailable = "doesnotexist"
unavailableErr = "Failed to check health: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing open \\\\\\\\.\\\\pipe\\\\doesnotexist: The system cannot find the file specified.\"\nAgent is unhealthy: unable to determine health\n"
unavailableErr = "Failed to check health: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: open \\\\\\\\.\\\\pipe\\\\doesnotexist: The system cannot find the file specified.\"\nAgent is unhealthy: unable to determine health\n"
)
func startGRPCSocketServer(t *testing.T, registerFn func(srv *grpc.Server)) string {

View File

@ -2,17 +2,16 @@ package run
import (
"context"
"crypto/x509"
"errors"
"flag"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"path/filepath"
"sort"
"strconv"
"strings"
"syscall"
@ -20,19 +19,23 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/hashicorp/hcl"
"github.com/hashicorp/hcl/hcl/ast"
"github.com/hashicorp/hcl/hcl/token"
"github.com/imdario/mergo"
"github.com/mitchellh/cli"
"github.com/sirupsen/logrus"
"github.com/spiffe/spire/pkg/agent"
"github.com/spiffe/spire/pkg/agent/trustbundlesources"
"github.com/spiffe/spire/pkg/agent/workloadkey"
"github.com/spiffe/spire/pkg/common/catalog"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/config"
"github.com/spiffe/spire/pkg/common/fflag"
"github.com/spiffe/spire/pkg/common/health"
"github.com/spiffe/spire/pkg/common/idutil"
"github.com/spiffe/spire/pkg/common/log"
"github.com/spiffe/spire/pkg/common/pemutil"
"github.com/spiffe/spire/pkg/common/telemetry"
"github.com/spiffe/spire/pkg/common/tlspolicy"
)
const (
@ -47,35 +50,44 @@ const (
defaultDefaultBundleName = "ROOTCA"
defaultDefaultAllBundlesName = "ALL"
defaultDisableSPIFFECertValidation = false
minimumAvailabilityTarget = 24 * time.Hour
)
// Config contains all available configurables, arranged by section
type Config struct {
Agent *agentConfig `hcl:"agent"`
Plugins *catalog.HCLPluginConfigMap `hcl:"plugins"`
Telemetry telemetry.FileConfig `hcl:"telemetry"`
HealthChecks health.Config `hcl:"health_checks"`
UnusedKeys []string `hcl:",unusedKeys"`
Agent *agentConfig `hcl:"agent"`
Plugins ast.Node `hcl:"plugins"`
Telemetry telemetry.FileConfig `hcl:"telemetry"`
HealthChecks health.Config `hcl:"health_checks"`
UnusedKeyPositions map[string][]token.Pos `hcl:",unusedKeyPositions"`
}
type agentConfig struct {
DataDir string `hcl:"data_dir"`
AdminSocketPath string `hcl:"admin_socket_path"`
InsecureBootstrap bool `hcl:"insecure_bootstrap"`
RetryBootstrap *bool `hcl:"retry_bootstrap"`
JoinToken string `hcl:"join_token"`
LogFile string `hcl:"log_file"`
LogFormat string `hcl:"log_format"`
LogLevel string `hcl:"log_level"`
LogSourceLocation bool `hcl:"log_source_location"`
SDS sdsConfig `hcl:"sds"`
ServerAddress string `hcl:"server_address"`
ServerPort int `hcl:"server_port"`
SocketPath string `hcl:"socket_path"`
WorkloadX509SVIDKeyType string `hcl:"workload_x509_svid_key_type"`
TrustBundleFormat string `hcl:"trust_bundle_format"`
TrustBundlePath string `hcl:"trust_bundle_path"`
TrustBundleUnixSocket string `hcl:"trust_bundle_unix_socket"`
TrustBundleURL string `hcl:"trust_bundle_url"`
TrustDomain string `hcl:"trust_domain"`
AllowUnauthenticatedVerifiers bool `hcl:"allow_unauthenticated_verifiers"`
AllowedForeignJWTClaims []string `hcl:"allowed_foreign_jwt_claims"`
AvailabilityTarget string `hcl:"availability_target"`
X509SVIDCacheMaxSize int `hcl:"x509_svid_cache_max_size"`
JWTSVIDCacheMaxSize int `hcl:"jwt_svid_cache_max_size"`
AuthorizedDelegates []string `hcl:"authorized_delegates"`
@ -89,7 +101,7 @@ type agentConfig struct {
ProfilingNames []string `hcl:"profiling_names"`
Experimental experimentalConfig `hcl:"experimental"`
UnusedKeys []string `hcl:",unusedKeys"`
UnusedKeyPositions map[string][]token.Pos `hcl:",unusedKeyPositions"`
}
type sdsConfig struct {
@ -100,28 +112,29 @@ type sdsConfig struct {
}
type experimentalConfig struct {
SyncInterval string `hcl:"sync_interval"`
NamedPipeName string `hcl:"named_pipe_name"`
AdminNamedPipeName string `hcl:"admin_named_pipe_name"`
SyncInterval string `hcl:"sync_interval"`
NamedPipeName string `hcl:"named_pipe_name"`
AdminNamedPipeName string `hcl:"admin_named_pipe_name"`
UseSyncAuthorizedEntries *bool `hcl:"use_sync_authorized_entries"`
RequirePQKEM bool `hcl:"require_pq_kem"`
Flags fflag.RawConfig `hcl:"feature_flags"`
UnusedKeys []string `hcl:",unusedKeys"`
X509SVIDCacheMaxSize int `hcl:"x509_svid_cache_max_size"`
}
type Command struct {
ctx context.Context
logOptions []log.Option
env *common_cli.Env
allowUnknownConfig bool
}
func NewRunCommand(logOptions []log.Option, allowUnknownConfig bool) cli.Command {
return newRunCommand(common_cli.DefaultEnv, logOptions, allowUnknownConfig)
func NewRunCommand(ctx context.Context, logOptions []log.Option, allowUnknownConfig bool) cli.Command {
return newRunCommand(ctx, common_cli.DefaultEnv, logOptions, allowUnknownConfig)
}
func newRunCommand(env *common_cli.Env, logOptions []log.Option, allowUnknownConfig bool) *Command {
func newRunCommand(ctx context.Context, env *common_cli.Env, logOptions []log.Option, allowUnknownConfig bool) *Command {
return &Command{
ctx: ctx,
env: env,
logOptions: logOptions,
allowUnknownConfig: allowUnknownConfig,
@ -183,7 +196,11 @@ func (cmd *Command) Run(args []string) int {
a := agent.New(c)
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
ctx := cmd.ctx
if ctx == nil {
ctx = context.Background()
}
ctx, stop := signal.NotifyContext(ctx, syscall.SIGINT, syscall.SIGTERM)
defer stop()
err = a.Run(ctx)
@ -217,11 +234,21 @@ func (c *agentConfig) validate() error {
return errors.New("trust_domain must be configured")
}
// If insecure_bootstrap is set, trust_bundle_path or trust_bundle_url cannot be set
// If trust_bundle_url is set, download the trust bundle using HTTP and parse it from memory
// If trust_bundle_path is set, parse the trust bundle file on disk
// Both cannot be set
// The trust bundle URL must start with HTTPS
if c.TrustBundlePath == "" && c.TrustBundleURL == "" && !c.InsecureBootstrap {
if c.InsecureBootstrap {
switch {
case c.TrustBundleURL != "" && c.TrustBundlePath != "":
return errors.New("only one of insecure_bootstrap, trust_bundle_url, or trust_bundle_path can be specified, not the three options")
case c.TrustBundleURL != "":
return errors.New("only one of insecure_bootstrap or trust_bundle_url can be specified, not both")
case c.TrustBundlePath != "":
return errors.New("only one of insecure_bootstrap or trust_bundle_path can be specified, not both")
}
} else if c.TrustBundlePath == "" && c.TrustBundleURL == "" {
return errors.New("trust_bundle_path or trust_bundle_url must be configured unless insecure_bootstrap is set")
}
@ -229,12 +256,32 @@ func (c *agentConfig) validate() error {
return errors.New("only one of trust_bundle_url or trust_bundle_path can be specified, not both")
}
if c.TrustBundleFormat != trustbundlesources.BundleFormatPEM && c.TrustBundleFormat != trustbundlesources.BundleFormatSPIFFE {
return fmt.Errorf("invalid value for trust_bundle_format, expected %q or %q", trustbundlesources.BundleFormatPEM, trustbundlesources.BundleFormatSPIFFE)
}
if c.TrustBundleUnixSocket != "" && c.TrustBundleURL == "" {
return errors.New("if trust_bundle_unix_socket is specified, so must be trust_bundle_url")
}
if c.TrustBundleURL != "" {
u, err := url.Parse(c.TrustBundleURL)
if err != nil {
return fmt.Errorf("unable to parse trust bundle URL: %w", err)
}
if u.Scheme != "https" {
if c.TrustBundleUnixSocket != "" {
if u.Scheme != "http" {
return errors.New("trust bundle URL must start with http:// when used with trust bundle unix socket")
}
params := u.Query()
for key := range params {
if strings.HasPrefix(key, "spiffe-") {
return errors.New("trust_bundle_url query params can not start with spiffe-")
}
if strings.HasPrefix(key, "spire-") {
return errors.New("trust_bundle_url query params can not start with spire-")
}
}
} else if u.Scheme != "https" {
return errors.New("trust bundle URL must start with https://")
}
}
@ -268,7 +315,7 @@ func ParseFile(path string, expandEnv bool) (*Config, error) {
// If envTemplate flag is passed, substitute $VARIABLES in configuration file
if expandEnv {
data = os.ExpandEnv(data)
data = config.ExpandEnv(data)
}
if err := hcl.Decode(&c, data); err != nil {
@ -282,6 +329,7 @@ func parseFlags(name string, args []string, output io.Writer) (*agentConfig, err
flags := flag.NewFlagSet(name, flag.ContinueOnError)
flags.SetOutput(output)
c := &agentConfig{}
retryBootstrap := false
flags.StringVar(&c.ConfigPath, "config", defaultConfigPath, "Path to a SPIRE config file")
flags.StringVar(&c.DataDir, "dataDir", "", "A directory the agent can use for its runtime data")
@ -289,13 +337,16 @@ func parseFlags(name string, args []string, output io.Writer) (*agentConfig, err
flags.StringVar(&c.LogFile, "logFile", "", "File to write logs to")
flags.StringVar(&c.LogFormat, "logFormat", "", "'text' or 'json'")
flags.StringVar(&c.LogLevel, "logLevel", "", "'debug', 'info', 'warn', or 'error'")
flags.BoolVar(&c.LogSourceLocation, "logSourceLocation", false, "Include source file, line number and function name in log lines")
flags.StringVar(&c.ServerAddress, "serverAddress", "", "IP address or DNS name of the SPIRE server")
flags.IntVar(&c.ServerPort, "serverPort", 0, "Port number of the SPIRE server")
flags.StringVar(&c.TrustDomain, "trustDomain", "", "The trust domain that this agent belongs to")
flags.StringVar(&c.TrustBundlePath, "trustBundle", "", "Path to the SPIRE server CA bundle")
flags.StringVar(&c.TrustBundleURL, "trustBundleUrl", "", "URL to download the SPIRE server CA bundle")
flags.StringVar(&c.TrustBundleFormat, "trustBundleFormat", "", fmt.Sprintf("Format of the bootstrap trust bundle, %q or %q", trustbundlesources.BundleFormatPEM, trustbundlesources.BundleFormatSPIFFE))
flags.BoolVar(&c.AllowUnauthenticatedVerifiers, "allowUnauthenticatedVerifiers", false, "If true, the agent permits the retrieval of X509 certificate bundles by unregistered clients")
flags.BoolVar(&c.InsecureBootstrap, "insecureBootstrap", false, "If true, the agent bootstraps without verifying the server's identity")
flags.BoolVar(&retryBootstrap, "retryBootstrap", true, "If true, the agent retries bootstrap with backoff")
flags.BoolVar(&c.ExpandEnv, "expandEnv", false, "Expand environment variables in SPIRE config file")
c.addOSFlags(flags)
@ -305,6 +356,12 @@ func parseFlags(name string, args []string, output io.Writer) (*agentConfig, err
return nil, err
}
flags.Visit(func(f *flag.Flag) {
if f.Name == "retryBootstrap" {
c.RetryBootstrap = &retryBootstrap
}
})
return c, nil
}
@ -330,56 +387,6 @@ func mergeInput(fileInput *Config, cliInput *agentConfig) (*Config, error) {
return c, nil
}
func downloadTrustBundle(trustBundleURL string) ([]*x509.Certificate, error) {
// Download the trust bundle URL from the user specified URL
// We use gosec -- the annotation below will disable a security check that URLs are not tainted
/* #nosec G107 */
resp, err := http.Get(trustBundleURL)
if err != nil {
return nil, fmt.Errorf("unable to fetch trust bundle URL %s: %w", trustBundleURL, err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("error downloading trust bundle: %s", resp.Status)
}
pemBytes, err := io.ReadAll(resp.Body)
if err != nil {
return nil, fmt.Errorf("unable to read from trust bundle URL %s: %w", trustBundleURL, err)
}
bundle, err := pemutil.ParseCertificates(pemBytes)
if err != nil {
return nil, err
}
return bundle, nil
}
func setupTrustBundle(ac *agent.Config, c *Config) error {
// Either download the turst bundle if TrustBundleURL is set, or read it
// from disk if TrustBundlePath is set
ac.InsecureBootstrap = c.Agent.InsecureBootstrap
switch {
case c.Agent.TrustBundleURL != "":
bundle, err := downloadTrustBundle(c.Agent.TrustBundleURL)
if err != nil {
return err
}
ac.TrustBundle = bundle
case c.Agent.TrustBundlePath != "":
bundle, err := parseTrustBundle(c.Agent.TrustBundlePath)
if err != nil {
return fmt.Errorf("could not parse trust bundle: %w", err)
}
ac.TrustBundle = bundle
}
return nil
}
func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) (*agent.Config, error) {
ac := &agent.Config{}
@ -395,11 +402,6 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
}
}
if c.Agent.Experimental.X509SVIDCacheMaxSize < 0 {
return nil, errors.New("x509_svid_cache_max_size should not be negative")
}
ac.X509SVIDCacheMaxSize = c.Agent.Experimental.X509SVIDCacheMaxSize
serverHostPort := net.JoinHostPort(c.Agent.ServerAddress, strconv.Itoa(c.Agent.ServerPort))
ac.ServerAddress = fmt.Sprintf("dns:///%s", serverHostPort)
@ -407,9 +409,13 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
log.WithLevel(c.Agent.LogLevel),
log.WithFormat(c.Agent.LogFormat),
)
if c.Agent.LogSourceLocation {
logOptions = append(logOptions, log.WithSourceLocation())
}
var reopenableFile *log.ReopenableFile
if c.Agent.LogFile != "" {
reopenableFile, err := log.NewReopenableFile(c.Agent.LogFile)
var err error
reopenableFile, err = log.NewReopenableFile(c.Agent.LogFile)
if err != nil {
return nil, err
}
@ -425,6 +431,28 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
ac.LogReopener = log.ReopenOnSignal(logger, reopenableFile)
}
ac.RetryBootstrap = true
if c.Agent.RetryBootstrap != nil {
ac.Log.Warn("The 'retry_bootstrap' configuration is deprecated. It will be removed in SPIRE 1.14. Please test without the flag before upgrading.")
ac.RetryBootstrap = *c.Agent.RetryBootstrap
}
ac.UseSyncAuthorizedEntries = true
if c.Agent.Experimental.UseSyncAuthorizedEntries != nil {
ac.Log.Warn("The 'use_sync_authorized_entries' configuration is deprecated. The option to disable it will be removed in SPIRE 1.13.")
ac.UseSyncAuthorizedEntries = *c.Agent.Experimental.UseSyncAuthorizedEntries
}
if c.Agent.X509SVIDCacheMaxSize < 0 {
return nil, errors.New("x509_svid_cache_max_size should not be negative")
}
ac.X509SVIDCacheMaxSize = c.Agent.X509SVIDCacheMaxSize
if c.Agent.JWTSVIDCacheMaxSize < 0 {
return nil, errors.New("jwt_svid_cache_max_size should not be negative")
}
ac.JWTSVIDCacheMaxSize = c.Agent.JWTSVIDCacheMaxSize
td, err := common_cli.ParseTrustDomain(c.Agent.TrustDomain, logger)
if err != nil {
return nil, err
@ -454,11 +482,16 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
}
ac.DisableSPIFFECertValidation = c.Agent.SDS.DisableSPIFFECertValidation
err = setupTrustBundle(ac, c)
if err != nil {
return nil, err
ts := &trustbundlesources.Config{
InsecureBootstrap: c.Agent.InsecureBootstrap,
TrustBundleFormat: c.Agent.TrustBundleFormat,
TrustBundlePath: c.Agent.TrustBundlePath,
TrustBundleURL: c.Agent.TrustBundleURL,
TrustBundleUnixSocket: c.Agent.TrustBundleUnixSocket,
}
ac.TrustBundleSources = trustbundlesources.New(ts, ac.Log.WithField("Logger", "TrustBundleSources"))
ac.WorkloadKeyType = workloadkey.ECP256
if c.Agent.WorkloadX509SVIDKeyType != "" {
ac.WorkloadKeyType, err = workloadkey.KeyTypeFromString(c.Agent.WorkloadX509SVIDKeyType)
@ -474,7 +507,11 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
ac.AllowedForeignJWTClaims = c.Agent.AllowedForeignJWTClaims
ac.PluginConfigs = *c.Plugins
ac.PluginConfigs, err = catalog.PluginConfigsFromHCLNode(c.Plugins)
if err != nil {
return nil, err
}
ac.Telemetry = c.Telemetry
ac.HealthChecks = c.HealthChecks
@ -494,6 +531,23 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
ac.AuthorizedDelegates = c.Agent.AuthorizedDelegates
if c.Agent.AvailabilityTarget != "" {
t, err := time.ParseDuration(c.Agent.AvailabilityTarget)
if err != nil {
return nil, fmt.Errorf("unable to parse availability_target: %w", err)
}
if t < minimumAvailabilityTarget {
return nil, fmt.Errorf("availability_target must be at least %s", minimumAvailabilityTarget.String())
}
ac.AvailabilityTarget = t
}
ac.TLSPolicy = tlspolicy.Policy{
RequirePQKEM: c.Agent.Experimental.RequirePQKEM,
}
tlspolicy.LogPolicy(ac.TLSPolicy, log.NewHCLogAdapter(logger, "tlspolicy"))
if cmp.Diff(experimentalConfig{}, c.Agent.Experimental) != "" {
logger.Warn("Experimental features have been enabled. Please see doc/upgrading.md for upgrade and compatibility considerations for experimental features.")
}
@ -510,15 +564,17 @@ func validateConfig(c *Config) error {
return errors.New("plugins section must be configured")
}
if err := c.Agent.validate(); err != nil {
return err
}
return nil
return c.Agent.validate()
}
func checkForUnknownConfig(c *Config, l logrus.FieldLogger) (err error) {
detectedUnknown := func(section string, keys []string) {
detectedUnknown := func(section string, keyPositions map[string][]token.Pos) {
var keys []string
for k := range keyPositions {
keys = append(keys, k)
}
sort.Strings(keys)
l.WithFields(logrus.Fields{
"section": section,
"keys": strings.Join(keys, ","),
@ -526,49 +582,49 @@ func checkForUnknownConfig(c *Config, l logrus.FieldLogger) (err error) {
err = errors.New("unknown configuration detected")
}
if len(c.UnusedKeys) != 0 {
detectedUnknown("top-level", c.UnusedKeys)
if len(c.UnusedKeyPositions) != 0 {
detectedUnknown("top-level", c.UnusedKeyPositions)
}
if a := c.Agent; a != nil && len(a.UnusedKeys) != 0 {
detectedUnknown("agent", a.UnusedKeys)
if a := c.Agent; a != nil && len(a.UnusedKeyPositions) != 0 {
detectedUnknown("agent", a.UnusedKeyPositions)
}
// TODO: Re-enable unused key detection for telemetry. See
// https://github.com/spiffe/spire/issues/1101 for more information
//
// if len(c.Telemetry.UnusedKeys) != 0 {
// detectedUnknown("telemetry", c.Telemetry.UnusedKeys)
// if len(c.Telemetry.UnusedKeyPositions) != 0 {
// detectedUnknown("telemetry", c.Telemetry.UnusedKeyPositions)
// }
if p := c.Telemetry.Prometheus; p != nil && len(p.UnusedKeys) != 0 {
detectedUnknown("Prometheus", p.UnusedKeys)
if p := c.Telemetry.Prometheus; p != nil && len(p.UnusedKeyPositions) != 0 {
detectedUnknown("Prometheus", p.UnusedKeyPositions)
}
for _, v := range c.Telemetry.DogStatsd {
if len(v.UnusedKeys) != 0 {
detectedUnknown("DogStatsd", v.UnusedKeys)
if len(v.UnusedKeyPositions) != 0 {
detectedUnknown("DogStatsd", v.UnusedKeyPositions)
}
}
for _, v := range c.Telemetry.Statsd {
if len(v.UnusedKeys) != 0 {
detectedUnknown("Statsd", v.UnusedKeys)
if len(v.UnusedKeyPositions) != 0 {
detectedUnknown("Statsd", v.UnusedKeyPositions)
}
}
for _, v := range c.Telemetry.M3 {
if len(v.UnusedKeys) != 0 {
detectedUnknown("M3", v.UnusedKeys)
if len(v.UnusedKeyPositions) != 0 {
detectedUnknown("M3", v.UnusedKeyPositions)
}
}
if p := c.Telemetry.InMem; p != nil && len(p.UnusedKeys) != 0 {
detectedUnknown("InMem", p.UnusedKeys)
if p := c.Telemetry.InMem; p != nil && len(p.UnusedKeyPositions) != 0 {
detectedUnknown("InMem", p.UnusedKeyPositions)
}
if len(c.HealthChecks.UnusedKeys) != 0 {
detectedUnknown("health check", c.HealthChecks.UnusedKeys)
if len(c.HealthChecks.UnusedKeyPositions) != 0 {
detectedUnknown("health check", c.HealthChecks.UnusedKeyPositions)
}
return err
@ -577,9 +633,10 @@ func checkForUnknownConfig(c *Config, l logrus.FieldLogger) (err error) {
func defaultConfig() *Config {
c := &Config{
Agent: &agentConfig{
DataDir: defaultDataDir,
LogLevel: defaultLogLevel,
LogFormat: log.DefaultFormat,
DataDir: defaultDataDir,
LogLevel: defaultLogLevel,
LogFormat: log.DefaultFormat,
TrustBundleFormat: trustbundlesources.BundleFormatPEM,
SDS: sdsConfig{
DefaultBundleName: defaultDefaultBundleName,
DefaultSVIDName: defaultDefaultSVIDName,
@ -592,16 +649,3 @@ func defaultConfig() *Config {
return c
}
func parseTrustBundle(path string) ([]*x509.Certificate, error) {
bundle, err := pemutil.LoadCertificates(path)
if err != nil {
return nil, err
}
if len(bundle) == 0 {
return nil, errors.New("no certificates found in trust bundle")
}
return bundle, nil
}

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package run

View File

@ -1,19 +1,149 @@
//go:build !windows
// +build !windows
package run
import (
"bytes"
"fmt"
"os"
"path"
"testing"
"github.com/hashicorp/hcl/hcl/printer"
"github.com/spiffe/spire/pkg/agent"
"github.com/spiffe/spire/pkg/common/catalog"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/fflag"
"github.com/spiffe/spire/pkg/common/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/sys/unix"
)
func TestCommand_Run(t *testing.T) {
testTempDir := t.TempDir()
testDataDir := fmt.Sprintf("%s/data", testTempDir)
testAgentSocketDir := fmt.Sprintf("%s/spire-agent", testTempDir)
type fields struct {
logOptions []log.Option
env *commoncli.Env
allowUnknownConfig bool
}
type args struct {
args []string
}
type want struct {
code int
dataDirCreated bool
agentUdsDirCreated bool
stderrContent string
}
tests := []struct {
name string
fields fields
args args
want want
}{
{
name: "don't create any dir when error loading nonexistent config",
args: args{
args: []string{},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
agentUdsDirCreated: false,
dataDirCreated: false,
stderrContent: "could not find config file",
},
},
{
name: "don't create any dir when error loading invalid config",
args: args{
args: []string{
"-config", "../../../../test/fixture/config/agent_run_posix.conf",
"-namedPipeName", "\\spire-agent\\public\\api",
},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
agentUdsDirCreated: false,
dataDirCreated: false,
stderrContent: "flag provided but not defined: -namedPipeName",
},
},
{
name: "creates spire-agent uds and data dirs",
args: args{
args: []string{
"-config", "../../../../test/fixture/config/agent_run_posix.conf",
"-trustBundle", "../../../../conf/agent/dummy_root_ca.crt",
"-dataDir", testDataDir,
"-socketPath", fmt.Sprintf("%s/spire-agent/api.sock", testTempDir),
},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
agentUdsDirCreated: true,
dataDirCreated: true,
},
},
}
for _, testCase := range tests {
t.Run(testCase.name, func(t *testing.T) {
_ = fflag.Unload()
os.RemoveAll(testDataDir)
cmd := &Command{
logOptions: testCase.fields.logOptions,
env: testCase.fields.env,
allowUnknownConfig: testCase.fields.allowUnknownConfig,
}
code := cmd.Run(testCase.args.args)
assert.Equal(t, testCase.want.code, code)
if testCase.want.stderrContent == "" {
assert.Empty(t, testCase.fields.env.Stderr.(*bytes.Buffer).String())
} else {
assert.Contains(t, testCase.fields.env.Stderr.(*bytes.Buffer).String(), testCase.want.stderrContent)
}
if testCase.want.agentUdsDirCreated {
assert.DirExistsf(t, testAgentSocketDir, "spire-agent uds dir should be created")
currentUmask := unix.Umask(0)
assert.Equalf(t, currentUmask, 0o027, "spire-agent process should be created with 0027 umask")
} else {
assert.NoDirExistsf(t, testAgentSocketDir, "spire-agent uds dir should not be created")
}
if testCase.want.dataDirCreated {
assert.DirExistsf(t, testDataDir, "expected data directory to be created")
} else {
assert.NoDirExistsf(t, testDataDir, "expected data directory to not be created")
}
})
}
}
func TestParseFlagsGood(t *testing.T) {
c, err := parseFlags("run", []string{
"-dataDir=.",
@ -51,38 +181,40 @@ func TestParseConfigGood(t *testing.T) {
assert.Equal(t, true, c.Agent.AllowUnauthenticatedVerifiers)
assert.Equal(t, []string{"c1", "c2", "c3"}, c.Agent.AllowedForeignJWTClaims)
// Parse/reprint cycle trims outer whitespace
const data = `join_token = "PLUGIN-AGENT-NOT-A-SECRET"`
// Check for plugins configurations
pluginConfigs := *c.Plugins
expectedData := "join_token = \"PLUGIN-AGENT-NOT-A-SECRET\""
var data bytes.Buffer
err = printer.DefaultConfig.Fprint(&data, pluginConfigs["plugin_type_agent"]["plugin_name_agent"].PluginData)
assert.NoError(t, err)
expectedPluginConfigs := catalog.PluginConfigs{
{
Type: "plugin_type_agent",
Name: "plugin_name_agent",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FixedData(data),
Disabled: false,
},
{
Type: "plugin_type_agent",
Name: "plugin_disabled",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FixedData(data),
Disabled: true,
},
{
Type: "plugin_type_agent",
Name: "plugin_enabled",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FileData("plugin.conf"),
Disabled: false,
},
}
assert.Len(t, pluginConfigs, 1)
assert.Len(t, pluginConfigs["plugin_type_agent"], 3)
pluginConfig := pluginConfigs["plugin_type_agent"]["plugin_name_agent"]
assert.Nil(t, pluginConfig.Enabled)
assert.Equal(t, true, pluginConfig.IsEnabled())
assert.Equal(t, "pluginAgentChecksum", pluginConfig.PluginChecksum)
assert.Equal(t, "./pluginAgentCmd", pluginConfig.PluginCmd)
assert.Equal(t, data.String(), expectedData)
// Disabled plugin
pluginConfig = pluginConfigs["plugin_type_agent"]["plugin_disabled"]
assert.NotNil(t, pluginConfig.Enabled)
assert.Equal(t, false, pluginConfig.IsEnabled())
assert.Equal(t, "pluginAgentChecksum", pluginConfig.PluginChecksum)
assert.Equal(t, "./pluginAgentCmd", pluginConfig.PluginCmd)
assert.Equal(t, data.String(), expectedData)
// Enabled plugin
pluginConfig = pluginConfigs["plugin_type_agent"]["plugin_enabled"]
assert.NotNil(t, pluginConfig.Enabled)
assert.Equal(t, true, pluginConfig.IsEnabled())
assert.Equal(t, "pluginAgentChecksum", pluginConfig.PluginChecksum)
assert.Equal(t, "./pluginAgentCmd", pluginConfig.PluginCmd)
assert.Equal(t, data.String(), expectedData)
pluginConfigs, err := catalog.PluginConfigsFromHCLNode(c.Plugins)
require.NoError(t, err)
require.Equal(t, expectedPluginConfigs, pluginConfigs)
}
func mergeInputCasesOS() []mergeInputCase {
@ -106,7 +238,7 @@ func mergeInputCasesOS() []mergeInputCase {
},
},
{
msg: "socket_path should be configuable by CLI flag",
msg: "socket_path should be configurable by CLI flag",
fileInput: func(c *Config) {},
cliInput: func(c *agentConfig) {
c.SocketPath = "foo"
@ -140,7 +272,9 @@ func mergeInputCasesOS() []mergeInputCase {
}
}
func newAgentConfigCasesOS() []newAgentConfigCase {
func newAgentConfigCasesOS(t *testing.T) []newAgentConfigCase {
testDir := t.TempDir()
return []newAgentConfigCase{
{
msg: "socket_path should be correctly configured",
@ -163,7 +297,7 @@ func newAgentConfigCasesOS() []newAgentConfigCase {
},
},
{
msg: "admin_socket_path configured with similar folther that socket_path",
msg: "admin_socket_path configured with similar folder that socket_path",
input: func(c *Config) {
c.Agent.SocketPath = "/tmp/workload/workload.sock"
c.Agent.AdminSocketPath = "/tmp/workload-admin/admin.sock"
@ -228,5 +362,15 @@ func newAgentConfigCasesOS() []newAgentConfigCase {
require.Nil(t, c.AdminBindAddress)
},
},
{
msg: "log_file allows to reopen",
input: func(c *Config) {
c.Agent.LogFile = path.Join(testDir, "foo")
},
test: func(t *testing.T, c *agent.Config) {
require.NotNil(t, c.Log)
require.NotNil(t, c.LogReopener)
},
},
}
}

View File

@ -2,19 +2,18 @@ package run
import (
"io"
"net/http"
"net/http/httptest"
"os"
"path"
"path/filepath"
"strings"
"testing"
"time"
"github.com/hashicorp/hcl/hcl/ast"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiffe/spire/pkg/agent"
"github.com/spiffe/spire/pkg/agent/workloadkey"
"github.com/spiffe/spire/pkg/common/catalog"
"github.com/spiffe/spire/pkg/common/log"
"github.com/spiffe/spire/test/spiretest"
"github.com/spiffe/spire/test/util"
@ -30,74 +29,12 @@ type mergeInputCase struct {
}
type newAgentConfigCase struct {
msg string
expectError bool
input func(*Config)
logOptions func(t *testing.T) []log.Option
test func(*testing.T, *agent.Config)
}
func TestDownloadTrustBundle(t *testing.T) {
testTB, _ := os.ReadFile(path.Join(util.ProjectRoot(), "conf/agent/dummy_root_ca.crt"))
cases := []struct {
msg string
status int
fileContents string
expectError bool
}{
{
msg: "if URL is not found, should be an error",
status: http.StatusNotFound,
fileContents: "",
expectError: true,
},
{
msg: "if URL returns error 500, should be an error",
status: http.StatusInternalServerError,
fileContents: "",
expectError: true,
},
{
msg: "if file is not parseable, should be an error",
status: http.StatusOK,
fileContents: "NON PEM PARSEABLE TEXT HERE",
expectError: true,
},
{
msg: "if file is empty, should be error",
status: http.StatusOK,
fileContents: "",
expectError: true,
},
{
msg: "if file is valid, should be error",
status: http.StatusOK,
fileContents: string(testTB),
expectError: false,
},
}
for _, testCase := range cases {
testCase := testCase
t.Run(testCase.msg, func(t *testing.T) {
testServer := httptest.NewServer(http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(testCase.status)
_, _ = io.WriteString(w, testCase.fileContents)
// if err != nil {
// return
// }
}))
defer testServer.Close()
_, err := downloadTrustBundle(testServer.URL)
if testCase.expectError {
require.Error(t, err)
} else {
require.NoError(t, err)
}
})
}
msg string
expectError bool
requireErrorPrefix string
input func(*Config)
logOptions func(t *testing.T) []log.Option
test func(*testing.T, *agent.Config)
}
func TestMergeInput(t *testing.T) {
@ -368,6 +305,46 @@ func TestMergeInput(t *testing.T) {
require.Equal(t, "DEBUG", c.Agent.LogLevel)
},
},
{
msg: "log_source_location should default to false if not set",
fileInput: func(c *Config) {},
cliInput: func(c *agentConfig) {},
test: func(t *testing.T, c *Config) {
require.False(t, c.Agent.LogSourceLocation)
},
},
{
msg: "log_source_location should be configurable by file",
fileInput: func(c *Config) {
c.Agent.LogSourceLocation = true
},
cliInput: func(c *agentConfig) {},
test: func(t *testing.T, c *Config) {
require.True(t, c.Agent.LogSourceLocation)
},
},
{
msg: "log_source_location should be configurable by CLI flag",
fileInput: func(c *Config) {},
cliInput: func(c *agentConfig) {
c.LogSourceLocation = true
},
test: func(t *testing.T, c *Config) {
require.True(t, c.Agent.LogSourceLocation)
},
},
{
msg: "log_source_location specified by CLI flag should take precedence over file",
fileInput: func(c *Config) {
c.Agent.LogSourceLocation = false
},
cliInput: func(c *agentConfig) {
c.LogSourceLocation = true
},
test: func(t *testing.T, c *Config) {
require.True(t, c.Agent.LogSourceLocation)
},
},
{
msg: "server_address should not have a default value",
fileInput: func(c *Config) {},
@ -523,12 +500,20 @@ func TestMergeInput(t *testing.T) {
require.Equal(t, "bar", c.Agent.TrustDomain)
},
},
{
msg: "require_pq_kem should be configurable by file",
fileInput: func(c *Config) {
c.Agent.Experimental.RequirePQKEM = true
},
cliInput: func(c *agentConfig) {},
test: func(t *testing.T, c *Config) {
require.True(t, c.Agent.Experimental.RequirePQKEM)
},
},
}
cases = append(cases, mergeInputCasesOS()...)
for _, testCase := range cases {
testCase := testCase
fileInput := &Config{Agent: &agentConfig{}}
cliInput := &agentConfig{}
@ -581,16 +566,39 @@ func TestNewAgentConfig(t *testing.T) {
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
require.False(t, c.InsecureBootstrap)
require.False(t, c.TrustBundleSources.GetInsecureBootstrap())
},
},
{
msg: "insecure_bootstrap should be correctly set to true",
input: func(c *Config) {
// in this case, remove trust_bundle_path provided by defaultValidConfig()
// because trust_bundle_path and insecure_bootstrap cannot be set at the same time
c.Agent.TrustBundlePath = ""
c.Agent.InsecureBootstrap = true
},
test: func(t *testing.T, c *agent.Config) {
require.True(t, c.InsecureBootstrap)
require.True(t, c.TrustBundleSources.GetInsecureBootstrap())
},
},
{
msg: "retry_bootstrap should be correctly set to false",
input: func(c *Config) {
rb := false
c.Agent.RetryBootstrap = &rb
},
test: func(t *testing.T, c *agent.Config) {
require.False(t, c.RetryBootstrap)
},
},
{
msg: "retry_bootstrap should be correctly set to true",
input: func(c *Config) {
rb := true
c.Agent.RetryBootstrap = &rb
},
test: func(t *testing.T, c *agent.Config) {
require.True(t, c.RetryBootstrap)
},
},
{
@ -640,8 +648,9 @@ func TestNewAgentConfig(t *testing.T) {
},
},
{
msg: "trust_bundle_path and trust_bundle_url cannot both be set",
expectError: true,
msg: "trust_bundle_path and trust_bundle_url cannot both be set",
expectError: true,
requireErrorPrefix: "only one of trust_bundle_url or trust_bundle_path can be specified, not both",
input: func(c *Config) {
c.Agent.TrustBundlePath = "foo"
c.Agent.TrustBundleURL = "foo2"
@ -651,10 +660,111 @@ func TestNewAgentConfig(t *testing.T) {
},
},
{
msg: "insecure_bootstrap and trust_bundle_url cannot both be set",
expectError: true,
msg: "insecure_bootstrap and trust_bundle_path cannot both be set",
expectError: true,
requireErrorPrefix: "only one of insecure_bootstrap or trust_bundle_path can be specified, not both",
input: func(c *Config) {
c.Agent.TrustBundlePath = "foo"
c.Agent.InsecureBootstrap = true
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "insecure_bootstrap and trust_bundle_url cannot both be set",
expectError: true,
requireErrorPrefix: "only one of insecure_bootstrap or trust_bundle_url can be specified, not both",
input: func(c *Config) {
// in this case, remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = "foo"
c.Agent.InsecureBootstrap = true
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "insecure_bootstrap, trust_bundle_url, trust_bundle_path cannot be set at the same time",
expectError: true,
requireErrorPrefix: "only one of insecure_bootstrap, trust_bundle_url, or trust_bundle_path can be specified, not the three options",
input: func(c *Config) {
c.Agent.TrustBundlePath = "bar"
c.Agent.TrustBundleURL = "foo"
c.Agent.InsecureBootstrap = true
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "trust_bundle_path or trust_bundle_url must be configured unless insecure_bootstrap is set",
expectError: true,
requireErrorPrefix: "trust_bundle_path or trust_bundle_url must be configured unless insecure_bootstrap is set",
input: func(c *Config) {
// in this case, remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = ""
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "trust_bundle_url must start with https://",
expectError: true,
requireErrorPrefix: "trust bundle URL must start with https://",
input: func(c *Config) {
// remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = "foo.bar"
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "trust_bundle_url must start with http:// when unix socket",
expectError: true,
requireErrorPrefix: "trust bundle URL must start with http://",
input: func(c *Config) {
// remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = "foo.bar"
c.Agent.TrustBundleUnixSocket = "foo.bar"
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "trust_bundle_url query params can not start with spiffe- when unix socket",
expectError: true,
requireErrorPrefix: "trust_bundle_url query params can not start with spiffe-",
input: func(c *Config) {
// remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = "http://localhost/trustbundle?spiffe-test=foo"
c.Agent.TrustBundleUnixSocket = "foo.bar"
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "trust_bundle_url query params can not start with spire- when unix socket",
expectError: true,
requireErrorPrefix: "trust_bundle_url query params can not start with spire-",
input: func(c *Config) {
// remove trust_bundle_path provided by defaultValidConfig()
c.Agent.TrustBundlePath = ""
c.Agent.TrustBundleURL = "http://localhost/trustbundle?spire-test=foo"
c.Agent.TrustBundleUnixSocket = "foo.bar"
c.Agent.InsecureBootstrap = false
},
test: func(t *testing.T, c *agent.Config) {
@ -730,7 +840,7 @@ func TestNewAgentConfig(t *testing.T) {
{
msg: "x509_svid_cache_max_size is set",
input: func(c *Config) {
c.Agent.Experimental.X509SVIDCacheMaxSize = 100
c.Agent.X509SVIDCacheMaxSize = 100
},
test: func(t *testing.T, c *agent.Config) {
require.EqualValues(t, 100, c.X509SVIDCacheMaxSize)
@ -747,7 +857,7 @@ func TestNewAgentConfig(t *testing.T) {
{
msg: "x509_svid_cache_max_size is zero",
input: func(c *Config) {
c.Agent.Experimental.X509SVIDCacheMaxSize = 0
c.Agent.X509SVIDCacheMaxSize = 0
},
test: func(t *testing.T, c *agent.Config) {
require.EqualValues(t, 0, c.X509SVIDCacheMaxSize)
@ -757,7 +867,7 @@ func TestNewAgentConfig(t *testing.T) {
msg: "x509_svid_cache_max_size is negative",
expectError: true,
input: func(c *Config) {
c.Agent.Experimental.X509SVIDCacheMaxSize = -10
c.Agent.X509SVIDCacheMaxSize = -10
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
@ -808,7 +918,7 @@ func TestNewAgentConfig(t *testing.T) {
t.Cleanup(func() {
spiretest.AssertLogsContainEntries(t, hook.AllEntries(), []spiretest.LogEntry{
{
Data: map[string]interface{}{"trust_domain": strings.Repeat("a", 256)},
Data: map[string]any{"trust_domain": strings.Repeat("a", 256)},
Level: logrus.WarnLevel,
Message: "Configured trust domain name should be less than 255 characters to be " +
"SPIFFE compliant; a longer trust domain name may impact interoperability",
@ -823,11 +933,45 @@ func TestNewAgentConfig(t *testing.T) {
assert.NotNil(t, c)
},
},
}
cases = append(cases, newAgentConfigCasesOS()...)
for _, testCase := range cases {
testCase := testCase
{
msg: "availability_target parses a duration",
input: func(c *Config) {
c.Agent.AvailabilityTarget = "24h"
},
test: func(t *testing.T, c *agent.Config) {
require.EqualValues(t, 24*time.Hour, c.AvailabilityTarget)
},
},
{
msg: "availability_target is too short",
expectError: true,
input: func(c *Config) {
c.Agent.AvailabilityTarget = "1h"
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "require PQ KEM is disabled (default)",
input: func(c *Config) {},
test: func(t *testing.T, c *agent.Config) {
require.Equal(t, false, c.TLSPolicy.RequirePQKEM)
},
},
{
msg: "require PQ KEM is enabled",
input: func(c *Config) {
c.Agent.Experimental.RequirePQKEM = true
},
test: func(t *testing.T, c *agent.Config) {
require.Equal(t, true, c.TLSPolicy.RequirePQKEM)
},
},
}
cases = append(cases, newAgentConfigCasesOS(t)...)
for _, testCase := range cases {
input := defaultValidConfig()
testCase.input(input)
@ -841,6 +985,9 @@ func TestNewAgentConfig(t *testing.T) {
ac, err := NewAgentConfig(input, logOpts, false)
if testCase.expectError {
require.Error(t, err)
if testCase.requireErrorPrefix != "" {
spiretest.RequireErrorPrefix(t, err, testCase.requireErrorPrefix)
}
} else {
require.NoError(t, err)
}
@ -861,7 +1008,7 @@ func defaultValidConfig() *Config {
c.Agent.TrustBundlePath = path.Join(util.ProjectRoot(), "conf/agent/dummy_root_ca.crt")
c.Agent.TrustDomain = "example.org"
c.Plugins = &catalog.HCLPluginConfigMap{}
c.Plugins = &ast.ObjectList{}
return c
}
@ -987,8 +1134,6 @@ func TestWarnOnUnknownConfig(t *testing.T) {
}
for _, testCase := range cases {
testCase := testCase
c, err := ParseFile(filepath.Join(testFileDir, testCase.confFile), false)
require.NoError(t, err)

View File

@ -1,5 +1,4 @@
//go:build windows
// +build windows
package run
@ -44,7 +43,7 @@ func (c *agentConfig) validateOS() error {
return nil
}
func prepareEndpoints(c *agent.Config) error {
func prepareEndpoints(*agent.Config) error {
// Nothing to do in this platform
return nil
}

View File

@ -1,20 +1,135 @@
//go:build windows
// +build windows
package run
import (
"bytes"
"fmt"
"os"
"testing"
"github.com/hashicorp/hcl/hcl/printer"
"github.com/spiffe/spire/pkg/agent"
"github.com/spiffe/spire/pkg/common/catalog"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/fflag"
"github.com/spiffe/spire/pkg/common/log"
"github.com/spiffe/spire/pkg/common/namedpipe"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestCommand_Run(t *testing.T) {
testTempDir := t.TempDir()
testDataDir := fmt.Sprintf("%s/data", testTempDir)
type fields struct {
logOptions []log.Option
env *commoncli.Env
allowUnknownConfig bool
}
type args struct {
args []string
}
type want struct {
code int
stderrContent string
dataDirCreated bool
}
tests := []struct {
name string
fields fields
args args
want want
}{
{
name: "don't create any dir when error loading nonexistent config",
args: args{
args: []string{},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
dataDirCreated: false,
stderrContent: "could not find config file",
},
},
{
name: "don't create any dir when error loading invalid config",
args: args{
args: []string{
"-config", "../../../../test/fixture/config/agent_run_windows.conf",
"-socketPath", "unix:///tmp/agent.sock",
},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
dataDirCreated: false,
stderrContent: "flag provided but not defined: -socketPath",
},
},
{
name: "create data dir and uses named pipe",
args: args{
args: []string{
"-config", "../../../../test/fixture/config/agent_run_windows.conf",
"-dataDir", testDataDir,
"-namedPipeName", "\\spire-agent\\public\\api",
},
},
fields: fields{
logOptions: []log.Option{},
env: &commoncli.Env{
Stderr: new(bytes.Buffer),
},
allowUnknownConfig: false,
},
want: want{
code: 1,
dataDirCreated: true,
},
},
}
for _, testCase := range tests {
t.Run(testCase.name, func(t *testing.T) {
_ = fflag.Unload()
os.RemoveAll(testTempDir)
cmd := &Command{
logOptions: testCase.fields.logOptions,
env: testCase.fields.env,
allowUnknownConfig: testCase.fields.allowUnknownConfig,
}
result := cmd.Run(testCase.args.args)
assert.Equal(t, testCase.want.code, result)
if testCase.want.stderrContent == "" {
assert.Empty(t, testCase.fields.env.Stderr.(*bytes.Buffer).String())
} else {
assert.Contains(t, testCase.fields.env.Stderr.(*bytes.Buffer).String(), testCase.want.stderrContent)
}
if testCase.want.dataDirCreated {
assert.DirExistsf(t, testDataDir, "expected data directory to be created")
} else {
assert.NoDirExistsf(t, testDataDir, "expected data directory to not be created")
}
})
}
}
func TestParseFlagsGood(t *testing.T) {
c, err := parseFlags("run", []string{
"-dataDir=.",
@ -52,38 +167,40 @@ func TestParseConfigGood(t *testing.T) {
assert.Equal(t, true, c.Agent.AllowUnauthenticatedVerifiers)
assert.Equal(t, []string{"c1", "c2", "c3"}, c.Agent.AllowedForeignJWTClaims)
// Parse/reprint cycle trims outer whitespace
const data = `join_token = "PLUGIN-AGENT-NOT-A-SECRET"`
// Check for plugins configurations
pluginConfigs := *c.Plugins
expectedData := "join_token = \"PLUGIN-AGENT-NOT-A-SECRET\""
var data bytes.Buffer
err = printer.DefaultConfig.Fprint(&data, pluginConfigs["plugin_type_agent"]["plugin_name_agent"].PluginData)
assert.NoError(t, err)
expectedPluginConfigs := catalog.PluginConfigs{
{
Type: "plugin_type_agent",
Name: "plugin_name_agent",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FixedData(data),
Disabled: false,
},
{
Type: "plugin_type_agent",
Name: "plugin_disabled",
Path: ".\\pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FixedData(data),
Disabled: true,
},
{
Type: "plugin_type_agent",
Name: "plugin_enabled",
Path: "c:/temp/pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FileData("plugin.conf"),
Disabled: false,
},
}
assert.Len(t, pluginConfigs, 1)
assert.Len(t, pluginConfigs["plugin_type_agent"], 3)
pluginConfig := pluginConfigs["plugin_type_agent"]["plugin_name_agent"]
assert.Nil(t, pluginConfig.Enabled)
assert.Equal(t, pluginConfig.IsEnabled(), true)
assert.Equal(t, pluginConfig.PluginChecksum, "pluginAgentChecksum")
assert.Equal(t, pluginConfig.PluginCmd, "./pluginAgentCmd")
assert.Equal(t, expectedData, data.String())
// Disabled plugin
pluginConfig = pluginConfigs["plugin_type_agent"]["plugin_disabled"]
assert.NotNil(t, pluginConfig.Enabled)
assert.Equal(t, pluginConfig.IsEnabled(), false)
assert.Equal(t, pluginConfig.PluginChecksum, "pluginAgentChecksum")
assert.Equal(t, pluginConfig.PluginCmd, ".\\pluginAgentCmd")
assert.Equal(t, expectedData, data.String())
// Enabled plugin
pluginConfig = pluginConfigs["plugin_type_agent"]["plugin_enabled"]
assert.NotNil(t, pluginConfig.Enabled)
assert.Equal(t, pluginConfig.IsEnabled(), true)
assert.Equal(t, pluginConfig.PluginChecksum, "pluginAgentChecksum")
assert.Equal(t, pluginConfig.PluginCmd, "c:/temp/pluginAgentCmd")
assert.Equal(t, expectedData, data.String())
pluginConfigs, err := catalog.PluginConfigsFromHCLNode(c.Plugins)
require.NoError(t, err)
require.Equal(t, expectedPluginConfigs, pluginConfigs)
}
func mergeInputCasesOS() []mergeInputCase {
@ -107,7 +224,7 @@ func mergeInputCasesOS() []mergeInputCase {
},
},
{
msg: "named_pipe_name should be configuable by CLI flag",
msg: "named_pipe_name should be configurable by CLI flag",
fileInput: func(c *Config) {},
cliInput: func(c *agentConfig) {
c.Experimental.NamedPipeName = "foo"
@ -141,7 +258,7 @@ func mergeInputCasesOS() []mergeInputCase {
}
}
func newAgentConfigCasesOS() []newAgentConfigCase {
func newAgentConfigCasesOS(*testing.T) []newAgentConfigCase {
return []newAgentConfigCase{
{
msg: "named_pipe_name should be correctly configured",

View File

@ -4,8 +4,9 @@ import (
"os"
"github.com/spiffe/spire/cmd/spire-agent/cli"
"github.com/spiffe/spire/pkg/common/entrypoint"
)
func main() {
os.Exit(new(cli.CLI).Run(os.Args[1:]))
os.Exit(entrypoint.NewEntryPoint(new(cli.CLI).Run).Main())
}

View File

@ -1,15 +1,76 @@
//go:build !windows
// +build !windows
package agent_test
var (
purgeUsage = `Usage of agent purge:
-dryRun
Indicates that the command will not perform any action, but will print the agents that would be purged.
-expiredFor duration
Amount of time that has passed since the agent's SVID has expired. It is used to determine which agents to purge. (default 720h0m0s)
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
listUsage = `Usage of agent list:
-attestationType string
Filter by attestation type, like join_token or x509pop.
-banned value
Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.
-canReattest value
Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.
-expiresBefore string
Filter by expiration time (format: "2006-01-02 15:04:05 -0700 -07")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-output value
Desired output format (pretty, json); default: pretty.
-selector value
A colon-delimited type:value selector. Can be used more than once
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
banUsage = `Usage of agent ban:
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
-spiffeID string
The SPIFFE ID of the agent to ban (agent identity)
`
evictUsage = `Usage of agent evict:
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
-spiffeID string
The SPIFFE ID of the agent to evict (agent identity)
`
countUsage = `Usage of agent count:
-attestationType string
Filter by attestation type, like join_token or x509pop.
-banned value
Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.
-canReattest value
Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.
-expiresBefore string
Filter by expiration time (format: "2006-01-02 15:04:05 -0700 -07")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-output value
Desired output format (pretty, json); default: pretty.
-selector value
A colon-delimited type:value selector. Can be used more than once
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
showUsage = `Usage of agent show:
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
-spiffeID string
The SPIFFE ID of the agent to show (agent identity)
`
)

View File

@ -3,26 +3,29 @@ package agent_test
import (
"bytes"
"context"
"fmt"
"testing"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"time"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/spiffeid"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/cli/agent"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/spiretest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/wrapperspb"
)
var (
testAgents = []*types.Agent{
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent1"}},
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent1"}, CanReattest: true},
}
testAgentsWithBanned = []*types.Agent{
{
@ -40,16 +43,15 @@ var (
},
},
}
availableFormats = []string{"pretty", "json"}
)
type agentTest struct {
stdin *bytes.Buffer
stdout *bytes.Buffer
stderr *bytes.Buffer
args []string
server *fakeAgentServer
client cli.Command
}
@ -64,26 +66,25 @@ func TestBanHelp(t *testing.T) {
test := setupTest(t, agent.NewBanCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of agent ban:`+common.AddrUsage+
` -spiffeID string
The SPIFFE ID of the agent to ban (agent identity)
`, test.stderr.String())
require.Equal(t, banUsage, test.stderr.String())
}
func TestBan(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdout string
expectStderr string
serverErr error
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
}{
{
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectReturnCode: 0,
expectStdout: "Agent banned successfully\n",
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectReturnCode: 0,
expectStdoutPretty: "Agent banned successfully\n",
expectStdoutJSON: "{}",
},
{
name: "no spiffe id",
@ -91,10 +92,13 @@ func TestBan(t *testing.T) {
expectStderr: "Error: a SPIFFE ID is required\n",
},
{
name: "wrong UDS path",
args: []string{common.AddrArg, common.AddrValue},
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-spiffeID", "spiffe://example.org/spire/agent/agent1",
},
expectReturnCode: 1,
expectStderr: common.AddrError,
expectStderr: "Error: " + clitest.AddrError,
},
{
name: "server error",
@ -104,16 +108,20 @@ func TestBan(t *testing.T) {
expectStderr: "Error: rpc error: code = Internal desc = internal server error\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, agent.NewBanCommandWithEnv)
test.server.err = tt.serverErr
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewBanCommandWithEnv)
test.server.err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.client.Run(append(test.args, tt.args...))
require.Equal(t, tt.expectStdout, test.stdout.String())
require.Equal(t, tt.expectStderr, test.stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}
@ -121,26 +129,25 @@ func TestEvictHelp(t *testing.T) {
test := setupTest(t, agent.NewEvictCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of agent evict:`+common.AddrUsage+
` -spiffeID string
The SPIFFE ID of the agent to evict (agent identity)
`, test.stderr.String())
require.Equal(t, evictUsage, test.stderr.String())
}
func TestEvict(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectedReturnCode int
expectedStdout string
expectedStderr string
serverErr error
name string
args []string
expectedReturnCode int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
serverErr error
}{
{
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectedReturnCode: 0,
expectedStdout: "Agent evicted successfully\n",
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectedReturnCode: 0,
expectedStdoutPretty: "Agent evicted successfully\n",
expectedStdoutJSON: "{}",
},
{
name: "no spiffe id",
@ -148,10 +155,13 @@ func TestEvict(t *testing.T) {
expectedStderr: "Error: a SPIFFE ID is required\n",
},
{
name: "wrong UDS path",
args: []string{common.AddrArg, common.AddrValue},
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-spiffeID", "spiffe://example.org/spire/agent/agent1",
},
expectedReturnCode: 1,
expectedStderr: common.AddrError,
expectedStderr: "Error: " + clitest.AddrError,
},
{
name: "server error",
@ -161,16 +171,20 @@ func TestEvict(t *testing.T) {
expectedStderr: "Error: rpc error: code = Internal desc = internal server error\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, agent.NewEvictCommandWithEnv)
test.server.err = tt.serverErr
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewEvictCommandWithEnv)
test.server.deleteErr = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.client.Run(append(test.args, tt.args...))
require.Equal(t, tt.expectedStdout, test.stdout.String())
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
}
}
}
@ -178,29 +192,32 @@ func TestCountHelp(t *testing.T) {
test := setupTest(t, agent.NewCountCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of agent count:`+common.AddrUsage, test.stderr.String())
require.Equal(t, countUsage, test.stderr.String())
}
func TestCount(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectedReturnCode int
expectedStdout string
expectedStderr string
existentAgents []*types.Agent
serverErr error
name string
args []string
expectedReturnCode int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
existentAgents []*types.Agent
serverErr error
}{
{
name: "0 agents",
expectedReturnCode: 0,
expectedStdout: "0 attested agents",
name: "0 agents",
expectedReturnCode: 0,
expectedStdoutPretty: "0 attested agents",
expectedStdoutJSON: `{"count":0}`,
},
{
name: "count 1 agent",
expectedReturnCode: 0,
expectedStdout: "1 attested agent",
existentAgents: testAgents,
name: "count 1 agent",
expectedReturnCode: 0,
expectedStdoutPretty: "1 attested agent",
expectedStdoutJSON: `{"count":1}`,
existentAgents: testAgents,
},
{
name: "server error",
@ -210,21 +227,32 @@ func TestCount(t *testing.T) {
},
{
name: "wrong UDS path",
args: []string{common.AddrArg, common.AddrValue},
args: []string{clitest.AddrArg, clitest.AddrValue},
expectedReturnCode: 1,
expectedStderr: common.AddrError,
expectedStderr: "Error: " + clitest.AddrError,
},
{
name: "Count by expiresBefore: month out of range",
args: []string{"-expiresBefore", "2001-13-05"},
expectedReturnCode: 1,
expectedStderr: "Error: date is not valid: parsing time \"2001-13-05\": month out of range\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, agent.NewCountCommandWithEnv)
test.server.agents = tt.existentAgents
test.server.err = tt.serverErr
returnCode := test.client.Run(append(test.args, tt.args...))
require.Contains(t, test.stdout.String(), tt.expectedStdout)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewCountCommandWithEnv)
test.server.agents = tt.existentAgents
test.server.err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
}
}
}
@ -237,20 +265,23 @@ func TestListHelp(t *testing.T) {
func TestList(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectedReturnCode int
expectedStdout string
expectedStderr string
expectReq *agentv1.ListAgentsRequest
existentAgents []*types.Agent
serverErr error
name string
args []string
expectedReturnCode int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
expectReq *agentv1.ListAgentsRequest
existentAgents []*types.Agent
expectedFormat string
serverErr error
}{
{
name: "1 agent",
expectedReturnCode: 0,
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
name: "1 agent",
expectedReturnCode: 0,
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
expectReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{},
PageSize: 1000,
@ -259,6 +290,7 @@ func TestList(t *testing.T) {
{
name: "no agents",
expectedReturnCode: 0,
expectedStdoutJSON: `{"agents":[],"next_page_token":""}`,
expectReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{},
PageSize: 1000,
@ -289,8 +321,9 @@ func TestList(t *testing.T) {
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by selector: any matcher",
@ -307,8 +340,9 @@ func TestList(t *testing.T) {
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by selector: exact matcher",
@ -325,8 +359,9 @@ func TestList(t *testing.T) {
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by selector: superset matcher",
@ -343,8 +378,9 @@ func TestList(t *testing.T) {
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by selector: subset matcher",
@ -361,8 +397,48 @@ func TestList(t *testing.T) {
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdout: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by expiresBefore",
args: []string{"-expiresBefore", "2000-01-01 15:04:05 -0700 -07"},
expectReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{
ByExpiresBefore: "2000-01-01 15:04:05 -0700 -07",
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "by banned",
args: []string{"-banned", "true"},
expectReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{
ByBanned: wrapperspb.Bool(true),
},
PageSize: 1000,
},
existentAgents: testAgentsWithBanned,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/banned",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/banned"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":true,"can_reattest":false}],"next_page_token":""}`,
},
{
name: "by canReattest",
args: []string{"-canReattest", "true"},
expectReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{
ByCanReattest: wrapperspb.Bool(true),
},
PageSize: 1000,
},
existentAgents: testAgents,
expectedStdoutPretty: "Found 1 attested agent:\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"agents":[{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}],"next_page_token":""}`,
},
{
name: "List by selectors: Invalid matcher",
@ -378,23 +454,255 @@ func TestList(t *testing.T) {
},
{
name: "wrong UDS path",
args: []string{common.AddrArg, common.AddrValue},
args: []string{clitest.AddrArg, clitest.AddrValue},
expectedReturnCode: 1,
expectedStderr: common.AddrError,
expectedStderr: "Error: " + clitest.AddrError,
},
{
name: "List by expiresBefore: month out of range",
args: []string{"-expiresBefore", "2001-13-05"},
expectedReturnCode: 1,
expectedStderr: "Error: date is not valid: parsing time \"2001-13-05\": month out of range\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, agent.NewListCommandWithEnv)
test.server.agents = tt.existentAgents
test.server.err = tt.serverErr
returnCode := test.client.Run(append(test.args, tt.args...))
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewListCommandWithEnv)
test.server.agents = tt.existentAgents
test.server.err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
spiretest.RequireProtoEqual(t, tt.expectReq, test.server.gotListAgentRequest)
require.Contains(t, test.stdout.String(), tt.expectedStdout)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
spiretest.RequireProtoEqual(t, tt.expectReq, test.server.gotListAgentRequest)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
}
}
}
func TestPurgeHelp(t *testing.T) {
test := setupTest(t, agent.NewPurgeCommandWithEnv)
test.client.Help()
require.Equal(t, purgeUsage, test.stderr.String())
}
func TestPurge(t *testing.T) {
now := time.Now()
td := spiffeid.RequireTrustDomainFromString("example.org")
expiredAgents := []*types.Agent{
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent1"}, CanReattest: true, X509SvidExpiresAt: now.Add(-time.Hour).Unix()},
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent2"}, CanReattest: true, X509SvidExpiresAt: now.Add(-24 * time.Hour).Unix()},
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent3"}, CanReattest: true, X509SvidExpiresAt: now.Add(-720 * time.Hour).Unix()},
}
activeAgents := []*types.Agent{
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent6"}, CanReattest: true, X509SvidExpiresAt: now.Add(time.Hour).Unix()},
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent7"}, CanReattest: true, X509SvidExpiresAt: now.Add(2 * time.Hour).Unix()},
{Id: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/agent8"}, CanReattest: true, X509SvidExpiresAt: now.Add(3 * time.Hour).Unix()},
}
for _, tt := range []struct {
name string
args []string
expectedReturnCode int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
expectListReq *agentv1.ListAgentsRequest
expectDeleteReqs []*agentv1.DeleteAgentRequest
existentAgents []*types.Agent
expectedFormat string
serverErr error
deleteErr error
}{
{
name: "error listing agents",
args: []string{},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
serverErr: status.Error(codes.Internal, "some error"),
expectedStderr: "Error: failed to list agents: rpc error: code = Internal desc = some error\n",
expectedReturnCode: 1,
},
{
name: "malformed expiredFor flag",
args: []string{"-expiredFor", "5d"},
existentAgents: append(activeAgents, expiredAgents...),
expectedStderr: `invalid value "5d" for flag -expiredFor: parse error`,
expectedReturnCode: 1,
},
{
name: "error deleting expired agents",
args: []string{"-expiredFor", "24h"},
existentAgents: append(activeAgents, expiredAgents...),
deleteErr: status.Error(codes.Internal, "some error when deleting agent"),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectDeleteReqs: []*agentv1.DeleteAgentRequest{
{Id: expiredAgents[1].Id},
{Id: expiredAgents[2].Id},
},
expectedStdoutPretty: `Found 2 expired agents
Agents not purged:
SPIFFE ID : spiffe://example.org/spire/agent/agent2
Error : rpc error: code = Internal desc = some error when deleting agent
SPIFFE ID : spiffe://example.org/spire/agent/agent3
Error : rpc error: code = Internal desc = some error when deleting agent
`,
expectedStdoutJSON: fmt.Sprintf(
`[{"expired_agents":[
{"agent_id":"%s","deleted":false,"error":"rpc error: code = Internal desc = some error when deleting agent"},
{"agent_id":"%s","deleted":false,"error":"rpc error: code = Internal desc = some error when deleting agent"}
]}]`,
spiffeid.RequireFromPath(td, expiredAgents[1].Id.Path).String(),
spiffeid.RequireFromPath(td, expiredAgents[2].Id.Path).String(),
),
},
{
name: "no args using default expiration for purging agents that expired for one month",
args: []string{},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectDeleteReqs: []*agentv1.DeleteAgentRequest{
{Id: expiredAgents[2].Id},
},
expectedStdoutPretty: `Found 1 expired agent
Agents purged:
SPIFFE ID : spiffe://example.org/spire/agent/agent3
`,
expectedStdoutJSON: fmt.Sprintf(
`[{"expired_agents":[{"agent_id":"%s","deleted":true}]}]`,
spiffeid.RequireFromPath(td, expiredAgents[2].Id.Path).String(),
),
},
{
name: "providing expiration time for purging agents that has expired for 1 hour",
args: []string{"-expiredFor", "1h"},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectDeleteReqs: []*agentv1.DeleteAgentRequest{
{Id: expiredAgents[0].Id},
{Id: expiredAgents[1].Id},
{Id: expiredAgents[2].Id},
},
expectedStdoutPretty: `Found 3 expired agents
Agents purged:
SPIFFE ID : spiffe://example.org/spire/agent/agent1
SPIFFE ID : spiffe://example.org/spire/agent/agent2
SPIFFE ID : spiffe://example.org/spire/agent/agent3
`,
expectedStdoutJSON: fmt.Sprintf(
`[{"expired_agents":[{"agent_id":"%s","deleted":true},{"agent_id":"%s","deleted":true},{"agent_id":"%s","deleted":true}]}]`,
spiffeid.RequireFromPath(td, expiredAgents[0].Id.Path).String(),
spiffeid.RequireFromPath(td, expiredAgents[1].Id.Path).String(),
spiffeid.RequireFromPath(td, expiredAgents[2].Id.Path).String(),
),
},
{
name: "providing expiration time for purging agents that has expired for 2 hours",
args: []string{"-expiredFor", "2h30m30s"},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectDeleteReqs: []*agentv1.DeleteAgentRequest{
{Id: expiredAgents[1].Id},
{Id: expiredAgents[2].Id},
},
expectedStdoutPretty: `Found 2 expired agents
Agents purged:
SPIFFE ID : spiffe://example.org/spire/agent/agent2
SPIFFE ID : spiffe://example.org/spire/agent/agent3
`,
expectedStdoutJSON: fmt.Sprintf(
`[{"expired_agents":[{"agent_id":"%s","deleted":true},{"agent_id":"%s","deleted":true}]}]`,
spiffeid.RequireFromPath(td, expiredAgents[1].Id.Path).String(),
spiffeid.RequireFromPath(td, expiredAgents[2].Id.Path).String(),
),
},
{
name: "providing expiration time for purging agents that has expired for 2 months",
args: []string{"-expiredFor", "1440h"},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectedStdoutPretty: `No agents to purge.`,
expectedStdoutJSON: `[{"expired_agents":[]}]`,
},
{
name: "using dry run",
args: []string{"-dryRun", "-expiredFor", "24h"},
existentAgents: append(activeAgents, expiredAgents...),
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectedStdoutPretty: `Found 2 expired agents
Agents that can be purged:
SPIFFE ID : spiffe://example.org/spire/agent/agent2
SPIFFE ID : spiffe://example.org/spire/agent/agent3
`,
expectedStdoutJSON: fmt.Sprintf(
`[{"expired_agents":[{"agent_id":"%s","deleted":false},{"agent_id":"%s","deleted":false}]}]`,
spiffeid.RequireFromPath(td, expiredAgents[1].Id.Path).String(),
spiffeid.RequireFromPath(td, expiredAgents[2].Id.Path).String(),
),
},
{
name: "no expired agent found",
args: []string{},
existentAgents: activeAgents,
expectListReq: &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
},
expectedStdoutPretty: `No agents to purge.`,
expectedStdoutJSON: `[{"expired_agents":[]}]`,
},
} {
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewPurgeCommandWithEnv)
test.server.agents = tt.existentAgents
test.server.err = tt.serverErr
test.server.deleteErr = tt.deleteErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
spiretest.RequireProtoEqual(t, tt.expectListReq, test.server.gotListAgentRequest)
spiretest.RequireProtoListEqual(t, tt.expectDeleteReqs, test.server.gotDeleteAgentRequests)
require.Contains(t, test.stderr.String(), tt.expectedStderr)
require.Equal(t, tt.expectedReturnCode, returnCode)
})
}
}
}
@ -402,28 +710,27 @@ func TestShowHelp(t *testing.T) {
test := setupTest(t, agent.NewShowCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of agent show:`+common.AddrUsage+
` -spiffeID string
The SPIFFE ID of the agent to show (agent identity)
`, test.stderr.String())
require.Equal(t, showUsage, test.stderr.String())
}
func TestShow(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectedReturnCode int
expectedStdout string
expectedStderr string
existentAgents []*types.Agent
serverErr error
name string
args []string
expectedReturnCode int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
existentAgents []*types.Agent
serverErr error
}{
{
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectedReturnCode: 0,
existentAgents: testAgents,
expectedStdout: "Found an attested agent given its SPIFFE ID\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
name: "success",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent1"},
expectedReturnCode: 0,
existentAgents: testAgents,
expectedStdoutPretty: "Found an attested agent given its SPIFFE ID\n\nSPIFFE ID : spiffe://example.org/spire/agent/agent1",
expectedStdoutJSON: `{"id":{"trust_domain":"example.org","path":"/spire/agent/agent1"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":false,"can_reattest":true}`,
},
{
name: "no spiffe id",
@ -439,41 +746,50 @@ func TestShow(t *testing.T) {
expectedStderr: "Error: rpc error: code = Internal desc = internal server error\n",
},
{
name: "wrong UDS path",
args: []string{common.AddrArg, common.AddrValue},
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-spiffeID", "spiffe://example.org/spire/agent/agent1",
},
expectedReturnCode: 1,
expectedStderr: common.AddrError,
expectedStderr: "Error: " + clitest.AddrError,
},
{
name: "show selectors",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent2"},
existentAgents: testAgentsWithSelectors,
expectedReturnCode: 0,
expectedStdout: "Selectors : k8s_psat:agent_ns:spire\nSelectors : k8s_psat:agent_sa:spire-agent\nSelectors : k8s_psat:cluster:demo-cluster",
name: "show selectors",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/agent2"},
existentAgents: testAgentsWithSelectors,
expectedReturnCode: 0,
expectedStdoutPretty: "Selectors : k8s_psat:agent_ns:spire\nSelectors : k8s_psat:agent_sa:spire-agent\nSelectors : k8s_psat:cluster:demo-cluster",
expectedStdoutJSON: `{"id":{"trust_domain":"example.org","path":"/spire/agent/agent2"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[{"type":"k8s_psat","value":"agent_ns:spire"},{"type":"k8s_psat","value":"agent_sa:spire-agent"},{"type":"k8s_psat","value":"cluster:demo-cluster"}],"banned":false,"can_reattest":false}`,
},
{
name: "show banned",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/banned"},
existentAgents: testAgentsWithBanned,
expectedReturnCode: 0,
expectedStdout: "Banned : true",
name: "show banned",
args: []string{"-spiffeID", "spiffe://example.org/spire/agent/banned"},
existentAgents: testAgentsWithBanned,
expectedReturnCode: 0,
expectedStdoutPretty: "Banned : true",
expectedStdoutJSON: `{"id":{"trust_domain":"example.org","path":"/spire/agent/banned"},"attestation_type":"","x509svid_serial_number":"","x509svid_expires_at":"0","selectors":[],"banned":true,"can_reattest":false}`,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, agent.NewShowCommandWithEnv)
test.server.err = tt.serverErr
test.server.agents = tt.existentAgents
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, agent.NewShowCommandWithEnv)
test.server.err = tt.serverErr
test.server.agents = tt.existentAgents
args := tt.args
args = append(args, "-output", format)
returnCode := test.client.Run(append(test.args, tt.args...))
require.Contains(t, test.stdout.String(), tt.expectedStdout)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
returnCode := test.client.Run(append(test.args, args...))
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, tt.expectedReturnCode, returnCode)
})
}
}
}
func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *agentTest {
func setupTest(t *testing.T, newClient func(*commoncli.Env) cli.Command) *agentTest {
server := &fakeAgentServer{}
addr := spiretest.StartGRPCServer(t, func(s *grpc.Server) {
@ -484,7 +800,7 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *agent
stdout := new(bytes.Buffer)
stderr := new(bytes.Buffer)
client := newClient(&common_cli.Env{
client := newClient(&commoncli.Env{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
@ -494,7 +810,7 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *agent
stdin: stdin,
stdout: stdout,
stderr: stderr,
args: []string{common.AddrArg, common.GetAddr(addr)},
args: []string{clitest.AddrArg, clitest.GetAddr(addr)},
server: server,
client: client,
}
@ -509,36 +825,52 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *agent
type fakeAgentServer struct {
agentv1.UnimplementedAgentServer
agents []*types.Agent
gotListAgentRequest *agentv1.ListAgentsRequest
err error
agents []*types.Agent
gotListAgentRequest *agentv1.ListAgentsRequest
gotDeleteAgentRequests []*agentv1.DeleteAgentRequest
deleteErr error
err error
}
func (s *fakeAgentServer) BanAgent(ctx context.Context, req *agentv1.BanAgentRequest) (*emptypb.Empty, error) {
func (s *fakeAgentServer) BanAgent(context.Context, *agentv1.BanAgentRequest) (*emptypb.Empty, error) {
return &emptypb.Empty{}, s.err
}
func (s *fakeAgentServer) DeleteAgent(ctx context.Context, req *agentv1.DeleteAgentRequest) (*emptypb.Empty, error) {
return &emptypb.Empty{}, s.err
func (s *fakeAgentServer) DeleteAgent(_ context.Context, req *agentv1.DeleteAgentRequest) (*emptypb.Empty, error) {
s.gotDeleteAgentRequests = append(s.gotDeleteAgentRequests, req)
return &emptypb.Empty{}, s.deleteErr
}
func (s *fakeAgentServer) CountAgents(ctx context.Context, req *agentv1.CountAgentsRequest) (*agentv1.CountAgentsResponse, error) {
func (s *fakeAgentServer) CountAgents(context.Context, *agentv1.CountAgentsRequest) (*agentv1.CountAgentsResponse, error) {
return &agentv1.CountAgentsResponse{
Count: int32(len(s.agents)),
}, s.err
}
func (s *fakeAgentServer) ListAgents(ctx context.Context, req *agentv1.ListAgentsRequest) (*agentv1.ListAgentsResponse, error) {
func (s *fakeAgentServer) ListAgents(_ context.Context, req *agentv1.ListAgentsRequest) (*agentv1.ListAgentsResponse, error) {
s.gotListAgentRequest = req
return &agentv1.ListAgentsResponse{
Agents: s.agents,
}, s.err
}
func (s *fakeAgentServer) GetAgent(ctx context.Context, req *agentv1.GetAgentRequest) (*types.Agent, error) {
func (s *fakeAgentServer) GetAgent(context.Context, *agentv1.GetAgentRequest) (*types.Agent, error) {
if len(s.agents) > 0 {
return s.agents[0], s.err
}
return nil, s.err
}
func requireOutputBasedOnFormat(t *testing.T, format, stdoutString string, expectedStdoutPretty, expectedStdoutJSON string) {
switch format {
case "pretty":
require.Contains(t, stdoutString, expectedStdoutPretty)
case "json":
if expectedStdoutJSON != "" {
require.JSONEq(t, expectedStdoutJSON, stdoutString)
} else {
require.Empty(t, stdoutString)
}
}
}

View File

@ -1,15 +1,76 @@
//go:build windows
// +build windows
package agent_test
var (
purgeUsage = `Usage of agent purge:
-dryRun
Indicates that the command will not perform any action, but will print the agents that would be purged.
-expiredFor duration
Amount of time that has passed since the agent's SVID has expired. It is used to determine which agents to purge. (default 720h0m0s)
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
listUsage = `Usage of agent list:
-attestationType string
Filter by attestation type, like join_token or x509pop.
-banned value
Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.
-canReattest value
Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.
-expiresBefore string
Filter by expiration time (format: "2006-01-02 15:04:05 -0700 -07")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-selector value
A colon-delimited type:value selector. Can be used more than once
`
banUsage = `Usage of agent ban:
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-spiffeID string
The SPIFFE ID of the agent to ban (agent identity)
`
evictUsage = `Usage of agent evict:
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-spiffeID string
The SPIFFE ID of the agent to evict (agent identity)
`
countUsage = `Usage of agent count:
-attestationType string
Filter by attestation type, like join_token or x509pop.
-banned value
Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.
-canReattest value
Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.
-expiresBefore string
Filter by expiration time (format: "2006-01-02 15:04:05 -0700 -07")
-matchSelectorsOn string
The match mode used when filtering by selectors. Options: exact, any, superset and subset (default "superset")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-selector value
A colon-delimited type:value selector. Can be used more than once
`
showUsage = `Usage of agent show:
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-spiffeID string
The SPIFFE ID of the agent to show (agent identity)
`
)

View File

@ -9,24 +9,27 @@ import (
"github.com/spiffe/go-spiffe/v2/spiffeid"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/server/api"
)
type banCommand struct {
env *commoncli.Env
// SPIFFE ID of agent being banned
spiffeID string
printer cliprinter.Printer
}
// NewBanCommand creates a new "ban" subcommand for "agent" command.
func NewBanCommand() cli.Command {
return NewBanCommandWithEnv(common_cli.DefaultEnv)
return NewBanCommandWithEnv(commoncli.DefaultEnv)
}
// NewBanCommandWithEnv creates a new "ban" subcommand for "agent" command
// using the environment specified
func NewBanCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(banCommand))
func NewBanCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &banCommand{env: env})
}
func (*banCommand) Name() string {
@ -38,7 +41,7 @@ func (*banCommand) Synopsis() string {
}
// Run ban an agent given its SPIFFE ID
func (c *banCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *banCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if c.spiffeID == "" {
return errors.New("a SPIFFE ID is required")
}
@ -49,15 +52,22 @@ func (c *banCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
}
agentClient := serverClient.NewAgentClient()
if _, err := agentClient.BanAgent(ctx, &agentv1.BanAgentRequest{
banResponse, err := agentClient.BanAgent(ctx, &agentv1.BanAgentRequest{
Id: api.ProtoFromID(id),
}); err != nil {
})
if err != nil {
return err
}
return env.Println("Agent banned successfully")
return c.printer.PrintProto(banResponse)
}
func (c *banCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID of the agent to ban (agent identity)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintBanResult)
}
func prettyPrintBanResult(env *commoncli.Env, _ ...any) error {
env.Println("Agent banned successfully")
return nil
}

View File

@ -1,54 +1,147 @@
package agent
import (
"context"
"errors"
"flag"
"fmt"
"time"
"github.com/mitchellh/cli"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"golang.org/x/net/context"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"google.golang.org/protobuf/types/known/wrapperspb"
)
type countCommand struct{}
type countCommand struct {
// Type and value are delimited by a colon (:)
// ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo"
selectors commoncli.StringsFlag
// Match used when filtering by selectors
matchSelectorsOn string
// Filters agents to those that are banned.
banned commoncli.BoolFlag
// Filters agents by those that expire before this value.
expiresBefore string
// Filters agents to those matching the attestation type.
attestationType string
// Filters agents that can re-attest.
canReattest commoncli.BoolFlag
env *commoncli.Env
printer cliprinter.Printer
}
// NewCountCommand creates a new "count" subcommand for "agent" command.
func NewCountCommand() cli.Command {
return NewCountCommandWithEnv(common_cli.DefaultEnv)
return NewCountCommandWithEnv(commoncli.DefaultEnv)
}
// NewCountCommandWithEnv creates a new "count" subcommand for "agent" command
// using the environment specified.
func NewCountCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(countCommand))
func NewCountCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &countCommand{env: env})
}
func (*countCommand) Name() string {
return "agent count"
}
func (countCommand) Synopsis() string {
func (*countCommand) Synopsis() string {
return "Count attested agents"
}
// Run counts attested agents
func (c *countCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *countCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
filter := &agentv1.CountAgentsRequest_Filter{}
if len(c.selectors) > 0 {
matchBehavior, err := parseToSelectorMatch(c.matchSelectorsOn)
if err != nil {
return err
}
selectors := make([]*types.Selector, len(c.selectors))
for i, sel := range c.selectors {
selector, err := util.ParseSelector(sel)
if err != nil {
return fmt.Errorf("error parsing selector %q: %w", sel, err)
}
selectors[i] = selector
}
filter.BySelectorMatch = &types.SelectorMatch{
Selectors: selectors,
Match: matchBehavior,
}
}
if c.expiresBefore != "" {
// Parse the time string into a time.Time object
_, err := time.Parse("2006-01-02 15:04:05 -0700 -07", c.expiresBefore)
if err != nil {
return fmt.Errorf("date is not valid: %w", err)
}
filter.ByExpiresBefore = c.expiresBefore
}
if c.attestationType != "" {
filter.ByAttestationType = c.attestationType
}
// 0: all, 1: can't reattest, 2: can reattest
if c.canReattest == 1 {
filter.ByCanReattest = wrapperspb.Bool(false)
}
if c.canReattest == 2 {
filter.ByCanReattest = wrapperspb.Bool(true)
}
// 0: all, 1: no-banned, 2: banned
if c.banned == 1 {
filter.ByBanned = wrapperspb.Bool(false)
}
if c.banned == 2 {
filter.ByBanned = wrapperspb.Bool(true)
}
agentClient := serverClient.NewAgentClient()
countResponse, err := agentClient.CountAgents(ctx, &agentv1.CountAgentsRequest{})
countResponse, err := agentClient.CountAgents(ctx, &agentv1.CountAgentsRequest{
Filter: filter,
})
if err != nil {
return err
}
count := int(countResponse.Count)
msg := fmt.Sprintf("%d attested ", count)
msg = util.Pluralizer(msg, "agent", "agents", count)
_ = env.Println(msg)
return nil
return c.printer.PrintProto(countResponse)
}
func (c *countCommand) AppendFlags(fs *flag.FlagSet) {
fs.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
fs.StringVar(&c.attestationType, "attestationType", "", "Filter by attestation type, like join_token or x509pop.")
fs.Var(&c.canReattest, "canReattest", "Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.")
fs.Var(&c.banned, "banned", "Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.")
fs.StringVar(&c.expiresBefore, "expiresBefore", "", "Filter by expiration time (format: \"2006-01-02 15:04:05 -0700 -07\")")
fs.StringVar(&c.matchSelectorsOn, "matchSelectorsOn", "superset", "The match mode used when filtering by selectors. Options: exact, any, superset and subset")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintCount)
}
func prettyPrintCount(env *commoncli.Env, results ...any) error {
countResp, ok := results[0].(*agentv1.CountAgentsResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
count := int(countResp.Count)
msg := fmt.Sprintf("%d attested ", count)
msg = util.Pluralizer(msg, "agent", "agents", count)
env.Println(msg)
return nil
}

View File

@ -1,46 +1,47 @@
package agent
import (
"context"
"errors"
"flag"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/spiffeid"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/server/api"
"golang.org/x/net/context"
)
type evictCommand struct {
env *commoncli.Env
// SPIFFE ID of the agent being evicted
spiffeID string
printer cliprinter.Printer
}
// NewEvictCommand creates a new "evict" subcommand for "agent" command.
func NewEvictCommand() cli.Command {
return NewEvictCommandWithEnv(common_cli.DefaultEnv)
return NewEvictCommandWithEnv(commoncli.DefaultEnv)
}
// NewEvictCommandWithEnv creates a new "evict" subcommand for "agent" command
// using the environment specified
func NewEvictCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(evictCommand))
func NewEvictCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &evictCommand{env: env})
}
func (*evictCommand) Name() string {
return "agent evict"
}
func (evictCommand) Synopsis() string {
func (*evictCommand) Synopsis() string {
return "Evicts an attested agent given its SPIFFE ID"
}
// Run evicts an agent given its SPIFFE ID
func (c *evictCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *evictCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if c.spiffeID == "" {
return errors.New("a SPIFFE ID is required")
}
@ -51,14 +52,20 @@ func (c *evictCommand) Run(ctx context.Context, env *common_cli.Env, serverClien
}
agentClient := serverClient.NewAgentClient()
_, err = agentClient.DeleteAgent(ctx, &agentv1.DeleteAgentRequest{Id: api.ProtoFromID(id)})
delAgentResponse, err := agentClient.DeleteAgent(ctx, &agentv1.DeleteAgentRequest{Id: api.ProtoFromID(id)})
if err != nil {
return err
}
return env.Println("Agent evicted successfully")
return c.printer.PrintProto(delAgentResponse)
}
func (c *evictCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID of the agent to evict (agent identity)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintEvictResult)
}
func prettyPrintEvictResult(env *commoncli.Env, _ ...any) error {
env.Println("Agent evicted successfully")
return nil
}

View File

@ -1,52 +1,68 @@
package agent
import (
"context"
"errors"
"flag"
"fmt"
"time"
"github.com/mitchellh/cli"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/idutil"
"golang.org/x/net/context"
"google.golang.org/protobuf/types/known/wrapperspb"
)
type listCommand struct {
// Type and value are delimited by a colon (:)
// ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo"
selectors common_cli.StringsFlag
selectors commoncli.StringsFlag
// Match used when filtering agents by selectors
// Match used when filtering by selectors
matchSelectorsOn string
// Filters agents to those that are banned.
banned commoncli.BoolFlag
// Filters agents by those that expire before this value.
expiresBefore string
// Filters agents to those matching the attestation type.
attestationType string
// Filters agents that can re-attest.
canReattest commoncli.BoolFlag
env *commoncli.Env
printer cliprinter.Printer
}
// NewListCommand creates a new "list" subcommand for "agent" command.
func NewListCommand() cli.Command {
return NewListCommandWithEnv(common_cli.DefaultEnv)
return NewListCommandWithEnv(commoncli.DefaultEnv)
}
// NewListCommandWithEnv creates a new "list" subcommand for "agent" command
// using the environment specified
func NewListCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(listCommand))
func NewListCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &listCommand{env: env})
}
func (*listCommand) Name() string {
return "agent list"
}
func (listCommand) Synopsis() string {
func (*listCommand) Synopsis() string {
return "Lists attested agents and their SPIFFE IDs"
}
// Run lists attested agents
func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *listCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
filter := &agentv1.ListAgentsRequest_Filter{}
if len(c.selectors) > 0 {
matchBehavior, err := parseToSelectorMatch(c.matchSelectorsOn)
@ -68,10 +84,39 @@ func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
}
}
if c.expiresBefore != "" {
// Parse the time string into a time.Time object
_, err := time.Parse("2006-01-02 15:04:05 -0700 -07", c.expiresBefore)
if err != nil {
return fmt.Errorf("date is not valid: %w", err)
}
filter.ByExpiresBefore = c.expiresBefore
}
if c.attestationType != "" {
filter.ByAttestationType = c.attestationType
}
// 0: all, 1: can't reattest, 2: can reattest
if c.canReattest == 1 {
filter.ByCanReattest = wrapperspb.Bool(false)
}
if c.canReattest == 2 {
filter.ByCanReattest = wrapperspb.Bool(true)
}
// 0: all, 1: no-banned, 2: banned
if c.banned == 1 {
filter.ByBanned = wrapperspb.Bool(false)
}
if c.banned == 2 {
filter.ByBanned = wrapperspb.Bool(true)
}
agentClient := serverClient.NewAgentClient()
pageToken := ""
var agents []*types.Agent
response := new(agentv1.ListAgentsResponse)
for {
listResponse, err := agentClient.ListAgents(ctx, &agentv1.ListAgentsRequest{
PageSize: 1000, // comfortably under the (4 MB/theoretical maximum size of 1 agent in MB)
@ -81,29 +126,43 @@ func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
if err != nil {
return err
}
agents = append(agents, listResponse.Agents...)
response.Agents = append(response.Agents, listResponse.Agents...)
if pageToken = listResponse.NextPageToken; pageToken == "" {
break
}
}
return c.printer.PrintProto(response)
}
func (c *listCommand) AppendFlags(fs *flag.FlagSet) {
fs.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
fs.StringVar(&c.attestationType, "attestationType", "", "Filter by attestation type, like join_token or x509pop.")
fs.Var(&c.canReattest, "canReattest", "Filter based on string received, 'true': agents that can reattest, 'false': agents that can't reattest, other value will return all.")
fs.Var(&c.banned, "banned", "Filter based on string received, 'true': banned agents, 'false': not banned agents, other value will return all.")
fs.StringVar(&c.expiresBefore, "expiresBefore", "", "Filter by expiration time (format: \"2006-01-02 15:04:05 -0700 -07\")")
fs.StringVar(&c.matchSelectorsOn, "matchSelectorsOn", "superset", "The match mode used when filtering by selectors. Options: exact, any, superset and subset")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintAgents)
}
func prettyPrintAgents(env *commoncli.Env, results ...any) error {
listResp, ok := results[0].(*agentv1.ListAgentsResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
agents := listResp.Agents
if len(agents) == 0 {
return env.Printf("No attested agents found\n")
}
msg := fmt.Sprintf("Found %d attested ", len(agents))
msg = util.Pluralizer(msg, "agent", "agents", len(agents))
env.Printf(msg + ":\n\n")
env.Printf("%s:\n\n", msg)
return printAgents(env, agents...)
}
func (c *listCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.matchSelectorsOn, "matchSelectorsOn", "superset", "The match mode used when filtering by selectors. Options: exact, any, superset and subset")
fs.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
}
func printAgents(env *common_cli.Env, agents ...*types.Agent) error {
func printAgents(env *commoncli.Env, agents ...*types.Agent) error {
for _, agent := range agents {
id, err := idutil.IDFromProto(agent.Id)
if err != nil {
@ -129,6 +188,10 @@ func printAgents(env *common_cli.Env, agents ...*types.Agent) error {
return err
}
}
if err := env.Printf("Can re-attest : %t\n", agent.CanReattest); err != nil {
return err
}
if err := env.Println(); err != nil {
return err
}

View File

@ -0,0 +1,154 @@
package agent
import (
"context"
"flag"
"fmt"
"time"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/spiffeid"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/idutil"
"google.golang.org/protobuf/types/known/wrapperspb"
)
type purgeCommand struct {
env *commoncli.Env
expiredFor time.Duration
dryRun bool
printer cliprinter.Printer
}
func NewPurgeCommand() cli.Command {
return NewPurgeCommandWithEnv(commoncli.DefaultEnv)
}
func NewPurgeCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &purgeCommand{env: env})
}
func (*purgeCommand) Name() string {
return "agent purge"
}
func (*purgeCommand) Synopsis() string {
return "Purge expired agents that were attested using a non-TOFU security model based on a given time"
}
func (c *purgeCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) (err error) {
agentClient := serverClient.NewAgentClient()
resp, err := agentClient.ListAgents(ctx, &agentv1.ListAgentsRequest{
Filter: &agentv1.ListAgentsRequest_Filter{ByCanReattest: wrapperspb.Bool(true)},
OutputMask: &types.AgentMask{X509SvidExpiresAt: true},
})
if err != nil {
return fmt.Errorf("failed to list agents: %w", err)
}
agents := resp.GetAgents()
expiredAgents := &expiredAgents{Agents: []*expiredAgent{}}
for _, agent := range agents {
id, err := idutil.IDFromProto(agent.Id)
if err != nil {
return err
}
expirationTime := time.Unix(agent.X509SvidExpiresAt, 0)
if time.Since(expirationTime) > c.expiredFor {
result := &expiredAgent{AgentID: id}
if !c.dryRun {
if _, err := agentClient.DeleteAgent(ctx, &agentv1.DeleteAgentRequest{Id: agent.Id}); err != nil {
result.Error = err.Error()
} else {
result.Deleted = true
}
}
expiredAgents.Agents = append(expiredAgents.Agents, result)
}
}
return c.printer.PrintStruct(expiredAgents)
}
func (c *purgeCommand) AppendFlags(fs *flag.FlagSet) {
fs.DurationVar(&c.expiredFor, "expiredFor", 30*24*time.Hour, "Amount of time that has passed since the agent's SVID has expired. It is used to determine which agents to purge.")
fs.BoolVar(&c.dryRun, "dryRun", false, "Indicates that the command will not perform any action, but will print the agents that would be purged.")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, c.prettyPrintPurgeResult)
}
type expiredAgents struct {
Agents []*expiredAgent `json:"expired_agents"`
}
type expiredAgent struct {
AgentID spiffeid.ID `json:"agent_id"`
Deleted bool `json:"deleted"`
Error string `json:"error,omitempty"`
}
func (c *purgeCommand) prettyPrintPurgeResult(env *commoncli.Env, results ...any) error {
if expAgents, ok := results[0].([]any)[0].(*expiredAgents); ok {
if len(expAgents.Agents) == 0 {
env.Println("No agents to purge.")
return nil
}
msg := fmt.Sprintf("Found %d expired ", len(expAgents.Agents))
msg = util.Pluralizer(msg, "agent", "agents", len(expAgents.Agents))
env.Printf("%s\n\n", msg)
if c.dryRun {
env.Println("\nAgents that can be purged:")
for _, result := range expAgents.Agents {
env.Printf("SPIFFE ID : %s\n", result.AgentID.String())
}
return nil
}
var agentsNotPurged []*expiredAgent
var agentsPurged []*expiredAgent
for _, result := range expAgents.Agents {
if result.Deleted {
agentsPurged = append(agentsPurged, result)
} else {
agentsNotPurged = append(agentsNotPurged, result)
}
}
if len(agentsPurged) > 0 {
c.printAgentsPurged(agentsPurged)
}
if len(agentsNotPurged) > 0 {
c.printAgentsNotPurged(agentsNotPurged)
}
return nil
}
return cliprinter.ErrInternalCustomPrettyFunc
}
func (c *purgeCommand) printAgentsNotPurged(agentsNotPurged []*expiredAgent) {
c.env.Println("Agents not purged:")
for _, result := range agentsNotPurged {
c.env.Printf("SPIFFE ID : %s\n", result.AgentID.String())
c.env.Printf("Error : %s\n", result.Error)
}
}
func (c *purgeCommand) printAgentsPurged(agentsPurged []*expiredAgent) {
c.env.Println("Agents purged:")
for _, result := range agentsPurged {
c.env.Printf("SPIFFE ID : %s\n", result.AgentID.String())
}
}

View File

@ -1,46 +1,48 @@
package agent
import (
"context"
"errors"
"flag"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/spiffeid"
agentv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/agent/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/server/api"
"golang.org/x/net/context"
)
type showCommand struct {
// SPIFFE ID of the agent being showed
env *commoncli.Env
// SPIFFE ID of the agent being shown
spiffeID string
printer cliprinter.Printer
}
// NewShowCommand creates a new "show" subcommand for "agent" command.
func NewShowCommand() cli.Command {
return NewShowCommandWithEnv(common_cli.DefaultEnv)
return NewShowCommandWithEnv(commoncli.DefaultEnv)
}
// NewShowCommandWithEnv creates a new "show" subcommand for "agent" command
// using the environment specified
func NewShowCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(showCommand))
func NewShowCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &showCommand{env: env})
}
func (*showCommand) Name() string {
return "agent show"
}
func (showCommand) Synopsis() string {
func (*showCommand) Synopsis() string {
return "Shows the details of an attested agent given its SPIFFE ID"
}
// Run shows an agent given its SPIFFE ID
func (c *showCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *showCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if c.spiffeID == "" {
return errors.New("a SPIFFE ID is required")
}
@ -56,8 +58,21 @@ func (c *showCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
return err
}
env.Printf("Found an attested agent given its SPIFFE ID\n\n")
return c.printer.PrintProto(agent)
}
func (c *showCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID of the agent to show (agent identity)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintAgent)
}
func prettyPrintAgent(env *commoncli.Env, results ...any) error {
agent, ok := results[0].(*types.Agent)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Printf("Found an attested agent given its SPIFFE ID\n\n")
if err := printAgents(env, agent); err != nil {
return err
}
@ -67,7 +82,3 @@ func (c *showCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
}
return nil
}
func (c *showCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID of the agent to show (agent identity)")
}

View File

@ -0,0 +1,31 @@
package authoritycommon
import (
"time"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
commoncli "github.com/spiffe/spire/pkg/common/cli"
)
func PrettyPrintJWTAuthorityState(env *commoncli.Env, authorityState *localauthorityv1.AuthorityState) {
prettyPrintAuthorityState(env, authorityState, false)
}
func PrettyPrintX509AuthorityState(env *commoncli.Env, authorityState *localauthorityv1.AuthorityState) {
prettyPrintAuthorityState(env, authorityState, true)
}
func prettyPrintAuthorityState(env *commoncli.Env, authorityState *localauthorityv1.AuthorityState, includeUpstreamAuthority bool) {
env.Printf(" Authority ID: %s\n", authorityState.AuthorityId)
env.Printf(" Expires at: %s\n", time.Unix(authorityState.ExpiresAt, 0).UTC())
if !includeUpstreamAuthority {
return
}
if authorityState.UpstreamAuthoritySubjectKeyId != "" {
env.Printf(" Upstream authority Subject Key ID: %s\n", authorityState.UpstreamAuthoritySubjectKeyId)
return
}
env.Println(" Upstream authority ID: No upstream authority")
}

View File

@ -0,0 +1,174 @@
package authoritycommontest
import (
"bytes"
"context"
"testing"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/spiretest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
)
var AvailableFormats = []string{"pretty", "json"}
type localAuthorityTest struct {
Stdin *bytes.Buffer
Stdout *bytes.Buffer
Stderr *bytes.Buffer
Args []string
Server *fakeLocalAuthorityServer
Client cli.Command
}
func (s *localAuthorityTest) afterTest(t *testing.T) {
t.Logf("TEST:%s", t.Name())
t.Logf("STDOUT:\n%s", s.Stdout.String())
t.Logf("STDIN:\n%s", s.Stdin.String())
t.Logf("STDERR:\n%s", s.Stderr.String())
}
func SetupTest(t *testing.T, newClient func(*commoncli.Env) cli.Command) *localAuthorityTest {
server := &fakeLocalAuthorityServer{}
addr := spiretest.StartGRPCServer(t, func(s *grpc.Server) {
localauthorityv1.RegisterLocalAuthorityServer(s, server)
})
stdin := new(bytes.Buffer)
stdout := new(bytes.Buffer)
stderr := new(bytes.Buffer)
client := newClient(&commoncli.Env{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
})
test := &localAuthorityTest{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
Args: []string{clitest.AddrArg, clitest.GetAddr(addr)},
Server: server,
Client: client,
}
t.Cleanup(func() {
test.afterTest(t)
})
return test
}
type fakeLocalAuthorityServer struct {
localauthorityv1.UnsafeLocalAuthorityServer
ActiveJWT,
PreparedJWT,
OldJWT,
ActiveX509,
PreparedX509,
OldX509,
TaintedX509,
RevokedX509,
TaintedJWT,
RevokedJWT *localauthorityv1.AuthorityState
TaintedUpstreamAuthoritySubjectKeyId,
RevokedUpstreamAuthoritySubjectKeyId string
Err error
}
func (s *fakeLocalAuthorityServer) GetJWTAuthorityState(context.Context, *localauthorityv1.GetJWTAuthorityStateRequest) (*localauthorityv1.GetJWTAuthorityStateResponse, error) {
return &localauthorityv1.GetJWTAuthorityStateResponse{
Active: s.ActiveJWT,
Prepared: s.PreparedJWT,
Old: s.OldJWT,
}, s.Err
}
func (s *fakeLocalAuthorityServer) PrepareJWTAuthority(context.Context, *localauthorityv1.PrepareJWTAuthorityRequest) (*localauthorityv1.PrepareJWTAuthorityResponse, error) {
return &localauthorityv1.PrepareJWTAuthorityResponse{
PreparedAuthority: s.PreparedJWT,
}, s.Err
}
func (s *fakeLocalAuthorityServer) ActivateJWTAuthority(context.Context, *localauthorityv1.ActivateJWTAuthorityRequest) (*localauthorityv1.ActivateJWTAuthorityResponse, error) {
return &localauthorityv1.ActivateJWTAuthorityResponse{
ActivatedAuthority: s.ActiveJWT,
}, s.Err
}
func (s *fakeLocalAuthorityServer) TaintJWTAuthority(context.Context, *localauthorityv1.TaintJWTAuthorityRequest) (*localauthorityv1.TaintJWTAuthorityResponse, error) {
return &localauthorityv1.TaintJWTAuthorityResponse{
TaintedAuthority: s.TaintedJWT,
}, s.Err
}
func (s *fakeLocalAuthorityServer) RevokeJWTAuthority(context.Context, *localauthorityv1.RevokeJWTAuthorityRequest) (*localauthorityv1.RevokeJWTAuthorityResponse, error) {
return &localauthorityv1.RevokeJWTAuthorityResponse{
RevokedAuthority: s.RevokedJWT,
}, s.Err
}
func (s *fakeLocalAuthorityServer) GetX509AuthorityState(context.Context, *localauthorityv1.GetX509AuthorityStateRequest) (*localauthorityv1.GetX509AuthorityStateResponse, error) {
return &localauthorityv1.GetX509AuthorityStateResponse{
Active: s.ActiveX509,
Prepared: s.PreparedX509,
Old: s.OldX509,
}, s.Err
}
func (s *fakeLocalAuthorityServer) PrepareX509Authority(context.Context, *localauthorityv1.PrepareX509AuthorityRequest) (*localauthorityv1.PrepareX509AuthorityResponse, error) {
return &localauthorityv1.PrepareX509AuthorityResponse{
PreparedAuthority: s.PreparedX509,
}, s.Err
}
func (s *fakeLocalAuthorityServer) ActivateX509Authority(context.Context, *localauthorityv1.ActivateX509AuthorityRequest) (*localauthorityv1.ActivateX509AuthorityResponse, error) {
return &localauthorityv1.ActivateX509AuthorityResponse{
ActivatedAuthority: s.ActiveX509,
}, s.Err
}
func (s *fakeLocalAuthorityServer) TaintX509Authority(context.Context, *localauthorityv1.TaintX509AuthorityRequest) (*localauthorityv1.TaintX509AuthorityResponse, error) {
return &localauthorityv1.TaintX509AuthorityResponse{
TaintedAuthority: s.TaintedX509,
}, s.Err
}
func (s *fakeLocalAuthorityServer) TaintX509UpstreamAuthority(context.Context, *localauthorityv1.TaintX509UpstreamAuthorityRequest) (*localauthorityv1.TaintX509UpstreamAuthorityResponse, error) {
return &localauthorityv1.TaintX509UpstreamAuthorityResponse{
UpstreamAuthoritySubjectKeyId: s.TaintedUpstreamAuthoritySubjectKeyId,
}, s.Err
}
func (s *fakeLocalAuthorityServer) RevokeX509Authority(context.Context, *localauthorityv1.RevokeX509AuthorityRequest) (*localauthorityv1.RevokeX509AuthorityResponse, error) {
return &localauthorityv1.RevokeX509AuthorityResponse{
RevokedAuthority: s.RevokedX509,
}, s.Err
}
func (s *fakeLocalAuthorityServer) RevokeX509UpstreamAuthority(context.Context, *localauthorityv1.RevokeX509UpstreamAuthorityRequest) (*localauthorityv1.RevokeX509UpstreamAuthorityResponse, error) {
return &localauthorityv1.RevokeX509UpstreamAuthorityResponse{
UpstreamAuthoritySubjectKeyId: s.RevokedUpstreamAuthoritySubjectKeyId,
}, s.Err
}
func RequireOutputBasedOnFormat(t *testing.T, format, stdoutString string, expectedStdoutPretty, expectedStdoutJSON string) {
switch format {
case "pretty":
require.Contains(t, stdoutString, expectedStdoutPretty)
case "json":
if expectedStdoutJSON != "" {
require.JSONEq(t, expectedStdoutJSON, stdoutString)
} else {
require.Empty(t, stdoutString)
}
}
}

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package bundle
@ -9,9 +8,45 @@ var (
The format of the bundle data. Either "pem" or "spiffe". (default "pem")
-id string
SPIFFE ID of the trust domain
-output value
Desired output format (pretty, json); default: pretty.
-path string
Path to the bundle data
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
countUsage = `Usage of bundle count:
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
deleteUsage = `Usage of bundle delete:
-id string
SPIFFE ID of the trust domain
-mode string
Deletion mode: one of restrict, delete, or dissociate (default "restrict")
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
listUsage = `Usage of bundle list:
-format string
The format to list federated bundles (only pretty output format supports this flag). Either "pem" or "spiffe". (default "pem")
-id string
SPIFFE ID of the trust domain
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
showUsage = `Usage of bundle show:
-format string
The format to show the bundle (only pretty output format supports this flag). Either "pem" or "spiffe". (default "pem")
-output value
Desired output format (pretty, json); default: pretty.
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
)

View File

@ -10,7 +10,6 @@ import (
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
"github.com/spiffe/spire/cmd/spire-server/util"
"github.com/spiffe/spire/pkg/common/pemutil"
"github.com/spiffe/spire/test/spiretest"
@ -19,13 +18,13 @@ import (
"google.golang.org/grpc/status"
)
var availableFormats = []string{"pretty", "json"}
func TestShowHelp(t *testing.T) {
test := setupTest(t, newShowCommand)
test.client.Help()
require.Equal(t, `Usage of bundle show:
-format string
The format to show the bundle. Either "pem" or "spiffe". (default "pem")`+common.AddrUsage, test.stderr.String())
require.Equal(t, showUsage, test.stderr.String())
}
func TestShowSynopsis(t *testing.T) {
@ -34,26 +33,42 @@ func TestShowSynopsis(t *testing.T) {
}
func TestShow(t *testing.T) {
expectedShowResultJSON := `{
"trust_domain": "spiffe://example.test",
"x509_authorities": [
{
"asn1": "MIIBKjCB0aADAgECAgEBMAoGCCqGSM49BAMCMAAwIhgPMDAwMTAxMDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABHyvsCk5yi+yhSzNu5aquQwvm8a1Wh+qw1fiHAkhDni+wq+g3TQWxYlV51TCPH030yXsRxvujD4hUUaIQrXk4KKjODA2MA8GA1UdEwEB/wQFMAMBAf8wIwYDVR0RAQH/BBkwF4YVc3BpZmZlOi8vZG9tYWluMS50ZXN0MAoGCCqGSM49BAMCA0gAMEUCIA2dO09Xmakw2ekuHKWC4hBhCkpr5qY4bI8YUcXfxg/1AiEA67kMyH7bQnr7OVLUrL+b9ylAdZglS5kKnYigmwDh+/U=",
"tainted": false
}
],
"jwt_authorities": [],
"refresh_hint": "60",
"sequence_number": "42"
}`
for _, tt := range []struct {
name string
args []string
expectedOut string
serverErr error
expectedError string
name string
args []string
expectedStdoutPretty string
expectedStdoutJSON string
serverErr error
expectedError string
}{
{
name: "default",
expectedOut: cert1PEM,
name: "default",
expectedStdoutPretty: cert1PEM,
expectedStdoutJSON: expectedShowResultJSON,
},
{
name: "pem",
args: []string{"-format", util.FormatPEM},
expectedOut: cert1PEM,
name: "pem",
args: []string{"-format", util.FormatPEM},
expectedStdoutPretty: cert1PEM,
expectedStdoutJSON: expectedShowResultJSON,
},
{
name: "spiffe",
args: []string{"-format", util.FormatSPIFFE},
expectedOut: cert1JWKS,
name: "spiffe",
args: []string{"-format", util.FormatSPIFFE},
expectedStdoutPretty: cert1JWKS,
expectedStdoutJSON: expectedShowResultJSON,
},
{
name: "server fails",
@ -61,29 +76,32 @@ func TestShow(t *testing.T) {
expectedError: "Error: rpc error: code = Unknown desc = some error\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newShowCommand)
test.server.err = tt.serverErr
test.server.bundles = []*types.Bundle{{
TrustDomain: "spiffe://example.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newShowCommand)
test.server.err = tt.serverErr
test.server.bundles = []*types.Bundle{{
TrustDomain: "spiffe://example.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
},
RefreshHint: 60,
SequenceNumber: 42,
},
RefreshHint: 60,
},
}
}
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expectedError != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedError, test.stderr.String())
return
}
require.Equal(t, 0, rc)
require.Equal(t, test.stdout.String(), tt.expectedOut)
})
rc := test.client.Run(test.args(args...))
if tt.expectedError != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedError, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, 0, rc)
})
}
}
}
@ -95,10 +113,27 @@ func TestSetHelp(t *testing.T) {
func TestSetSynopsis(t *testing.T) {
test := setupTest(t, newSetCommand)
require.Equal(t, "Creates or updates bundle data", test.client.Synopsis())
require.Equal(t, "Creates or updates federated bundle data", test.client.Synopsis())
}
func TestSet(t *testing.T) {
expectedSetResultJSON := `{
"results": [
{
"status": {
"code": 0,
"message": ""
},
"bundle": {
"trust_domain": "spiffe://otherdomain.test",
"x509_authorities": [],
"jwt_authorities": [],
"refresh_hint": "0",
"sequence_number": "0"
}
}
]
}`
cert1, err := pemutil.ParseCertificate([]byte(cert1PEM))
require.NoError(t, err)
@ -106,54 +141,64 @@ func TestSet(t *testing.T) {
require.NoError(t, err)
for _, tt := range []struct {
name string
args []string
expectedStderr string
stdin string
fileData string
serverErr error
toSet *types.Bundle
setResponse *bundlev1.BatchSetFederatedBundleResponse
name string
args []string
expectedStderrPretty string
expectedStderrJSON string
expectedStdoutPretty string
expectedStdoutJSON string
stdin string
fileData string
serverErr error
toSet *types.Bundle
setResponse *bundlev1.BatchSetFederatedBundleResponse
}{
{
name: "no id",
expectedStderr: "Error: id flag is required\n",
name: "no id",
expectedStderrPretty: "Error: id flag is required\n",
expectedStderrJSON: "Error: id flag is required\n",
},
{
name: "invalid trust domain ID",
expectedStderr: "Error: unable to parse bundle data: no PEM blocks\n",
args: []string{"-id", "spiffe://otherdomain.test"},
name: "invalid trust domain ID",
expectedStderrPretty: "Error: unable to parse bundle data: no PEM blocks\n",
expectedStderrJSON: "Error: unable to parse bundle data: no PEM blocks\n",
args: []string{"-id", "spiffe://otherdomain.test"},
},
{
name: "invalid output format",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test", "-format", "invalidFormat"},
expectedStderr: "Error: invalid format: \"invalidformat\"\n",
name: "invalid output format",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test", "-format", "invalidFormat"},
expectedStderrPretty: "Error: invalid format: \"invalidformat\"\n",
expectedStderrJSON: "Error: invalid format: \"invalidformat\"\n",
},
{
name: "invalid bundle (pem)",
stdin: "invalid bundle",
args: []string{"-id", "spiffe://otherdomain.test"},
expectedStderr: "Error: unable to parse bundle data: no PEM blocks\n",
name: "invalid bundle (pem)",
stdin: "invalid bundle",
args: []string{"-id", "spiffe://otherdomain.test"},
expectedStderrPretty: "Error: unable to parse bundle data: no PEM blocks\n",
expectedStderrJSON: "Error: unable to parse bundle data: no PEM blocks\n",
},
{
name: "invalid bundle (spiffe)",
stdin: "invalid bundle",
args: []string{"-id", "spiffe://otherdomain.test", "-format", util.FormatSPIFFE},
expectedStderr: "Error: unable to parse to spiffe bundle: spiffebundle: unable to parse JWKS: invalid character 'i' looking for beginning of value\n",
name: "invalid bundle (spiffe)",
stdin: "invalid bundle",
args: []string{"-id", "spiffe://otherdomain.test", "-format", util.FormatSPIFFE},
expectedStderrPretty: "Error: unable to parse to spiffe bundle: spiffebundle: unable to parse JWKS: invalid character 'i' looking for beginning of value\n",
expectedStderrJSON: "Error: unable to parse to spiffe bundle: spiffebundle: unable to parse JWKS: invalid character 'i' looking for beginning of value\n",
},
{
name: "server fails",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test"},
serverErr: status.New(codes.Internal, "some error").Err(),
expectedStderr: "Error: failed to set federated bundle: rpc error: code = Internal desc = some error\n",
name: "server fails",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test"},
serverErr: status.New(codes.Internal, "some error").Err(),
expectedStderrPretty: "Error: failed to set federated bundle: rpc error: code = Internal desc = some error\n",
expectedStderrJSON: "Error: failed to set federated bundle: rpc error: code = Internal desc = some error\n",
},
{
name: "failed to set",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test"},
expectedStderr: "Error: failed to set federated bundle: failed to set\n",
name: "failed to set",
stdin: cert1PEM,
args: []string{"-id", "spiffe://otherdomain.test"},
expectedStderrPretty: "Error: failed to set federated bundle: failed to set\n",
expectedStdoutJSON: `{"results":[{"status":{"code":13,"message":"failed to set"}}]}`,
toSet: &types.Bundle{
TrustDomain: "spiffe://otherdomain.test",
X509Authorities: []*types.X509Certificate{
@ -192,6 +237,8 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
{
name: "set bundle (pem)",
@ -215,6 +262,8 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
{
name: "set bundle (jwks)",
@ -244,11 +293,14 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
{
name: "invalid file name",
expectedStderr: fmt.Sprintf("Error: unable to load bundle data: open /not/a/real/path/to/a/bundle: %s\n", spiretest.PathNotFound()),
args: []string{"-id", "spiffe://otherdomain.test", "-path", "/not/a/real/path/to/a/bundle"},
name: "invalid file name",
expectedStderrPretty: fmt.Sprintf("Error: unable to load bundle data: open /not/a/real/path/to/a/bundle: %s\n", spiretest.PathNotFound()),
expectedStderrJSON: fmt.Sprintf("Error: unable to load bundle data: open /not/a/real/path/to/a/bundle: %s\n", spiretest.PathNotFound()),
args: []string{"-id", "spiffe://otherdomain.test", "-path", "/not/a/real/path/to/a/bundle"},
},
{
name: "set from file (default)",
@ -272,6 +324,8 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
{
name: "set from file (pem)",
@ -295,6 +349,8 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
{
name: "set from file (jwks)",
@ -324,36 +380,44 @@ func TestSet(t *testing.T) {
},
},
},
expectedStdoutPretty: "bundle set.",
expectedStdoutJSON: expectedSetResultJSON,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newSetCommand)
test.server.expectedSetBundle = tt.toSet
test.server.setResponse = tt.setResponse
test.server.err = tt.serverErr
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newSetCommand)
test.server.expectedSetBundle = tt.toSet
test.server.setResponse = tt.setResponse
test.server.err = tt.serverErr
test.stdin.WriteString(tt.stdin)
var extraArgs []string
if tt.fileData != "" {
tmpDir := spiretest.TempDir(t)
bundlePath := filepath.Join(tmpDir, "bundle_data")
require.NoError(t, os.WriteFile(bundlePath, []byte(tt.fileData), 0600))
extraArgs = append(extraArgs, "-path", bundlePath)
}
args := tt.args
args = append(args, "-output", format)
test.stdin.WriteString(tt.stdin)
var extraArgs []string
if tt.fileData != "" {
tmpDir := spiretest.TempDir(t)
bundlePath := filepath.Join(tmpDir, "bundle_data")
require.NoError(t, os.WriteFile(bundlePath, []byte(tt.fileData), 0600))
extraArgs = append(extraArgs, "-path", bundlePath)
}
rc := test.client.Run(test.args(append(args, extraArgs...)...))
rc := test.client.Run(test.args(append(tt.args, extraArgs...)...))
if tt.expectedStderr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderr, test.stderr.String())
return
}
require.Empty(t, test.stderr.String())
require.Equal(t, 0, rc)
require.Equal(t, "bundle set.\n", test.stdout.String())
})
if tt.expectedStderrPretty != "" && format == "pretty" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderrPretty, test.stderr.String())
return
}
if tt.expectedStderrJSON != "" && format == "json" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderrJSON, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Empty(t, test.stderr.String())
require.Equal(t, 0, rc)
})
}
}
}
@ -361,7 +425,7 @@ func TestCountHelp(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of bundle count:`+common.AddrUsage, test.stderr.String())
require.Equal(t, countUsage, test.stderr.String())
}
func TestCountSynopsis(t *testing.T) {
@ -371,17 +435,19 @@ func TestCountSynopsis(t *testing.T) {
func TestCount(t *testing.T) {
for _, tt := range []struct {
name string
args []string
count int
expectedStdout string
expectedStderr string
serverErr error
name string
args []string
count int
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderr string
serverErr error
}{
{
name: "all bundles",
count: 2,
expectedStdout: "2 bundles\n",
name: "all bundles",
count: 2,
expectedStdoutPretty: "2 bundles\n",
expectedStdoutJSON: `{"count":2}`,
},
{
name: "all bundles server fails",
@ -390,9 +456,10 @@ func TestCount(t *testing.T) {
serverErr: status.Error(codes.Internal, "some error"),
},
{
name: "one bundle",
count: 1,
expectedStdout: "1 bundle\n",
name: "one bundle",
count: 1,
expectedStdoutPretty: "1 bundle\n",
expectedStdoutJSON: `{"count":1}`,
},
{
name: "one bundle server fails",
@ -401,45 +468,49 @@ func TestCount(t *testing.T) {
serverErr: status.Error(codes.Internal, "some error"),
},
{
name: "no bundles",
count: 0,
expectedStdout: "0 bundles\n",
name: "no bundles",
count: 0,
expectedStdoutPretty: "0 bundles\n",
expectedStdoutJSON: `{"count":0}`,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.server.err = tt.serverErr
bundles := []*types.Bundle{
{
TrustDomain: "spiffe://domain1.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.server.err = tt.serverErr
bundles := []*types.Bundle{
{
TrustDomain: "spiffe://domain1.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
},
JwtAuthorities: []*types.JWTKey{
{KeyId: "KID", PublicKey: test.key1Pkix},
},
},
JwtAuthorities: []*types.JWTKey{
{KeyId: "KID", PublicKey: test.key1Pkix},
{
TrustDomain: "spiffe://domain2.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert2.Raw},
},
},
},
{
TrustDomain: "spiffe://domain2.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert2.Raw},
},
},
}
}
test.server.bundles = bundles[0:tt.count]
args := tt.args
args = append(args, "-output", format)
test.server.bundles = bundles[0:tt.count]
rc := test.client.Run(test.args(tt.args...))
if tt.expectedStderr != "" {
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, 1, rc)
return
}
rc := test.client.Run(test.args(args...))
require.Equal(t, 0, rc)
require.Empty(t, test.stderr.String())
require.Equal(t, tt.expectedStdout, test.stdout.String())
})
if tt.expectedStderr != "" {
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, 1, rc)
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, 0, rc)
require.Empty(t, test.stderr.String())
})
}
}
}
@ -447,11 +518,7 @@ func TestListHelp(t *testing.T) {
test := setupTest(t, newListCommand)
test.client.Help()
require.Equal(t, `Usage of bundle list:
-format string
The format to list federated bundles. Either "pem" or "spiffe". (default "pem")
-id string
SPIFFE ID of the trust domain`+common.AddrUsage, test.stderr.String())
require.Equal(t, listUsage, test.stderr.String())
}
func TestListSynopsis(t *testing.T) {
@ -460,131 +527,209 @@ func TestListSynopsis(t *testing.T) {
}
func TestList(t *testing.T) {
allBundlesResultJSON := `{
"bundles": [
{
"trust_domain": "spiffe://domain1.test",
"x509_authorities": [
{
"asn1": "MIIBKjCB0aADAgECAgEBMAoGCCqGSM49BAMCMAAwIhgPMDAwMTAxMDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABHyvsCk5yi+yhSzNu5aquQwvm8a1Wh+qw1fiHAkhDni+wq+g3TQWxYlV51TCPH030yXsRxvujD4hUUaIQrXk4KKjODA2MA8GA1UdEwEB/wQFMAMBAf8wIwYDVR0RAQH/BBkwF4YVc3BpZmZlOi8vZG9tYWluMS50ZXN0MAoGCCqGSM49BAMCA0gAMEUCIA2dO09Xmakw2ekuHKWC4hBhCkpr5qY4bI8YUcXfxg/1AiEA67kMyH7bQnr7OVLUrL+b9ylAdZglS5kKnYigmwDh+/U=",
"tainted": false
}
],
"jwt_authorities": [
{
"public_key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfK+wKTnKL7KFLM27lqq5DC+bxrVaH6rDV+IcCSEOeL7Cr6DdNBbFiVXnVMI8fTfTJexHG+6MPiFRRohCteTgog==",
"tainted": false,
"key_id": "KID",
"expires_at": "0"
}
],
"refresh_hint": "0",
"sequence_number": "0"
},
{
"trust_domain": "spiffe://domain2.test",
"x509_authorities": [
{
"asn1": "MIIBKjCB0aADAgECAgEBMAoGCCqGSM49BAMCMAAwIhgPMDAwMTAxMDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8VbmlJ8YIuN9RuQ94PYanmkIRG7MkGV5mmrO6rFAv3SFd/uVlwYNkXrh0219eHUSD4o+4RGXoiMFJKysw5GK6jODA2MA8GA1UdEwEB/wQFMAMBAf8wIwYDVR0RAQH/BBkwF4YVc3BpZmZlOi8vZG9tYWluMi50ZXN0MAoGCCqGSM49BAMCA0gAMEUCIQDMKwYtq+2ZoNyl4udPj7IMYIGX8yuCNRmh7m3d9tvoDgIgbS26wSwDjngGqdiHHL8fTcggdiIqWtxAqBLFrx8zNS4=",
"tainted": false
}
],
"jwt_authorities": [],
"refresh_hint": "0",
"sequence_number": "0"
}
],
"next_page_token": ""
}`
oneBundleResultJSON := `{
"trust_domain": "spiffe://domain2.test",
"x509_authorities": [
{
"asn1": "MIIBKjCB0aADAgECAgEBMAoGCCqGSM49BAMCMAAwIhgPMDAwMTAxMDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABB8VbmlJ8YIuN9RuQ94PYanmkIRG7MkGV5mmrO6rFAv3SFd/uVlwYNkXrh0219eHUSD4o+4RGXoiMFJKysw5GK6jODA2MA8GA1UdEwEB/wQFMAMBAf8wIwYDVR0RAQH/BBkwF4YVc3BpZmZlOi8vZG9tYWluMi50ZXN0MAoGCCqGSM49BAMCA0gAMEUCIQDMKwYtq+2ZoNyl4udPj7IMYIGX8yuCNRmh7m3d9tvoDgIgbS26wSwDjngGqdiHHL8fTcggdiIqWtxAqBLFrx8zNS4=",
"tainted": false
}
],
"jwt_authorities": [],
"refresh_hint": "0",
"sequence_number": "0"
}`
for _, tt := range []struct {
name string
args []string
expectedStdout string
expectedStderr string
serverErr error
name string
args []string
expectedStdoutPretty string
expectedStdoutJSON string
expectedStderrPretty string
expectedStderrJSON string
serverErr error
}{
{
name: "all bundles (default)",
expectedStdout: allBundlesPEM,
name: "all bundles (default)",
expectedStdoutPretty: allBundlesPEM,
expectedStdoutJSON: allBundlesResultJSON,
},
{
name: "all bundles server fails",
expectedStderr: "Error: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
name: "all bundles server fails",
expectedStderrPretty: "Error: rpc error: code = Internal desc = some error\n",
expectedStderrJSON: "Error: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
},
{
name: "all bundles invalid format",
args: []string{"-format", "invalid"},
expectedStderr: "Error: invalid format: \"invalid\"\n",
name: "all bundles invalid bundle format",
args: []string{"-format", "invalid"},
expectedStderrPretty: "Error: invalid format: \"invalid\"\n",
expectedStdoutJSON: allBundlesResultJSON,
},
{
name: "all bundles (pem)",
args: []string{"-format", util.FormatPEM},
expectedStdout: allBundlesPEM,
name: "all bundles (pem)",
args: []string{"-format", util.FormatPEM},
expectedStdoutPretty: allBundlesPEM,
expectedStdoutJSON: allBundlesResultJSON,
},
{
name: "all bundles (jwks)",
args: []string{"-format", util.FormatSPIFFE},
expectedStdout: allBundlesJWKS,
name: "all bundles (jwks)",
args: []string{"-format", util.FormatSPIFFE},
expectedStdoutPretty: allBundlesJWKS,
expectedStdoutJSON: allBundlesResultJSON,
},
{
name: "one bundle (default)",
args: []string{"-id", "spiffe://domain2.test"},
expectedStdout: cert2PEM,
name: "one bundle (default)",
args: []string{"-id", "spiffe://domain2.test"},
expectedStdoutPretty: cert2PEM,
expectedStdoutJSON: oneBundleResultJSON,
},
{
name: "one bundle server fails",
args: []string{"-id", "spiffe://domain2.test"},
expectedStderr: "Error: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
name: "one bundle server fails",
args: []string{"-id", "spiffe://domain2.test"},
expectedStderrPretty: "Error: rpc error: code = Internal desc = some error\n",
expectedStderrJSON: "Error: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
},
{
name: "one bundle invalid format",
args: []string{"-id", "spiffe://domain2.test", "-format", "invalid"},
expectedStderr: "Error: invalid format: \"invalid\"\n",
name: "one bundle invalid bundle format",
args: []string{"-id", "spiffe://domain2.test", "-format", "invalid"},
expectedStderrPretty: "Error: invalid format: \"invalid\"\n",
expectedStdoutJSON: oneBundleResultJSON,
},
{
name: "one bundle (pem)",
args: []string{"-id", "spiffe://domain2.test", "-format", util.FormatPEM},
expectedStdout: cert2PEM,
name: "one bundle (pem)",
args: []string{"-id", "spiffe://domain2.test", "-format", util.FormatPEM},
expectedStdoutPretty: cert2PEM,
expectedStdoutJSON: oneBundleResultJSON,
},
{
name: "one bundle (jwks)",
args: []string{"-id", "spiffe://domain2.test", "-format", util.FormatSPIFFE},
expectedStdout: cert2JWKS,
name: "one bundle (jwks)",
args: []string{"-id", "spiffe://domain2.test", "-format", util.FormatSPIFFE},
expectedStdoutPretty: cert2JWKS,
expectedStdoutJSON: oneBundleResultJSON,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newListCommand)
test.server.err = tt.serverErr
test.server.bundles = []*types.Bundle{
{
TrustDomain: "spiffe://domain1.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newListCommand)
test.server.err = tt.serverErr
test.server.bundles = []*types.Bundle{
{
TrustDomain: "spiffe://domain1.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert1.Raw},
},
JwtAuthorities: []*types.JWTKey{
{KeyId: "KID", PublicKey: test.key1Pkix},
},
},
JwtAuthorities: []*types.JWTKey{
{KeyId: "KID", PublicKey: test.key1Pkix},
{
TrustDomain: "spiffe://domain2.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert2.Raw},
},
},
},
{
TrustDomain: "spiffe://domain2.test",
X509Authorities: []*types.X509Certificate{
{Asn1: test.cert2.Raw},
},
},
}
}
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expectedStderr != "" {
require.Equal(t, tt.expectedStderr, test.stderr.String())
require.Equal(t, 1, rc)
return
}
rc := test.client.Run(test.args(args...))
require.Equal(t, 0, rc)
require.Empty(t, test.stderr.String())
require.Equal(t, tt.expectedStdout, test.stdout.String())
})
if tt.expectedStderrPretty != "" && format == "pretty" {
require.Equal(t, tt.expectedStderrPretty, test.stderr.String())
require.Equal(t, 1, rc)
return
}
if tt.expectedStderrJSON != "" && format == "json" {
require.Equal(t, tt.expectedStderrJSON, test.stderr.String())
require.Equal(t, 1, rc)
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Equal(t, 0, rc)
require.Empty(t, test.stderr.String())
})
}
}
}
func TestDeleteHelp(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.client.Help()
require.Equal(t, `Usage of bundle delete:
-id string
SPIFFE ID of the trust domain
-mode string
Deletion mode: one of restrict, delete, or dissociate (default "restrict")`+common.AddrUsage, test.stderr.String())
require.Equal(t, deleteUsage, test.stderr.String())
}
func TestDeleteSynopsis(t *testing.T) {
test := setupTest(t, newDeleteCommand)
require.Equal(t, "Deletes bundle data", test.client.Synopsis())
require.Equal(t, "Deletes federated bundle data", test.client.Synopsis())
}
func TestDelete(t *testing.T) {
deleteResultJSON := `{
"results": [
{
"status": {
"code": 0,
"message": "ok"
},
"trust_domain": "domain1.test"
}
]
}`
for _, tt := range []struct {
name string
args []string
expectedStderr string
expectedStdout string
deleteResults []*bundlev1.BatchDeleteFederatedBundleResponse_Result
mode bundlev1.BatchDeleteFederatedBundleRequest_Mode
toDelete []string
serverErr error
name string
args []string
expectedStderrPretty string
expectedStderrJSON string
expectedStdoutPretty string
expectedStdoutJSON string
deleteResults []*bundlev1.BatchDeleteFederatedBundleResponse_Result
mode bundlev1.BatchDeleteFederatedBundleRequest_Mode
toDelete []string
serverErr error
}{
{
name: "success default mode",
args: []string{"-id", "spiffe://domain1.test"},
expectedStdout: "bundle deleted.\n",
toDelete: []string{"spiffe://domain1.test"},
name: "success default mode",
args: []string{"-id", "spiffe://domain1.test"},
expectedStdoutPretty: "bundle deleted.\n",
expectedStdoutJSON: deleteResultJSON,
toDelete: []string{"spiffe://domain1.test"},
deleteResults: []*bundlev1.BatchDeleteFederatedBundleResponse_Result{
{
Status: &types.Status{
@ -597,15 +742,17 @@ func TestDelete(t *testing.T) {
},
},
{
name: "no id",
expectedStderr: "Error: id is required\n",
name: "no id",
expectedStderrPretty: "Error: id is required\n",
expectedStderrJSON: "Error: id is required\n",
},
{
name: "success RESTRICT mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "restrict"},
expectedStdout: "bundle deleted.\n",
mode: bundlev1.BatchDeleteFederatedBundleRequest_RESTRICT,
toDelete: []string{"spiffe://domain1.test"},
name: "success RESTRICT mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "restrict"},
expectedStdoutPretty: "bundle deleted.\n",
expectedStdoutJSON: deleteResultJSON,
mode: bundlev1.BatchDeleteFederatedBundleRequest_RESTRICT,
toDelete: []string{"spiffe://domain1.test"},
deleteResults: []*bundlev1.BatchDeleteFederatedBundleResponse_Result{
{
Status: &types.Status{
@ -618,11 +765,12 @@ func TestDelete(t *testing.T) {
},
},
{
name: "success DISSOCIATE mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "dissociate"},
expectedStdout: "bundle deleted.\n",
mode: bundlev1.BatchDeleteFederatedBundleRequest_DISSOCIATE,
toDelete: []string{"spiffe://domain1.test"},
name: "success DISSOCIATE mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "dissociate"},
expectedStdoutPretty: "bundle deleted.\n",
expectedStdoutJSON: deleteResultJSON,
mode: bundlev1.BatchDeleteFederatedBundleRequest_DISSOCIATE,
toDelete: []string{"spiffe://domain1.test"},
deleteResults: []*bundlev1.BatchDeleteFederatedBundleResponse_Result{
{
Status: &types.Status{
@ -635,11 +783,12 @@ func TestDelete(t *testing.T) {
},
},
{
name: "success DELETE mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "delete"},
expectedStdout: "bundle deleted.\n",
mode: bundlev1.BatchDeleteFederatedBundleRequest_DELETE,
toDelete: []string{"spiffe://domain1.test"},
name: "success DELETE mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "delete"},
expectedStdoutPretty: "bundle deleted.\n",
expectedStdoutJSON: deleteResultJSON,
mode: bundlev1.BatchDeleteFederatedBundleRequest_DELETE,
toDelete: []string{"spiffe://domain1.test"},
deleteResults: []*bundlev1.BatchDeleteFederatedBundleResponse_Result{
{
Status: &types.Status{
@ -652,15 +801,17 @@ func TestDelete(t *testing.T) {
},
},
{
name: "invalid mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "invalid"},
expectedStderr: "Error: unsupported mode \"invalid\"\n",
name: "invalid mode",
args: []string{"-id", "spiffe://domain1.test", "-mode", "invalid"},
expectedStderrPretty: "Error: unsupported mode \"invalid\"\n",
expectedStderrJSON: "Error: unsupported mode \"invalid\"\n",
},
{
name: "server fails",
args: []string{"-id", "spiffe://domain1.test"},
expectedStderr: "Error: failed to delete federated bundle: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
name: "server fails",
args: []string{"-id", "spiffe://domain1.test"},
expectedStderrPretty: "Error: failed to delete federated bundle: rpc error: code = Internal desc = some error\n",
expectedStderrJSON: "Error: failed to delete federated bundle: rpc error: code = Internal desc = some error\n",
serverErr: status.New(codes.Internal, "some error").Err(),
},
{
name: "fails to delete",
@ -676,28 +827,51 @@ func TestDelete(t *testing.T) {
TrustDomain: "domain1.test",
},
},
expectedStderr: "Error: failed to delete federated bundle \"domain1.test\": some error\n",
expectedStderrPretty: "Error: failed to delete federated bundle \"domain1.test\": some error\n",
expectedStdoutJSON: `{"results":[{"status":{"code":13,"message":"some error"},"trust_domain":"domain1.test"}]}`,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.server.deleteResults = tt.deleteResults
test.server.err = tt.serverErr
test.server.mode = tt.mode
test.server.toDelete = tt.toDelete
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.server.deleteResults = tt.deleteResults
test.server.err = tt.serverErr
test.server.mode = tt.mode
test.server.toDelete = tt.toDelete
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expectedStderr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderr, test.stderr.String())
rc := test.client.Run(test.args(args...))
return
}
if tt.expectedStderrPretty != "" && format == "pretty" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderrPretty, test.stderr.String())
require.Empty(t, test.stderr.String())
require.Equal(t, 0, rc)
require.Equal(t, tt.expectedStdout, test.stdout.String())
})
return
}
if tt.expectedStderrJSON != "" && format == "json" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expectedStderrJSON, test.stderr.String())
return
}
assertOutputBasedOnFormat(t, format, test.stdout.String(), tt.expectedStdoutPretty, tt.expectedStdoutJSON)
require.Empty(t, test.stderr.String())
require.Equal(t, 0, rc)
})
}
}
}
func assertOutputBasedOnFormat(t *testing.T, format, stdoutString string, expectedStdoutPretty, expectedStdoutJSON string) {
switch format {
case "pretty":
require.Contains(t, stdoutString, expectedStdoutPretty)
case "json":
if expectedStdoutJSON != "" {
require.JSONEq(t, expectedStdoutJSON, stdoutString)
} else {
require.Empty(t, stdoutString)
}
}
}

View File

@ -1,5 +1,4 @@
//go:build windows
// +build windows
package bundle
@ -11,7 +10,43 @@ var (
SPIFFE ID of the trust domain
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
-path string
Path to the bundle data
`
showUsage = `Usage of bundle show:
-format string
The format to show the bundle (only pretty output format supports this flag). Either "pem" or "spiffe". (default "pem")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
countUsage = `Usage of bundle count:
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
listUsage = `Usage of bundle list:
-format string
The format to list federated bundles (only pretty output format supports this flag). Either "pem" or "spiffe". (default "pem")
-id string
SPIFFE ID of the trust domain
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
deleteUsage = `Usage of bundle delete:
-id string
SPIFFE ID of the trust domain
-mode string
Deletion mode: one of restrict, delete, or dissociate (default "restrict")
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
Desired output format (pretty, json); default: pretty.
`
)

View File

@ -2,7 +2,6 @@ package bundle
import (
"bytes"
"crypto"
"crypto/x509"
"encoding/json"
"encoding/pem"
@ -17,7 +16,7 @@ import (
"github.com/spiffe/go-spiffe/v2/spiffeid"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
"github.com/zeebo/errs"
"github.com/spiffe/spire/pkg/common/jwtutil"
)
const (
@ -78,7 +77,7 @@ func printBundle(out io.Writer, bundle *types.Bundle) error {
docBytes, err := b.Marshal()
if err != nil {
return errs.Wrap(err)
return err
}
var o bytes.Buffer
@ -86,11 +85,8 @@ func printBundle(out io.Writer, bundle *types.Bundle) error {
return err
}
if _, err := fmt.Fprintln(out, o.String()); err != nil {
return errs.Wrap(err)
}
return nil
_, err = fmt.Fprintln(out, o.String())
return err
}
// bundleFromProto converts a bundle from the given *types.Bundle to *spiffebundle.Bundle
@ -103,7 +99,7 @@ func bundleFromProto(bundleProto *types.Bundle) (*spiffebundle.Bundle, error) {
if err != nil {
return nil, err
}
jwtAuthorities, err := jwtKeysFromProto(bundleProto.JwtAuthorities)
jwtAuthorities, err := jwtutil.JWTKeysFromProto(bundleProto.JwtAuthorities)
if err != nil {
return nil, err
}
@ -132,20 +128,6 @@ func x509CertificatesFromProto(proto []*types.X509Certificate) ([]*x509.Certific
return certs, nil
}
// jwtKeysFromProto converts JWT keys from the given []*types.JWTKey to map[string]crypto.PublicKey.
// The key ID of the public key is used as the key in the returned map.
func jwtKeysFromProto(proto []*types.JWTKey) (map[string]crypto.PublicKey, error) {
keys := make(map[string]crypto.PublicKey)
for i, publicKey := range proto {
jwtSigningKey, err := x509.ParsePKIXPublicKey(publicKey.PublicKey)
if err != nil {
return nil, fmt.Errorf("unable to parse JWT signing key %d: %w", i, err)
}
keys[publicKey.KeyId] = jwtSigningKey
}
return keys, nil
}
func printBundleWithFormat(out io.Writer, bundle *types.Bundle, format string, header bool) error {
if bundle == nil {
return errors.New("no bundle provided")

View File

@ -9,9 +9,9 @@ import (
"github.com/mitchellh/cli"
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/pemutil"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/spiretest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
@ -79,6 +79,7 @@ diIqWtxAqBLFrx8zNS4=
]
}
],
"spiffe_sequence": 42,
"spiffe_refresh_hint": 60
}
`
@ -202,7 +203,7 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *bundl
cert1: cert1,
cert2: cert2,
key1Pkix: key1Pkix,
addr: common.GetAddr(addr),
addr: clitest.GetAddr(addr),
stdin: stdin,
stdout: stdout,
stderr: stderr,
@ -240,7 +241,7 @@ func (s *bundleTest) afterTest(t *testing.T) {
}
func (s *bundleTest) args(extra ...string) []string {
return append([]string{common.AddrArg, s.addr}, extra...)
return append([]string{clitest.AddrArg, s.addr}, extra...)
}
type fakeBundleServer struct {
@ -256,7 +257,7 @@ type fakeBundleServer struct {
toDelete []string
}
func (f *fakeBundleServer) GetBundle(ctx context.Context, in *bundlev1.GetBundleRequest) (*types.Bundle, error) {
func (f *fakeBundleServer) GetBundle(context.Context, *bundlev1.GetBundleRequest) (*types.Bundle, error) {
if f.err != nil {
return nil, f.err
}
@ -265,7 +266,7 @@ func (f *fakeBundleServer) GetBundle(ctx context.Context, in *bundlev1.GetBundle
return f.bundles[0], nil
}
func (f *fakeBundleServer) BatchSetFederatedBundle(ctx context.Context, req *bundlev1.BatchSetFederatedBundleRequest) (*bundlev1.BatchSetFederatedBundleResponse, error) {
func (f *fakeBundleServer) BatchSetFederatedBundle(_ context.Context, req *bundlev1.BatchSetFederatedBundleRequest) (*bundlev1.BatchSetFederatedBundleResponse, error) {
if f.err != nil {
return nil, f.err
}
@ -292,7 +293,7 @@ func (f *fakeBundleServer) ListFederatedBundles(context.Context, *bundlev1.ListF
}, nil
}
func (f *fakeBundleServer) GetFederatedBundle(ctx context.Context, req *bundlev1.GetFederatedBundleRequest) (*types.Bundle, error) {
func (f *fakeBundleServer) GetFederatedBundle(_ context.Context, req *bundlev1.GetFederatedBundleRequest) (*types.Bundle, error) {
if f.err != nil {
return nil, f.err
}
@ -306,7 +307,7 @@ func (f *fakeBundleServer) GetFederatedBundle(ctx context.Context, req *bundlev1
return nil, status.New(codes.NotFound, "not found").Err()
}
func (f *fakeBundleServer) BatchDeleteFederatedBundle(ctx context.Context, req *bundlev1.BatchDeleteFederatedBundleRequest) (*bundlev1.BatchDeleteFederatedBundleResponse, error) {
func (f *fakeBundleServer) BatchDeleteFederatedBundle(_ context.Context, req *bundlev1.BatchDeleteFederatedBundleRequest) (*bundlev1.BatchDeleteFederatedBundleResponse, error) {
if f.err != nil {
return nil, f.err
}

View File

@ -1,54 +1,64 @@
package bundle
import (
"context"
"flag"
"fmt"
"github.com/mitchellh/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"golang.org/x/net/context"
commoncli "github.com/spiffe/spire/pkg/common/cli"
)
type countCommand struct{}
type countCommand struct {
env *commoncli.Env
printer cliprinter.Printer
}
// NewCountCommand creates a new "count" subcommand for "bundle" command.
func NewCountCommand() cli.Command {
return NewCountCommandWithEnv(common_cli.DefaultEnv)
return NewCountCommandWithEnv(commoncli.DefaultEnv)
}
// NewCountCommandWithEnv creates a new "count" subcommand for "bundle" command
// using the environment specified.
func NewCountCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(countCommand))
func NewCountCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &countCommand{env: env})
}
func (*countCommand) Name() string {
return "bundle count"
}
func (countCommand) Synopsis() string {
func (*countCommand) Synopsis() string {
return "Count bundles"
}
// Run counts attested bundles
func (c *countCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *countCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
bundleClient := serverClient.NewBundleClient()
countResponse, err := bundleClient.CountBundles(ctx, &bundlev1.CountBundlesRequest{})
countResp, err := bundleClient.CountBundles(ctx, &bundlev1.CountBundlesRequest{})
if err != nil {
return err
}
count := int(countResponse.Count)
msg := fmt.Sprintf("%d ", count)
msg = util.Pluralizer(msg, "bundle", "bundles", count)
env.Println(msg)
return nil
return c.printer.PrintProto(countResp)
}
func (c *countCommand) AppendFlags(fs *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintCount)
}
func prettyPrintCount(env *commoncli.Env, results ...any) error {
countResp, ok := results[0].(*bundlev1.CountBundlesResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
count := int(countResp.Count)
msg := fmt.Sprintf("%d ", count)
msg = util.Pluralizer(msg, "bundle", "bundles", count)
return env.Println(msg)
}

View File

@ -9,7 +9,8 @@ import (
"github.com/mitchellh/cli"
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"google.golang.org/grpc/codes"
)
@ -21,19 +22,21 @@ const (
// NewDeleteCommand creates a new "delete" subcommand for "bundle" command.
func NewDeleteCommand() cli.Command {
return newDeleteCommand(common_cli.DefaultEnv)
return newDeleteCommand(commoncli.DefaultEnv)
}
func newDeleteCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(deleteCommand))
func newDeleteCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &deleteCommand{env: env})
}
type deleteCommand struct {
env *commoncli.Env
// SPIFFE ID of the trust domain bundle
id string
// Deletion mode
mode string
// Command printer
printer cliprinter.Printer
}
func (c *deleteCommand) Name() string {
@ -41,15 +44,16 @@ func (c *deleteCommand) Name() string {
}
func (c *deleteCommand) Synopsis() string {
return "Deletes bundle data"
return "Deletes federated bundle data"
}
func (c *deleteCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.id, "id", "", "SPIFFE ID of the trust domain")
fs.StringVar(&c.mode, "mode", deleteBundleRestrict, fmt.Sprintf("Deletion mode: one of %s, %s, or %s", deleteBundleRestrict, deleteBundleDelete, deleteBundleDissociate))
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintDelete)
}
func (c *deleteCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *deleteCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if c.id == "" {
return errors.New("id is required")
}
@ -69,7 +73,16 @@ func (c *deleteCommand) Run(ctx context.Context, env *common_cli.Env, serverClie
if err != nil {
return fmt.Errorf("failed to delete federated bundle: %w", err)
}
result := resp.Results[0]
return c.printer.PrintProto(resp)
}
func prettyPrintDelete(env *commoncli.Env, results ...any) error {
deleteResp, ok := results[0].(*bundlev1.BatchDeleteFederatedBundleResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
result := deleteResp.Results[0]
switch result.Status.Code {
case int32(codes.OK):
env.Println("bundle deleted.")

View File

@ -7,22 +7,26 @@ import (
"github.com/mitchellh/cli"
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewListCommand creates a new "list" subcommand for "bundle" command.
func NewListCommand() cli.Command {
return newListCommand(common_cli.DefaultEnv)
return newListCommand(commoncli.DefaultEnv)
}
func newListCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(listCommand))
func newListCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &listCommand{env: env})
}
type listCommand struct {
id string // SPIFFE ID of the trust bundle
format string
env *commoncli.Env
id string // SPIFFE ID of the trust bundle
bundleFormat string
printer cliprinter.Printer
}
func (c *listCommand) Name() string {
@ -35,10 +39,11 @@ func (c *listCommand) Synopsis() string {
func (c *listCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.id, "id", "", "SPIFFE ID of the trust domain")
fs.StringVar(&c.format, "format", util.FormatPEM, fmt.Sprintf("The format to list federated bundles. Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
fs.StringVar(&c.bundleFormat, "format", util.FormatPEM, fmt.Sprintf("The format to list federated bundles (only pretty output format supports this flag). Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, c.prettyPrintList)
}
func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *listCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
bundleClient := serverClient.NewBundleClient()
if c.id != "" {
resp, err := bundleClient.GetFederatedBundle(ctx, &bundlev1.GetFederatedBundleRequest{
@ -47,7 +52,7 @@ func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
if err != nil {
return err
}
return printBundleWithFormat(env.Stdout, resp, c.format, false)
return c.printer.PrintProto(resp)
}
resp, err := bundleClient.ListFederatedBundles(ctx, &bundlev1.ListFederatedBundlesRequest{})
@ -55,16 +60,27 @@ func (c *listCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
return err
}
for i, b := range resp.Bundles {
if i != 0 {
if err := env.Println(); err != nil {
return c.printer.PrintProto(resp)
}
func (c *listCommand) prettyPrintList(env *commoncli.Env, results ...any) error {
if listResp, ok := results[0].(*bundlev1.ListFederatedBundlesResponse); ok {
for i, bundle := range listResp.Bundles {
if i != 0 {
if err := env.Println(); err != nil {
return err
}
}
if err := printBundleWithFormat(env.Stdout, bundle, c.bundleFormat, true); err != nil {
return err
}
}
if err := printBundleWithFormat(env.Stdout, b, c.format, true); err != nil {
return err
}
return nil
}
return nil
if resp, ok := results[0].(*types.Bundle); ok {
return printBundleWithFormat(env.Stdout, resp, c.bundleFormat, false)
}
return cliprinter.ErrInternalCustomPrettyFunc
}

View File

@ -11,6 +11,7 @@ import (
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"google.golang.org/grpc/codes"
)
@ -20,17 +21,17 @@ func NewSetCommand() cli.Command {
}
func newSetCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(setCommand))
return util.AdaptCommand(env, &setCommand{env: env})
}
type setCommand struct {
env *common_cli.Env
// SPIFFE ID of the trust bundle
id string
// Path to the bundle on disk (optional). If empty, reads from stdin.
path string
format string
path string
bundleFormat string
printer cliprinter.Printer
}
func (c *setCommand) Name() string {
@ -38,13 +39,14 @@ func (c *setCommand) Name() string {
}
func (c *setCommand) Synopsis() string {
return "Creates or updates bundle data"
return "Creates or updates federated bundle data"
}
func (c *setCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.id, "id", "", "SPIFFE ID of the trust domain")
fs.StringVar(&c.path, "path", "", "Path to the bundle data")
fs.StringVar(&c.format, "format", util.FormatPEM, fmt.Sprintf("The format of the bundle data. Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
fs.StringVar(&c.bundleFormat, "format", util.FormatPEM, fmt.Sprintf("The format of the bundle data. Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintSet)
}
func (c *setCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
@ -52,7 +54,7 @@ func (c *setCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
return errors.New("id flag is required")
}
format, err := validateFormat(c.format)
bundleFormat, err := validateFormat(c.bundleFormat)
if err != nil {
return err
}
@ -62,7 +64,7 @@ func (c *setCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
return fmt.Errorf("unable to load bundle data: %w", err)
}
bundle, err := util.ParseBundle(bundleBytes, format, c.id)
bundle, err := util.ParseBundle(bundleBytes, bundleFormat, c.id)
if err != nil {
return err
}
@ -75,7 +77,15 @@ func (c *setCommand) Run(ctx context.Context, env *common_cli.Env, serverClient
return fmt.Errorf("failed to set federated bundle: %w", err)
}
result := resp.Results[0]
return c.printer.PrintProto(resp)
}
func prettyPrintSet(env *common_cli.Env, results ...any) error {
setResp, ok := results[0].(*bundlev1.BatchSetFederatedBundleResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
result := setResp.Results[0]
switch result.Status.Code {
case int32(codes.OK):
env.Println("bundle set.")

View File

@ -7,8 +7,10 @@ import (
"github.com/mitchellh/cli"
bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewShowCommand creates a new "show" subcommand for "bundle" command.
@ -17,11 +19,13 @@ func NewShowCommand() cli.Command {
}
func newShowCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(showCommand))
return util.AdaptCommand(env, &showCommand{env: env})
}
type showCommand struct {
format string
env *common_cli.Env
bundleFormat string
printer cliprinter.Printer
}
func (c *showCommand) Name() string {
@ -33,15 +37,24 @@ func (c *showCommand) Synopsis() string {
}
func (c *showCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.format, "format", util.FormatPEM, fmt.Sprintf("The format to show the bundle. Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
fs.StringVar(&c.bundleFormat, "format", util.FormatPEM, fmt.Sprintf("The format to show the bundle (only pretty output format supports this flag). Either %q or %q.", util.FormatPEM, util.FormatSPIFFE))
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, c.prettyPrintBundle)
}
func (c *showCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *showCommand) Run(ctx context.Context, _ *common_cli.Env, serverClient util.ServerClient) error {
bundleClient := serverClient.NewBundleClient()
resp, err := bundleClient.GetBundle(ctx, &bundlev1.GetBundleRequest{})
if err != nil {
return err
}
return printBundleWithFormat(env.Stdout, resp, c.format, false)
return c.printer.PrintProto(resp)
}
func (c *showCommand) prettyPrintBundle(env *common_cli.Env, results ...any) error {
showResp, ok := results[0].(*types.Bundle)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
return printBundleWithFormat(env.Stdout, showResp, c.bundleFormat, false)
}

View File

@ -1,6 +1,7 @@
package cli
import (
"context"
stdlog "log"
"github.com/mitchellh/cli"
@ -10,8 +11,12 @@ import (
"github.com/spiffe/spire/cmd/spire-server/cli/federation"
"github.com/spiffe/spire/cmd/spire-server/cli/healthcheck"
"github.com/spiffe/spire/cmd/spire-server/cli/jwt"
localauthority_jwt "github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
localauthority_x509 "github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/cmd/spire-server/cli/logger"
"github.com/spiffe/spire/cmd/spire-server/cli/run"
"github.com/spiffe/spire/cmd/spire-server/cli/token"
"github.com/spiffe/spire/cmd/spire-server/cli/upstreamauthority"
"github.com/spiffe/spire/cmd/spire-server/cli/validate"
"github.com/spiffe/spire/cmd/spire-server/cli/x509"
"github.com/spiffe/spire/pkg/common/log"
@ -25,7 +30,7 @@ type CLI struct {
}
// Run configures the server CLI commands and subcommands.
func (cc *CLI) Run(args []string) int {
func (cc *CLI) Run(ctx context.Context, args []string) int {
c := cli.NewCLI("spire-server", version.Version())
c.Args = args
c.Commands = map[string]cli.CommandFactory{
@ -44,6 +49,9 @@ func (cc *CLI) Run(args []string) int {
"agent show": func() (cli.Command, error) {
return agent.NewShowCommand(), nil
},
"agent purge": func() (cli.Command, error) {
return agent.NewPurgeCommand(), nil
},
"bundle count": func() (cli.Command, error) {
return bundle.NewCountCommand(), nil
},
@ -92,8 +100,17 @@ func (cc *CLI) Run(args []string) int {
"federation update": func() (cli.Command, error) {
return federation.NewUpdateCommand(), nil
},
"logger get": func() (cli.Command, error) {
return logger.NewGetCommand(), nil
},
"logger set": func() (cli.Command, error) {
return logger.NewSetCommand(), nil
},
"logger reset": func() (cli.Command, error) {
return logger.NewResetCommand(), nil
},
"run": func() (cli.Command, error) {
return run.NewRunCommand(cc.LogOptions, cc.AllowUnknownConfig), nil
return run.NewRunCommand(ctx, cc.LogOptions, cc.AllowUnknownConfig), nil
},
"token generate": func() (cli.Command, error) {
return token.NewGenerateCommand(), nil
@ -110,6 +127,42 @@ func (cc *CLI) Run(args []string) int {
"validate": func() (cli.Command, error) {
return validate.NewValidateCommand(), nil
},
"localauthority x509 show": func() (cli.Command, error) {
return localauthority_x509.NewX509ShowCommand(), nil
},
"localauthority x509 prepare": func() (cli.Command, error) {
return localauthority_x509.NewX509PrepareCommand(), nil
},
"localauthority x509 activate": func() (cli.Command, error) {
return localauthority_x509.NewX509ActivateCommand(), nil
},
"localauthority x509 taint": func() (cli.Command, error) {
return localauthority_x509.NewX509TaintCommand(), nil
},
"localauthority x509 revoke": func() (cli.Command, error) {
return localauthority_x509.NewX509RevokeCommand(), nil
},
"localauthority jwt show": func() (cli.Command, error) {
return localauthority_jwt.NewJWTShowCommand(), nil
},
"localauthority jwt prepare": func() (cli.Command, error) {
return localauthority_jwt.NewJWTPrepareCommand(), nil
},
"localauthority jwt activate": func() (cli.Command, error) {
return localauthority_jwt.NewJWTActivateCommand(), nil
},
"localauthority jwt taint": func() (cli.Command, error) {
return localauthority_jwt.NewJWTTaintCommand(), nil
},
"localauthority jwt revoke": func() (cli.Command, error) {
return localauthority_jwt.NewJWTRevokeCommand(), nil
},
"upstreamauthority taint": func() (cli.Command, error) {
return upstreamauthority.NewTaintCommand(), nil
},
"upstreamauthority revoke": func() (cli.Command, error) {
return upstreamauthority.NewRevokeCommand(), nil
},
}
exitStatus, err := c.Run()

View File

@ -1,20 +0,0 @@
//go:build !windows
// +build !windows
package common
import "net"
var (
AddrArg = "-socketPath"
AddrError = "Error: connection error: desc = \"transport: error while dialing: dial unix /does-not-exist.sock: connect: no such file or directory\"\n"
AddrUsage = `
-socketPath string
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
AddrValue = "/does-not-exist.sock"
)
func GetAddr(addr net.Addr) string {
return addr.String()
}

View File

@ -1,24 +0,0 @@
//go:build windows
// +build windows
package common
import (
"net"
"github.com/spiffe/spire/pkg/common/namedpipe"
)
var (
AddrArg = "-namedPipeName"
AddrError = "Error: connection error: desc = \"transport: error while dialing: open \\\\\\\\.\\\\pipe\\\\does-not-exist: The system cannot find the file specified.\"\n"
AddrUsage = `
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
`
AddrValue = "\\does-not-exist"
)
func GetAddr(addr net.Addr) string {
return namedpipe.GetPipeName(addr.String())
}

View File

@ -1,54 +1,160 @@
package entry
import (
"context"
"flag"
"fmt"
"github.com/mitchellh/cli"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"golang.org/x/net/context"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"google.golang.org/protobuf/types/known/wrapperspb"
)
type countCommand struct{}
type countCommand struct {
// Type and value are delimited by a colon (:)
// ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo"
selectors StringsFlag
// Workload parent spiffeID
parentID string
// Workload spiffeID
spiffeID string
// Entry hint
hint string
// List of SPIFFE IDs of trust domains the registration entry is federated with
federatesWith StringsFlag
// Whether the entry is for a downstream SPIRE server
downstream bool
// Match used when filtering by federates with
matchFederatesWithOn string
// Match used when filtering by selectors
matchSelectorsOn string
printer cliprinter.Printer
env *commoncli.Env
}
// NewCountCommand creates a new "count" subcommand for "entry" command.
func NewCountCommand() cli.Command {
return NewCountCommandWithEnv(common_cli.DefaultEnv)
return NewCountCommandWithEnv(commoncli.DefaultEnv)
}
// NewCountCommandWithEnv creates a new "count" subcommand for "entry" command
// using the environment specified.
func NewCountCommandWithEnv(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(countCommand))
func NewCountCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &countCommand{env: env})
}
func (*countCommand) Name() string {
return "entry count"
}
func (countCommand) Synopsis() string {
func (*countCommand) Synopsis() string {
return "Count registration entries"
}
// Run counts attested entries
func (c *countCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *countCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
entryClient := serverClient.NewEntryClient()
countResponse, err := entryClient.CountEntries(ctx, &entryv1.CountEntriesRequest{})
filter := &entryv1.CountEntriesRequest_Filter{}
if c.parentID != "" {
id, err := idStringToProto(c.parentID)
if err != nil {
return fmt.Errorf("error parsing parent ID %q: %w", c.parentID, err)
}
filter.ByParentId = id
}
if c.spiffeID != "" {
id, err := idStringToProto(c.spiffeID)
if err != nil {
return fmt.Errorf("error parsing SPIFFE ID %q: %w", c.spiffeID, err)
}
filter.BySpiffeId = id
}
if len(c.selectors) != 0 {
matchSelectorBehavior, err := parseToSelectorMatch(c.matchSelectorsOn)
if err != nil {
return err
}
selectors := make([]*types.Selector, len(c.selectors))
for i, sel := range c.selectors {
selector, err := util.ParseSelector(sel)
if err != nil {
return fmt.Errorf("error parsing selectors: %w", err)
}
selectors[i] = selector
}
filter.BySelectors = &types.SelectorMatch{
Selectors: selectors,
Match: matchSelectorBehavior,
}
}
filter.ByDownstream = wrapperspb.Bool(c.downstream)
if len(c.federatesWith) > 0 {
matchFederatesWithBehavior, err := parseToFederatesWithMatch(c.matchFederatesWithOn)
if err != nil {
return err
}
filter.ByFederatesWith = &types.FederatesWithMatch{
TrustDomains: c.federatesWith,
Match: matchFederatesWithBehavior,
}
}
if c.hint != "" {
filter.ByHint = wrapperspb.String(c.hint)
}
countResponse, err := entryClient.CountEntries(ctx, &entryv1.CountEntriesRequest{
Filter: filter,
})
if err != nil {
return err
}
count := int(countResponse.Count)
return c.printer.PrintProto(countResponse)
}
func (c *countCommand) AppendFlags(fs *flag.FlagSet) {
fs.StringVar(&c.parentID, "parentID", "", "The Parent ID of the records to count")
fs.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID of the records to count")
fs.BoolVar(&c.downstream, "downstream", false, "A boolean value that, when set, indicates that the entry describes a downstream SPIRE server")
fs.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
fs.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain an entry is federate with. Can be used more than once")
fs.StringVar(&c.matchFederatesWithOn, "matchFederatesWithOn", "superset", "The match mode used when filtering by federates with. Options: exact, any, superset and subset")
fs.StringVar(&c.matchSelectorsOn, "matchSelectorsOn", "superset", "The match mode used when filtering by selectors. Options: exact, any, superset and subset")
fs.StringVar(&c.hint, "hint", "", "The Hint of the records to count (optional)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, c.prettyPrintCount)
}
func (c *countCommand) prettyPrintCount(env *commoncli.Env, results ...any) error {
countResp, ok := results[0].(*entryv1.CountEntriesResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
count := int(countResp.Count)
msg := fmt.Sprintf("%d registration ", count)
msg = util.Pluralizer(msg, "entry", "entries", count)
env.Println(msg)
return nil
}
func (c *countCommand) AppendFlags(fs *flag.FlagSet) {
}

View File

@ -1,20 +1,22 @@
package entry
import (
"fmt"
"testing"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/wrapperspb"
)
func TestCountHelp(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.client.Help()
require.Equal(t, `Usage of entry count:`+common.AddrUsage, test.stderr.String())
require.Equal(t, countUsage, test.stderr.String())
}
func TestCountSynopsis(t *testing.T) {
@ -31,30 +33,285 @@ func TestCount(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expCountReq *entryv1.CountEntriesRequest
fakeCountResp *entryv1.CountEntriesResponse
serverErr error
expOut string
expOutPretty string
expOutJSON string
expErr string
}{
{
name: "Count all entries (empty filter)",
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp4,
expOutPretty: "4 registration entries",
expOutJSON: `{"count":4}`,
},
{
name: "Count by parentID",
args: []string{"-parentID", "spiffe://example.org/father"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/father"},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp2,
expOutPretty: "2 registration entries",
expOutJSON: `{"count":2}`,
},
{
name: "Count by parent ID using invalid ID",
args: []string{"-parentID", "invalid-id"},
expErr: "Error: error parsing parent ID \"invalid-id\": scheme is missing or invalid\n",
},
{
name: "Count by SPIFFE ID",
args: []string{"-spiffeID", "spiffe://example.org/daughter"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp2,
expOutPretty: "2 registration entries",
expOutJSON: `{"count":2}`,
},
{
name: "Count by SPIFFE ID using invalid ID",
args: []string{"-spiffeID", "invalid-id"},
expErr: "Error: error parsing SPIFFE ID \"invalid-id\": scheme is missing or invalid\n",
},
{
name: "Count by selectors: default matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySelectors: &types.SelectorMatch{
Selectors: []*types.Selector{
{Type: "foo", Value: "bar"},
{Type: "bar", Value: "baz"},
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by selectors: exact matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "exact"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySelectors: &types.SelectorMatch{
Selectors: []*types.Selector{
{Type: "foo", Value: "bar"},
{Type: "bar", Value: "baz"},
},
Match: types.SelectorMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by selectors: superset matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "superset"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySelectors: &types.SelectorMatch{
Selectors: []*types.Selector{
{Type: "foo", Value: "bar"},
{Type: "bar", Value: "baz"},
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by selectors: subset matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "subset"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySelectors: &types.SelectorMatch{
Selectors: []*types.Selector{
{Type: "foo", Value: "bar"},
{Type: "bar", Value: "baz"},
},
Match: types.SelectorMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by selectors: Any matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "any"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySelectors: &types.SelectorMatch{
Selectors: []*types.Selector{
{Type: "foo", Value: "bar"},
{Type: "bar", Value: "baz"},
},
Match: types.SelectorMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by selectors: Invalid matcher",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "NO-MATCHER"},
expErr: "Error: match behavior \"NO-MATCHER\" unknown\n",
},
{
name: "Count by selector using invalid selector",
args: []string{"-selector", "invalid-selector"},
expErr: "Error: error parsing selectors: selector \"invalid-selector\" must be formatted as type:value\n",
},
{
name: "Server error",
args: []string{"-spiffeID", "spiffe://example.org/daughter"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
ByDownstream: wrapperspb.Bool(false),
},
},
serverErr: status.Error(codes.Internal, "internal server error"),
expErr: "Error: rpc error: code = Internal desc = internal server error\n",
},
{
name: "Count by Federates With: default matcher",
args: []string{"-federatesWith", "spiffe://domain.test"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByFederatesWith: &types.FederatesWithMatch{
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by Federates With: exact matcher",
args: []string{"-federatesWith", "spiffe://domain.test", "-matchFederatesWithOn", "exact"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByFederatesWith: &types.FederatesWithMatch{
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by Federates With: Any matcher",
args: []string{"-federatesWith", "spiffe://domain.test", "-matchFederatesWithOn", "any"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByFederatesWith: &types.FederatesWithMatch{
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by Federates With: superset matcher",
args: []string{"-federatesWith", "spiffe://domain.test", "-matchFederatesWithOn", "superset"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByFederatesWith: &types.FederatesWithMatch{
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by Federates With: subset matcher",
args: []string{"-federatesWith", "spiffe://domain.test", "-matchFederatesWithOn", "subset"},
expCountReq: &entryv1.CountEntriesRequest{
Filter: &entryv1.CountEntriesRequest_Filter{
ByFederatesWith: &types.FederatesWithMatch{
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeCountResp: fakeResp1,
expOutPretty: "1 registration entry",
expOutJSON: `{"count":1}`,
},
{
name: "Count by Federates With: Invalid matcher",
args: []string{"-federatesWith", "spiffe://domain.test", "-matchFederatesWithOn", "NO-MATCHER"},
expErr: "Error: match behavior \"NO-MATCHER\" unknown\n",
},
{
name: "4 entries",
fakeCountResp: fakeResp4,
expOut: "4 registration entries\n",
expOutPretty: "4 registration entries\n",
expOutJSON: `{"count":4}`,
},
{
name: "2 entries",
fakeCountResp: fakeResp2,
expOut: "2 registration entries\n",
expOutPretty: "2 registration entries\n",
expOutJSON: `{"count":2}`,
},
{
name: "1 entry",
fakeCountResp: fakeResp1,
expOut: "1 registration entry\n",
expOutPretty: "1 registration entry\n",
expOutJSON: `{"count":1}`,
},
{
name: "0 entries",
fakeCountResp: fakeResp0,
expOut: "0 registration entries\n",
expOutPretty: "0 registration entries\n",
expOutJSON: `{"count":0}`,
},
{
name: "Server error",
@ -62,21 +319,24 @@ func TestCount(t *testing.T) {
expErr: "Error: rpc error: code = Internal desc = internal server error\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.server.err = tt.serverErr
test.server.countEntriesResp = tt.fakeCountResp
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, NewCountCommandWithEnv)
test.server.err = tt.serverErr
test.server.countEntriesResp = tt.fakeCountResp
rc := test.client.Run(test.args(tt.args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
args := tt.args
args = append(args, "-output", format)
require.Equal(t, 0, rc)
require.Equal(t, tt.expOut, test.stdout.String())
})
rc := test.client.Run(test.args(args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expOutPretty, tt.expOutJSON)
require.Equal(t, 0, rc)
})
}
}
}

View File

@ -1,27 +1,29 @@
package entry
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
serverutil "github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/idutil"
"github.com/spiffe/spire/pkg/common/util"
"google.golang.org/grpc/codes"
"golang.org/x/net/context"
)
// NewCreateCommand creates a new "create" subcommand for "entry" command.
func NewCreateCommand() cli.Command {
return newCreateCommand(common_cli.DefaultEnv)
return newCreateCommand(commoncli.DefaultEnv)
}
func newCreateCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(createCommand))
func newCreateCommand(env *commoncli.Env) cli.Command {
return serverutil.AdaptCommand(env, &createCommand{env: env})
}
type createCommand struct {
@ -33,25 +35,34 @@ type createCommand struct {
// ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo"
selectors StringsFlag
// Registration entry ID
entryID string
// Workload parent spiffeID
parentID string
// Workload spiffeID
spiffeID string
// TTL for certificates issued to this workload
ttl int
// Entry hint, used to disambiguate entries with the same SPIFFE ID
hint string
// TTL for x509 SVIDs issued to this workload
x509SVIDTTL int
// TTL for JWT SVIDs issued to this workload
jwtSVIDTTL int
// List of SPIFFE IDs of trust domains the registration entry is federated with
federatesWith StringsFlag
// Whether or not the registration entry is for an "admin" workload
// whether the registration entry is for an "admin" workload
admin bool
// Whether or not the entry is for a downstream SPIRE server
// whether the entry is for a downstream SPIRE server
downstream bool
// Whether or not the entry represents a node or group of nodes
// whether the entry represents a node or group of nodes
node bool
// Expiry of entry
@ -62,6 +73,10 @@ type createCommand struct {
// storeSVID determines if the issued SVID must be stored through an SVIDStore plugin
storeSVID bool
printer cliprinter.Printer
env *commoncli.Env
}
func (*createCommand) Name() string {
@ -73,9 +88,11 @@ func (*createCommand) Synopsis() string {
}
func (c *createCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.entryID, "entryID", "", "A custom ID for this registration entry (optional). If not set, a new entry ID will be generated")
f.StringVar(&c.parentID, "parentID", "", "The SPIFFE ID of this record's parent")
f.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID that this record represents")
f.IntVar(&c.ttl, "ttl", 0, "The lifetime, in seconds, for SVIDs issued based on this registration entry")
f.IntVar(&c.x509SVIDTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.")
f.IntVar(&c.jwtSVIDTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.")
f.StringVar(&c.path, "data", "", "Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.")
f.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
f.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain to federate with. Can be used more than once")
@ -85,9 +102,11 @@ func (c *createCommand) AppendFlags(f *flag.FlagSet) {
f.BoolVar(&c.downstream, "downstream", false, "A boolean value that, when set, indicates that the entry describes a downstream SPIRE server")
f.Int64Var(&c.entryExpiry, "entryExpiry", 0, "An expiry, from epoch in seconds, for the resulting registration entry to be pruned")
f.Var(&c.dnsNames, "dns", "A DNS name that will be included in SVIDs issued based on this entry, where appropriate. Can be used more than once")
f.StringVar(&c.hint, "hint", "", "The entry hint, used to disambiguate entries with the same SPIFFE ID")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintCreate)
}
func (c *createCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *createCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
@ -103,29 +122,12 @@ func (c *createCommand) Run(ctx context.Context, env *common_cli.Env, serverClie
return err
}
succeeded, failed, err := createEntries(ctx, serverClient.NewEntryClient(), entries)
resp, err := createEntries(ctx, serverClient.NewEntryClient(), entries)
if err != nil {
return err
}
// Print entries that succeeded to be created
for _, r := range succeeded {
printEntry(r.Entry, env.Printf)
}
// Print entries that failed to be created
for _, r := range failed {
env.ErrPrintf("Failed to create the following entry (code: %s, msg: %q):\n",
codes.Code(r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}
if len(failed) > 0 {
return errors.New("failed to create one or more entries")
}
return nil
return c.printer.PrintProto(resp)
}
// validate performs basic validation, even on fields that we
@ -152,8 +154,12 @@ func (c *createCommand) validate() (err error) {
return errors.New("a SPIFFE ID is required")
}
if c.ttl < 0 {
return errors.New("a positive TTL is required")
if c.x509SVIDTTL < 0 {
return errors.New("a positive x509-SVID TTL is required")
}
if c.jwtSVIDTTL < 0 {
return errors.New("a positive JWT-SVID TTL is required")
}
return nil
@ -171,19 +177,32 @@ func (c *createCommand) parseConfig() ([]*types.Entry, error) {
return nil, err
}
x509SvidTTL, err := util.CheckedCast[int32](c.x509SVIDTTL)
if err != nil {
return nil, fmt.Errorf("invalid value for X509 SVID TTL: %w", err)
}
jwtSvidTTL, err := util.CheckedCast[int32](c.jwtSVIDTTL)
if err != nil {
return nil, fmt.Errorf("invalid value for JWT SVID TTL: %w", err)
}
e := &types.Entry{
ParentId: parentID,
SpiffeId: spiffeID,
Ttl: int32(c.ttl),
Downstream: c.downstream,
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
StoreSvid: c.storeSVID,
Id: c.entryID,
ParentId: parentID,
SpiffeId: spiffeID,
Downstream: c.downstream,
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
StoreSvid: c.storeSVID,
X509SvidTtl: x509SvidTTL,
JwtSvidTtl: jwtSvidTTL,
Hint: c.hint,
}
selectors := []*types.Selector{}
for _, s := range c.selectors {
cs, err := util.ParseSelector(s)
cs, err := serverutil.ParseSelector(s)
if err != nil {
return nil, err
}
@ -197,25 +216,21 @@ func (c *createCommand) parseConfig() ([]*types.Entry, error) {
return []*types.Entry{e}, nil
}
func createEntries(ctx context.Context, c entryv1.EntryClient, entries []*types.Entry) (succeeded, failed []*entryv1.BatchCreateEntryResponse_Result, err error) {
resp, err := c.BatchCreateEntry(ctx, &entryv1.BatchCreateEntryRequest{Entries: entries})
func createEntries(ctx context.Context, c entryv1.EntryClient, entries []*types.Entry) (resp *entryv1.BatchCreateEntryResponse, err error) {
resp, err = c.BatchCreateEntry(ctx, &entryv1.BatchCreateEntryRequest{Entries: entries})
if err != nil {
return nil, nil, err
return
}
for i, r := range resp.Results {
switch r.Status.Code {
case int32(codes.OK):
succeeded = append(succeeded, r)
default:
if r.Status.Code != int32(codes.OK) {
// The Entry API does not include in the results the entries that
// failed to be created, so we populate them from the request data.
r.Entry = entries[i]
failed = append(failed, r)
}
}
return succeeded, failed, nil
return
}
func getParentID(config *createCommand, td string) (*types.SPIFFEID, error) {
@ -228,3 +243,37 @@ func getParentID(config *createCommand, td string) (*types.SPIFFEID, error) {
}
return idStringToProto(config.parentID)
}
func prettyPrintCreate(env *commoncli.Env, results ...any) error {
var succeeded, failed []*entryv1.BatchCreateEntryResponse_Result
createResp, ok := results[0].(*entryv1.BatchCreateEntryResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
for _, r := range createResp.Results {
switch r.Status.Code {
case int32(codes.OK):
succeeded = append(succeeded, r)
default:
failed = append(failed, r)
}
}
for _, r := range succeeded {
printEntry(r.Entry, env.Printf)
}
for _, r := range failed {
env.ErrPrintf("Failed to create the following entry (code: %s, msg: %q):\n",
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}
if len(failed) > 0 {
return errors.New("failed to create one or more entries")
}
return nil
}

View File

@ -36,13 +36,43 @@ func TestCreate(t *testing.T) {
{Type: "zebra", Value: "zebra:2000"},
{Type: "alpha", Value: "alpha:2000"},
},
Ttl: 60,
X509SvidTtl: 60,
JwtSvidTtl: 30,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
DnsNames: []string{"unu1000", "ung1000"},
Downstream: true,
StoreSvid: true,
CreatedAt: 1547583197,
},
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
},
}
fakeRespOKFromCmdWithoutJwtTtl := &entryv1.BatchCreateEntryResponse{
Results: []*entryv1.BatchCreateEntryResponse_Result{
{
Entry: &types.Entry{
Id: "entry-id",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/workload"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/parent"},
Selectors: []*types.Selector{
{Type: "zebra", Value: "zebra:2000"},
{Type: "alpha", Value: "alpha:2000"},
},
X509SvidTtl: 60,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
DnsNames: []string{"unu1000", "ung1000"},
Downstream: true,
StoreSvid: true,
CreatedAt: 1547583197,
},
Status: &types.Status{
Code: int32(codes.OK),
@ -56,12 +86,14 @@ func TestCreate(t *testing.T) {
Results: []*entryv1.BatchCreateEntryResponse_Result{
{
Entry: &types.Entry{
Id: "entry-id-1",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Blog"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenBlog"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
Ttl: 200,
Admin: true,
Id: "entry-id-1",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Blog"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenBlog"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
X509SvidTtl: 200,
JwtSvidTtl: 30,
Admin: true,
CreatedAt: 1547583197,
},
Status: &types.Status{
Code: int32(codes.OK),
@ -70,11 +102,14 @@ func TestCreate(t *testing.T) {
},
{
Entry: &types.Entry{
Id: "entry-id-2",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Database"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenDatabase"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
Ttl: 200,
Id: "entry-id-2",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Database"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenDatabase"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
X509SvidTtl: 200,
JwtSvidTtl: 30,
Hint: "internal",
CreatedAt: 1547583197,
},
Status: &types.Status{
Code: int32(codes.OK),
@ -90,8 +125,10 @@ func TestCreate(t *testing.T) {
{Type: "type", Value: "key1:value"},
{Type: "type", Value: "key2:value"},
},
StoreSvid: true,
Ttl: 200,
StoreSvid: true,
X509SvidTtl: 200,
JwtSvidTtl: 30,
CreatedAt: 1547583197,
},
Status: &types.Status{
Code: int32(codes.OK),
@ -120,37 +157,51 @@ func TestCreate(t *testing.T) {
fakeResp *entryv1.BatchCreateEntryResponse
serverErr error
expOut string
expErr string
expOutPretty string
expOutJSON string
expErrJSON string
expErrPretty string
}{
{
name: "Missing selectors",
expErr: "Error: at least one selector is required\n",
name: "Missing selectors",
expErrPretty: "Error: at least one selector is required\n",
expErrJSON: "Error: at least one selector is required\n",
},
{
name: "Missing parent SPIFFE ID",
args: []string{"-selector", "unix:uid:1"},
expErr: "Error: a parent ID is required if the node flag is not set\n",
name: "Missing parent SPIFFE ID",
args: []string{"-selector", "unix:uid:1"},
expErrPretty: "Error: a parent ID is required if the node flag is not set\n",
expErrJSON: "Error: a parent ID is required if the node flag is not set\n",
},
{
name: "Missing SPIFFE ID",
args: []string{"-selector", "unix:uid:1", "-parentID", "spiffe://example.org/parent"},
expErr: "Error: a SPIFFE ID is required\n",
name: "Missing SPIFFE ID",
args: []string{"-selector", "unix:uid:1", "-parentID", "spiffe://example.org/parent"},
expErrPretty: "Error: a SPIFFE ID is required\n",
expErrJSON: "Error: a SPIFFE ID is required\n",
},
{
name: "Wrong selectors",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload"},
expErr: "Error: selector \"unix\" must be formatted as type:value\n",
name: "Wrong selectors",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload"},
expErrPretty: "Error: selector \"unix\" must be formatted as type:value\n",
expErrJSON: "Error: selector \"unix\" must be formatted as type:value\n",
},
{
name: "Negative TTL",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "-10"},
expErr: "Error: a positive TTL is required\n",
name: "Negative X509SvidTtl",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-x509SVIDTTL", "-10"},
expErrPretty: "Error: a positive x509-SVID TTL is required\n",
expErrJSON: "Error: a positive x509-SVID TTL is required\n",
},
{
name: "Federated node entries",
args: []string{"-selector", "unix", "-spiffeID", "spiffe://example.org/workload", "-node", "-federatesWith", "spiffe://another.org"},
expErr: "Error: node entries can not federate\n",
name: "Negative jwtSVIDTTL",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-jwtSVIDTTL", "-10"},
expErrPretty: "Error: a positive JWT-SVID TTL is required\n",
expErrJSON: "Error: a positive JWT-SVID TTL is required\n",
},
{
name: "Federated node entries",
args: []string{"-selector", "unix", "-spiffeID", "spiffe://example.org/workload", "-node", "-federatesWith", "spiffe://another.org"},
expErrPretty: "Error: node entries can not federate\n",
expErrJSON: "Error: node entries can not federate\n",
},
{
name: "Server error",
@ -162,8 +213,9 @@ func TestCreate(t *testing.T) {
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1"}},
},
}},
serverErr: errors.New("server-error"),
expErr: "Error: rpc error: code = Unknown desc = server-error\n",
serverErr: errors.New("server-error"),
expErrPretty: "Error: rpc error: code = Unknown desc = server-error\n",
expErrJSON: "Error: rpc error: code = Unknown desc = server-error\n",
},
{
name: "Create succeeds using command line arguments",
@ -172,7 +224,117 @@ func TestCreate(t *testing.T) {
"-parentID", "spiffe://example.org/parent",
"-selector", "zebra:zebra:2000",
"-selector", "alpha:alpha:2000",
"-ttl", "60",
"-x509SVIDTTL", "60",
"-jwtSVIDTTL", "30",
"-federatesWith", "spiffe://domaina.test",
"-federatesWith", "spiffe://domainb.test",
"-admin",
"-entryExpiry", "1552410266",
"-dns", "unu1000",
"-dns", "ung1000",
"-downstream",
"-storeSVID",
"-hint", "internal",
},
expReq: &entryv1.BatchCreateEntryRequest{
Entries: []*types.Entry{
{
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/workload"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/parent"},
Selectors: []*types.Selector{
{Type: "zebra", Value: "zebra:2000"},
{Type: "alpha", Value: "alpha:2000"},
},
X509SvidTtl: 60,
JwtSvidTtl: 30,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
DnsNames: []string{"unu1000", "ung1000"},
Downstream: true,
StoreSvid: true,
Hint: "internal",
},
},
},
fakeResp: fakeRespOKFromCmd,
expOutPretty: fmt.Sprintf(`Entry ID : entry-id
SPIFFE ID : spiffe://example.org/workload
Parent ID : spiffe://example.org/parent
Revision : 0
Downstream : true
X509-SVID TTL : 60
JWT-SVID TTL : 30
Expiration time : %s
Selector : zebra:zebra:2000
Selector : alpha:alpha:2000
FederatesWith : spiffe://domaina.test
FederatesWith : spiffe://domainb.test
DNS name : unu1000
DNS name : ung1000
Admin : true
StoreSvid : true
`, time.Unix(1552410266, 0).UTC()),
expOutJSON: `{
"results": [
{
"status": {
"code": 0,
"message": "OK"
},
"entry": {
"id": "entry-id",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/workload"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/parent"
},
"selectors": [
{
"type": "zebra",
"value": "zebra:2000"
},
{
"type": "alpha",
"value": "alpha:2000"
}
],
"x509_svid_ttl": 60,
"federates_with": [
"spiffe://domaina.test",
"spiffe://domainb.test"
],
"hint": "",
"admin": true,
"created_at": "1547583197",
"downstream": true,
"expires_at": "1552410266",
"dns_names": [
"unu1000",
"ung1000"
],
"revision_number": "0",
"store_svid": true,
"jwt_svid_ttl": 30
}
}
]
}
`,
},
{
name: "Create succeeds with custom entry ID",
args: []string{
"-entryID", "entry-id",
"-spiffeID", "spiffe://example.org/workload",
"-parentID", "spiffe://example.org/parent",
"-selector", "zebra:zebra:2000",
"-selector", "alpha:alpha:2000",
"-x509SVIDTTL", "60",
"-federatesWith", "spiffe://domaina.test",
"-federatesWith", "spiffe://domainb.test",
"-admin",
@ -185,13 +347,14 @@ func TestCreate(t *testing.T) {
expReq: &entryv1.BatchCreateEntryRequest{
Entries: []*types.Entry{
{
Id: "entry-id",
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/workload"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/parent"},
Selectors: []*types.Selector{
{Type: "zebra", Value: "zebra:2000"},
{Type: "alpha", Value: "alpha:2000"},
},
Ttl: 60,
X509SvidTtl: 60,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
@ -201,13 +364,14 @@ func TestCreate(t *testing.T) {
},
},
},
fakeResp: fakeRespOKFromCmd,
expOut: fmt.Sprintf(`Entry ID : entry-id
fakeResp: fakeRespOKFromCmdWithoutJwtTtl,
expOutPretty: fmt.Sprintf(`Entry ID : entry-id
SPIFFE ID : spiffe://example.org/workload
Parent ID : spiffe://example.org/parent
Revision : 0
Downstream : true
TTL : 60
X509-SVID TTL : 60
JWT-SVID TTL : default
Expiration time : %s
Selector : zebra:zebra:2000
Selector : alpha:alpha:2000
@ -219,6 +383,54 @@ Admin : true
StoreSvid : true
`, time.Unix(1552410266, 0).UTC()),
expOutJSON: `{
"results": [
{
"status": {
"code": 0,
"message": "OK"
},
"entry": {
"id": "entry-id",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/workload"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/parent"
},
"selectors": [
{
"type": "zebra",
"value": "zebra:2000"
},
{
"type": "alpha",
"value": "alpha:2000"
}
],
"x509_svid_ttl": 60,
"federates_with": [
"spiffe://domaina.test",
"spiffe://domainb.test"
],
"hint": "",
"admin": true,
"created_at": "1547583197",
"downstream": true,
"expires_at": "1552410266",
"dns_names": [
"unu1000",
"ung1000"
],
"revision_number": "0",
"store_svid": true,
"jwt_svid_ttl": 0
}
}
]
}`,
},
{
name: "Create succeeds using data file",
@ -228,17 +440,20 @@ StoreSvid : true
expReq: &entryv1.BatchCreateEntryRequest{
Entries: []*types.Entry{
{
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Blog"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenBlog"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
Ttl: 200,
Admin: true,
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Blog"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenBlog"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
X509SvidTtl: 200,
JwtSvidTtl: 30,
Admin: true,
},
{
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Database"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenDatabase"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
Ttl: 200,
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/Database"},
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/spire/agent/join_token/TokenDatabase"},
Selectors: []*types.Selector{{Type: "unix", Value: "uid:1111"}},
X509SvidTtl: 200,
JwtSvidTtl: 30,
Hint: "internal",
},
{
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/storesvid"},
@ -247,17 +462,19 @@ StoreSvid : true
{Type: "type", Value: "key1:value"},
{Type: "type", Value: "key2:value"},
},
Ttl: 200,
StoreSvid: true,
X509SvidTtl: 200,
JwtSvidTtl: 30,
StoreSvid: true,
},
},
},
fakeResp: fakeRespOKFromFile,
expOut: `Entry ID : entry-id-1
expOutPretty: `Entry ID : entry-id-1
SPIFFE ID : spiffe://example.org/Blog
Parent ID : spiffe://example.org/spire/agent/join_token/TokenBlog
Revision : 0
TTL : 200
X509-SVID TTL : 200
JWT-SVID TTL : 30
Selector : unix:uid:1111
Admin : true
@ -265,19 +482,132 @@ Entry ID : entry-id-2
SPIFFE ID : spiffe://example.org/Database
Parent ID : spiffe://example.org/spire/agent/join_token/TokenDatabase
Revision : 0
TTL : 200
X509-SVID TTL : 200
JWT-SVID TTL : 30
Selector : unix:uid:1111
Hint : internal
Entry ID : entry-id-3
SPIFFE ID : spiffe://example.org/storesvid
Parent ID : spiffe://example.org/spire/agent/join_token/TokenDatabase
Revision : 0
TTL : 200
X509-SVID TTL : 200
JWT-SVID TTL : 30
Selector : type:key1:value
Selector : type:key2:value
StoreSvid : true
`,
expOutJSON: `{
"results": [
{
"status": {
"code": 0,
"message": "OK"
},
"entry": {
"id": "entry-id-1",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/Blog"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/spire/agent/join_token/TokenBlog"
},
"selectors": [
{
"type": "unix",
"value": "uid:1111"
}
],
"x509_svid_ttl": 200,
"federates_with": [],
"hint": "",
"admin": true,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 30
}
},
{
"status": {
"code": 0,
"message": "OK"
},
"entry": {
"id": "entry-id-2",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/Database"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/spire/agent/join_token/TokenDatabase"
},
"selectors": [
{
"type": "unix",
"value": "uid:1111"
}
],
"x509_svid_ttl": 200,
"federates_with": [],
"hint": "internal",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 30
}
},
{
"status": {
"code": 0,
"message": "OK"
},
"entry": {
"id": "entry-id-3",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/storesvid"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/spire/agent/join_token/TokenDatabase"
},
"selectors": [
{
"type": "type",
"value": "key1:value"
},
{
"type": "type",
"value": "key2:value"
}
],
"x509_svid_ttl": 200,
"federates_with": [],
"hint": "",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": true,
"jwt_svid_ttl": 30
}
}
]
}`,
},
{
name: "Entry already exist",
@ -290,34 +620,81 @@ StoreSvid : true
},
}},
fakeResp: fakeRespErr,
expErr: `Failed to create the following entry (code: AlreadyExists, msg: "similar entry already exists"):
expErrPretty: `Failed to create the following entry (code: AlreadyExists, msg: "similar entry already exists"):
Entry ID : (none)
SPIFFE ID : spiffe://example.org/already-exist
Parent ID : spiffe://example.org/spire/server
Revision : 0
TTL : default
X509-SVID TTL : default
JWT-SVID TTL : default
Selector : unix:uid:1
Error: failed to create one or more entries
`,
expOutJSON: `{
"results": [
{
"status": {
"code": 6,
"message": "similar entry already exists"
},
"entry": {
"id": "",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/already-exist"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/spire/server"
},
"selectors": [
{
"type": "unix",
"value": "uid:1"
}
],
"x509_svid_ttl": 0,
"federates_with": [],
"hint": "",
"admin": false,
"created_at": "0",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 0
}
}
]
}`,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newCreateCommand)
test.server.err = tt.serverErr
test.server.expBatchCreateEntryReq = tt.expReq
test.server.batchCreateEntryResp = tt.fakeResp
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newCreateCommand)
test.server.err = tt.serverErr
test.server.expBatchCreateEntryReq = tt.expReq
test.server.batchCreateEntryResp = tt.fakeResp
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
rc := test.client.Run(test.args(args...))
require.Equal(t, 0, rc)
require.Equal(t, tt.expOut, test.stdout.String())
})
if tt.expErrJSON != "" && format == "json" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErrJSON, test.stderr.String())
return
}
if tt.expErrPretty != "" && format == "pretty" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErrPretty, test.stderr.String())
return
}
require.Equal(t, 0, rc)
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expOutPretty, tt.expOutJSON)
})
}
}
}

View File

@ -1,31 +1,37 @@
package entry
import (
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"io"
"os"
"github.com/mitchellh/cli"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
serverutil "github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/util"
"google.golang.org/grpc/codes"
"golang.org/x/net/context"
)
// NewDeleteCommand creates a new "delete" subcommand for "entry" command.
func NewDeleteCommand() cli.Command {
return newDeleteCommand(common_cli.DefaultEnv)
return newDeleteCommand(commoncli.DefaultEnv)
}
func newDeleteCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(deleteCommand))
func newDeleteCommand(env *commoncli.Env) cli.Command {
return serverutil.AdaptCommand(env, &deleteCommand{env: env})
}
type deleteCommand struct {
// ID of the record to delete
entryID string
file string
env *commoncli.Env
printer cliprinter.Printer
}
func (*deleteCommand) Name() string {
@ -37,35 +43,109 @@ func (*deleteCommand) Synopsis() string {
}
func (c *deleteCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.entryID, "entryID", "", "The Registration Entry ID of the record to delete")
f.StringVar(&c.entryID, "entryID", "", "The Registration Entry ID of the record to delete.")
f.StringVar(&c.file, "file", "", "Path to a file containing a JSON structure for batch deletion (optional). If set to '-', read from stdin.")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, c.prettyPrintDelete)
}
func (c *deleteCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func parseEntryDeleteJSON(path string) ([]string, error) {
r := os.Stdin
if path != "-" {
f, err := os.Open(path)
if err != nil {
return nil, err
}
defer f.Close()
r = f
}
dat, err := io.ReadAll(r)
if err != nil {
return nil, err
}
batchDeleteEntryRequest := &entryv1.BatchDeleteEntryRequest{}
if err := json.Unmarshal(dat, batchDeleteEntryRequest); err != nil {
return nil, err
}
return batchDeleteEntryRequest.Ids, nil
}
func (c *deleteCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
req := &entryv1.BatchDeleteEntryRequest{Ids: []string{c.entryID}}
var err error
entriesIDs := []string{}
if c.file != "" {
entriesIDs, err = parseEntryDeleteJSON(c.file)
if err != nil {
return err
}
} else {
entriesIDs = append(entriesIDs, c.entryID)
}
req := &entryv1.BatchDeleteEntryRequest{Ids: entriesIDs}
resp, err := serverClient.NewEntryClient().BatchDeleteEntry(ctx, req)
if err != nil {
return err
}
sts := resp.Results[0].Status
switch sts.Code {
case int32(codes.OK):
env.Printf("Deleted entry with ID: %s\n", c.entryID)
return nil
default:
return fmt.Errorf("failed to delete entry: %s", sts.Message)
}
return c.printer.PrintProto(resp)
}
// Perform basic validation.
func (c *deleteCommand) validate() error {
if c.file != "" {
return nil
}
if c.entryID == "" {
return errors.New("an entry ID is required")
}
return nil
}
func (c *deleteCommand) prettyPrintDelete(env *commoncli.Env, results ...any) error {
deleteResp, ok := results[0].(*entryv1.BatchDeleteEntryResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
var failed, succeeded []*entryv1.BatchDeleteEntryResponse_Result
for _, result := range deleteResp.Results {
switch result.Status.Code {
case int32(codes.OK):
succeeded = append(succeeded, result)
default:
failed = append(failed, result)
}
}
for _, result := range succeeded {
env.Printf("Deleted entry with ID: %s\n", result.Id)
}
if len(succeeded) > 0 {
env.Printf("\n\n")
}
for _, result := range failed {
env.ErrPrintf("Failed to delete entry with ID %s (code: %s, msg: %q)\n",
result.Id,
util.MustCast[codes.Code](result.Status.Code),
result.Status.Message)
}
if len(failed) > 0 {
env.Printf("\n\n")
return errors.New("failed to delete one or more entries")
}
env.Printf("Deleted %d entries successfully, but failed to delete %d entries", len(succeeded), len(failed))
return nil
}

View File

@ -2,11 +2,11 @@ package entry
import (
"errors"
"fmt"
"testing"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
@ -15,9 +15,7 @@ func TestDeleteHelp(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.client.Help()
require.Equal(t, `Usage of entry delete:
-entryID string
The Registration Entry ID of the record to delete`+common.AddrUsage, test.stderr.String())
require.Equal(t, deleteUsage, test.stderr.String())
}
func TestDeleteSynopsis(t *testing.T) {
@ -26,18 +24,6 @@ func TestDeleteSynopsis(t *testing.T) {
}
func TestDelete(t *testing.T) {
fakeRespOK := &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
Id: "entry-id",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
},
}
fakeRespErr := &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
@ -58,51 +44,167 @@ func TestDelete(t *testing.T) {
fakeResp *entryv1.BatchDeleteEntryResponse
serverErr error
expOut string
expErr string
expOutPretty string
expOutJSON string
expErrPretty string
expErrJSON string
}{
{
name: "Empty entry ID",
expErr: "Error: an entry ID is required\n",
name: "Empty entry ID",
expErrPretty: "Error: an entry ID is required\n",
expErrJSON: "Error: an entry ID is required\n",
},
{
name: "Entry not found",
args: []string{"-entryID", "entry-id"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-id"}},
fakeResp: fakeRespErr,
expErr: "Error: failed to delete entry: entry not found\n",
expErrPretty: "Failed to delete entry with ID entry-id (code: NotFound, msg: \"entry not found\")" +
"\nError: failed to delete one or more entries\n",
expOutJSON: `{"results":[{"status":{"code":5,"message":"entry not found"},"id":"entry-id"}]}`,
},
{
name: "Server error",
args: []string{"-entryID", "entry-id"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-id"}},
serverErr: errors.New("server-error"),
expErr: "Error: rpc error: code = Unknown desc = server-error\n",
name: "Server error",
args: []string{"-entryID", "entry-id"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-id"}},
serverErr: errors.New("server-error"),
expErrPretty: "Error: rpc error: code = Unknown desc = server-error\n",
expErrJSON: "Error: rpc error: code = Unknown desc = server-error\n",
},
{
name: "Delete succeeds",
args: []string{"-entryID", "entry-id"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-id"}},
fakeResp: fakeRespOK,
expOut: "Deleted entry with ID: entry-id\n",
name: "Delete succeeded",
args: []string{"-entryID", "entry-0"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-0"}},
fakeResp: &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
Id: "entry-0",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
},
},
expOutPretty: "Deleted entry with ID: entry-0\n",
expOutJSON: `{"results":[{"status":{"code":0,"message":"OK"},"id":"entry-0"}]}`,
},
{
name: "Delete succeeded using data file",
args: []string{"-file", "../../../../test/fixture/registration/good-for-delete.json"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-0", "entry-1"}},
fakeResp: &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
Id: "entry-0",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
{
Id: "entry-1",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
},
},
expOutPretty: "Deleted entry with ID: entry-0\nDeleted entry with ID: entry-1\n",
expOutJSON: `{"results":[{"status":{"code":0,"message":"OK"},"id":"entry-0"},{"status":{"code":0,"message":"OK"},"id":"entry-1"}]}`,
},
{
name: "Delete partially succeeded",
args: []string{"-file", "../../../../test/fixture/registration/partially-good-for-delete.json"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-0", "entry-1", "entry-2", "entry-3"}},
fakeResp: &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
Id: "entry-0",
Status: &types.Status{
Code: int32(codes.NotFound),
Message: "entry not found",
},
},
{
Id: "entry-1",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
{
Id: "entry-2",
Status: &types.Status{
Code: int32(codes.NotFound),
Message: "entry not found",
},
},
{
Id: "entry-3",
Status: &types.Status{
Code: int32(codes.OK),
Message: "OK",
},
},
},
},
expOutPretty: "Deleted entry with ID: entry-1\nDeleted entry with ID: entry-3\n",
expErrPretty: "Failed to delete entry with ID entry-0 (code: NotFound, msg: \"entry not found\")\n" +
"Failed to delete entry with ID entry-2 (code: NotFound, msg: \"entry not found\")\n" +
"Error: failed to delete one or more entries\n",
expOutJSON: `{"results":[` +
`{"status":{"code":5,"message":"entry not found"},"id":"entry-0"},` +
`{"status":{"code":0,"message":"OK"},"id":"entry-1"},` +
`{"status":{"code":5,"message":"entry not found"},"id":"entry-2"},` +
`{"status":{"code":0,"message":"OK"},"id":"entry-3"}]}`,
},
{
name: "Delete failed",
args: []string{"-entryID", "entry-0"},
expReq: &entryv1.BatchDeleteEntryRequest{Ids: []string{"entry-0"}},
fakeResp: &entryv1.BatchDeleteEntryResponse{
Results: []*entryv1.BatchDeleteEntryResponse_Result{
{
Id: "entry-0",
Status: &types.Status{
Code: int32(codes.NotFound),
Message: "entry not found",
},
},
},
},
expErrPretty: "Failed to delete entry with ID entry-0 (code: NotFound, msg: \"entry not found\")\n" +
"Error: failed to delete one or more entries\n",
expOutJSON: `{"results":[` +
`{"status":{"code":5,"message":"entry not found"},"id":"entry-0"}]}`,
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.server.err = tt.serverErr
test.server.expBatchDeleteEntryReq = tt.expReq
test.server.batchDeleteEntryResp = tt.fakeResp
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newDeleteCommand)
test.server.err = tt.serverErr
test.server.expBatchDeleteEntryReq = tt.expReq
test.server.batchDeleteEntryResp = tt.fakeResp
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
rc := test.client.Run(test.args(args...))
require.Equal(t, 0, rc)
require.Equal(t, tt.expOut, test.stdout.String())
})
if tt.expErrJSON != "" && format == "json" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErrJSON, test.stderr.String())
return
}
if tt.expErrPretty != "" && format == "pretty" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErrPretty, test.stderr.String())
return
}
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expOutPretty, tt.expOutJSON)
require.Equal(t, 0, rc)
})
}
}
}

View File

@ -1,6 +1,7 @@
package entry
import (
"context"
"errors"
"flag"
"fmt"
@ -9,21 +10,21 @@ import (
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
commonutil "github.com/spiffe/spire/pkg/common/util"
"golang.org/x/net/context"
"google.golang.org/protobuf/types/known/wrapperspb"
)
const listEntriesRequestPageSize = 500
// NewShowCommand creates a new "show" subcommand for "entry" command.
func NewShowCommand() cli.Command {
return newShowCommand(common_cli.DefaultEnv)
return newShowCommand(commoncli.DefaultEnv)
}
func newShowCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(showCommand))
func newShowCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &showCommand{env: env})
}
type showCommand struct {
@ -40,10 +41,13 @@ type showCommand struct {
// Workload spiffeID
spiffeID string
// Entry hint
hint string
// List of SPIFFE IDs of trust domains the registration entry is federated with
federatesWith StringsFlag
// Whether or not the entry is for a downstream SPIRE server
// whether the entry is for a downstream SPIRE server
downstream bool
// Match used when filtering by federates with
@ -51,6 +55,10 @@ type showCommand struct {
// Match used when filtering by selectors
matchSelectorsOn string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *showCommand) Name() string {
@ -70,23 +78,24 @@ func (c *showCommand) AppendFlags(f *flag.FlagSet) {
f.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain an entry is federate with. Can be used more than once")
f.StringVar(&c.matchFederatesWithOn, "matchFederatesWithOn", "superset", "The match mode used when filtering by federates with. Options: exact, any, superset and subset")
f.StringVar(&c.matchSelectorsOn, "matchSelectorsOn", "superset", "The match mode used when filtering by selectors. Options: exact, any, superset and subset")
f.StringVar(&c.hint, "hint", "", "The Hint of the records to show (optional)")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintShow)
}
// Run executes all logic associated with a single invocation of the
// `spire-server entry show` CLI command
func (c *showCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *showCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
entries, err := c.fetchEntries(ctx, serverClient.NewEntryClient())
resp, err := c.fetchEntries(ctx, serverClient.NewEntryClient())
if err != nil {
return err
}
commonutil.SortTypesEntries(entries)
printEntries(entries, env)
return nil
commonutil.SortTypesEntries(resp.Entries)
return c.printer.PrintProto(resp)
}
// validate ensures that the values in showCommand are valid
@ -101,14 +110,16 @@ func (c *showCommand) validate() error {
return nil
}
func (c *showCommand) fetchEntries(ctx context.Context, client entryv1.EntryClient) ([]*types.Entry, error) {
func (c *showCommand) fetchEntries(ctx context.Context, client entryv1.EntryClient) (*entryv1.ListEntriesResponse, error) {
listResp := &entryv1.ListEntriesResponse{}
// If an Entry ID was specified, look it up directly
if c.entryID != "" {
entry, err := c.fetchByEntryID(ctx, c.entryID, client)
if err != nil {
return nil, fmt.Errorf("error fetching entry ID %s: %w", c.entryID, err)
}
return []*types.Entry{entry}, nil
listResp.Entries = append(listResp.Entries, entry)
return listResp, nil
}
filter := &entryv1.ListEntriesRequest_Filter{}
@ -160,8 +171,13 @@ func (c *showCommand) fetchEntries(ctx context.Context, client entryv1.EntryClie
}
}
if c.hint != "" {
filter.ByHint = wrapperspb.String(c.hint)
}
filter.ByDownstream = wrapperspb.Bool(c.downstream)
pageToken := ""
var entries []*types.Entry
for {
resp, err := client.ListEntries(ctx, &entryv1.ListEntriesRequest{
@ -172,13 +188,13 @@ func (c *showCommand) fetchEntries(ctx context.Context, client entryv1.EntryClie
if err != nil {
return nil, fmt.Errorf("error fetching entries: %w", err)
}
entries = append(entries, resp.Entries...)
listResp.Entries = append(listResp.Entries, resp.Entries...)
if pageToken = resp.NextPageToken; pageToken == "" {
break
}
}
return entries, nil
return listResp, nil
}
// fetchByEntryID uses the configured EntryID to fetch the appropriate registration entry
@ -191,7 +207,7 @@ func (c *showCommand) fetchByEntryID(ctx context.Context, id string, client entr
return entry, nil
}
func printEntries(entries []*types.Entry, env *common_cli.Env) {
func printEntries(entries []*types.Entry, env *commoncli.Env) {
msg := fmt.Sprintf("Found %v ", len(entries))
msg = util.Pluralizer(msg, "entry", "entries", len(entries))
@ -230,3 +246,12 @@ func parseToFederatesWithMatch(match string) (types.FederatesWithMatch_MatchBeha
return types.FederatesWithMatch_MATCH_SUPERSET, fmt.Errorf("match behavior %q unknown", match)
}
}
func prettyPrintShow(env *commoncli.Env, results ...any) error {
listResp, ok := results[0].(*entryv1.ListEntriesResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
printEntries(listResp.Entries, env)
return nil
}

View File

@ -10,6 +10,7 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/wrapperspb"
)
func TestShowHelp(t *testing.T) {
@ -53,29 +54,39 @@ func TestShow(t *testing.T) {
serverErr error
expOut string
expErr string
expOutPretty string
expOutJSON string
expErr string
}{
{
name: "List all entries (empty filter)",
expListReq: &entryv1.ListEntriesRequest{
PageSize: listEntriesRequestPageSize,
Filter: &entryv1.ListEntriesRequest_Filter{},
Filter: &entryv1.ListEntriesRequest_Filter{
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespAll,
expOut: fmt.Sprintf("Found 4 entries\n%s%s%s%s",
getPrintedEntry(1),
getPrintedEntry(2),
getPrintedEntry(0),
getPrintedEntry(3),
expOutPretty: fmt.Sprintf("Found 4 entries\n%s%s%s%s",
getPrettyPrintedEntry(1),
getPrettyPrintedEntry(2),
getPrettyPrintedEntry(0),
getPrettyPrintedEntry(3),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s,%s,%s,%s],"next_page_token": ""}`,
getJSONPrintedEntry(1),
getJSONPrintedEntry(2),
getJSONPrintedEntry(0),
getJSONPrintedEntry(3),
),
},
{
name: "List by entry ID",
args: []string{"-entryID", getEntries(1)[0].Id},
expGetReq: &entryv1.GetEntryRequest{Id: getEntries(1)[0].Id},
fakeGetResp: getEntries(1)[0],
expOut: fmt.Sprintf("Found 1 entry\n%s", getPrintedEntry(0)),
name: "List by entry ID",
args: []string{"-entryID", getEntries(1)[0].Id},
expGetReq: &entryv1.GetEntryRequest{Id: getEntries(1)[0].Id},
fakeGetResp: getEntries(1)[0],
expOutPretty: fmt.Sprintf("Found 1 entry\n%s", getPrettyPrintedEntry(0)),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(0)),
},
{
name: "List by entry ID not found",
@ -95,14 +106,16 @@ func TestShow(t *testing.T) {
expListReq: &entryv1.ListEntriesRequest{
PageSize: listEntriesRequestPageSize,
Filter: &entryv1.ListEntriesRequest_Filter{
ByParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/father"},
ByParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/father"},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFather,
expOut: fmt.Sprintf("Found 2 entries\n%s%s",
getPrintedEntry(1),
getPrintedEntry(0),
expOutPretty: fmt.Sprintf("Found 2 entries\n%s%s",
getPrettyPrintedEntry(1),
getPrettyPrintedEntry(0),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s,%s],"next_page_token": ""}`, getJSONPrintedEntry(1), getJSONPrintedEntry(0)),
},
{
name: "List by parent ID using invalid ID",
@ -115,14 +128,16 @@ func TestShow(t *testing.T) {
expListReq: &entryv1.ListEntriesRequest{
PageSize: listEntriesRequestPageSize,
Filter: &entryv1.ListEntriesRequest_Filter{
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespDaughter,
expOut: fmt.Sprintf("Found 2 entries\n%s%s",
getPrintedEntry(1),
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 2 entries\n%s%s",
getPrettyPrintedEntry(1),
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s, %s],"next_page_token": ""}`, getJSONPrintedEntry(1), getJSONPrintedEntry(2)),
},
{
name: "List by SPIFFE ID using invalid ID",
@ -142,12 +157,14 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(1),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(1),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(1)),
},
{
name: "List by selectors: exact matcher",
@ -162,12 +179,14 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(1),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(1),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(1)),
},
{
name: "List by selectors: superset matcher",
@ -182,12 +201,14 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(1),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(1),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(1)),
},
{
name: "List by selectors: subset matcher",
@ -202,12 +223,14 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(1),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(1),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(1)),
},
{
name: "List by selectors: Any matcher",
@ -222,12 +245,14 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(1),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(1),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(1)),
},
{
name: "List by selectors: Invalid matcher",
@ -245,7 +270,8 @@ func TestShow(t *testing.T) {
expListReq: &entryv1.ListEntriesRequest{
PageSize: listEntriesRequestPageSize,
Filter: &entryv1.ListEntriesRequest_Filter{
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
BySpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
ByDownstream: wrapperspb.Bool(false),
},
},
serverErr: status.Error(codes.Internal, "internal server error"),
@ -261,12 +287,14 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(2)),
},
{
name: "List by Federates With: exact matcher",
@ -278,12 +306,14 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(2)),
},
{
name: "List by Federates With: Any matcher",
@ -295,12 +325,14 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(2)),
},
{
name: "List by Federates With: superset matcher",
@ -312,12 +344,14 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(2)),
},
{
name: "List by Federates With: subset matcher",
@ -329,12 +363,14 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
expOut: fmt.Sprintf("Found 1 entry\n%s",
getPrintedEntry(2),
expOutPretty: fmt.Sprintf("Found 1 entry\n%s",
getPrettyPrintedEntry(2),
),
expOutJSON: fmt.Sprintf(`{"entries": [%s],"next_page_token": ""}`, getJSONPrintedEntry(2)),
},
{
name: "List by Federates With: Invalid matcher",
@ -342,25 +378,27 @@ func TestShow(t *testing.T) {
expErr: "Error: match behavior \"NO-MATCHER\" unknown\n",
},
} {
tt := tt
t.Run(tt.name, func(t *testing.T) {
test := setupTest(t, newShowCommand)
test.server.err = tt.serverErr
test.server.expListEntriesReq = tt.expListReq
test.server.listEntriesResp = tt.fakeListResp
test.server.expGetEntryReq = tt.expGetReq
test.server.getEntryResp = tt.fakeGetResp
for _, format := range availableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := setupTest(t, newShowCommand)
test.server.err = tt.serverErr
test.server.expListEntriesReq = tt.expListReq
test.server.listEntriesResp = tt.fakeListResp
test.server.expGetEntryReq = tt.expGetReq
test.server.getEntryResp = tt.fakeGetResp
args := tt.args
args = append(args, "-output", format)
rc := test.client.Run(test.args(tt.args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
require.Equal(t, 0, rc)
require.Equal(t, tt.expOut, test.stdout.String())
})
rc := test.client.Run(test.args(args...))
if tt.expErr != "" {
require.Equal(t, 1, rc)
require.Equal(t, tt.expErr, test.stderr.String())
return
}
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expOutPretty, tt.expOutJSON)
require.Equal(t, 0, rc)
})
}
}
}
@ -377,12 +415,16 @@ func getEntries(count int) []*types.Entry {
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/son"},
Selectors: []*types.Selector{selectors[0]},
Id: "00000000-0000-0000-0000-000000000000",
Hint: "internal",
CreatedAt: 1547583197,
},
{
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/father"},
SpiffeId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/daughter"},
Selectors: []*types.Selector{selectors[0], selectors[1]},
Id: "00000000-0000-0000-0000-000000000001",
Hint: "external",
CreatedAt: 1547583197,
},
{
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/mother"},
@ -390,6 +432,7 @@ func getEntries(count int) []*types.Entry {
Selectors: []*types.Selector{selectors[1], selectors[2]},
Id: "00000000-0000-0000-0000-000000000002",
FederatesWith: []string{"spiffe://domain.test"},
CreatedAt: 1547583197,
},
{
ParentId: &types.SPIFFEID{TrustDomain: "example.org", Path: "/mother"},
@ -397,26 +440,29 @@ func getEntries(count int) []*types.Entry {
Selectors: []*types.Selector{selectors[2]},
ExpiresAt: 1552410266,
Id: "00000000-0000-0000-0000-000000000003",
CreatedAt: 1547583197,
},
}
e := []*types.Entry{}
for i := 0; i < count; i++ {
for i := range count {
e = append(e, entries[i])
}
return e
}
func getPrintedEntry(idx int) string {
func getPrettyPrintedEntry(idx int) string {
switch idx {
case 0:
return `Entry ID : 00000000-0000-0000-0000-000000000000
SPIFFE ID : spiffe://example.org/son
Parent ID : spiffe://example.org/father
Revision : 0
TTL : default
X509-SVID TTL : default
JWT-SVID TTL : default
Selector : foo:bar
Hint : internal
`
case 1:
@ -424,9 +470,11 @@ Selector : foo:bar
SPIFFE ID : spiffe://example.org/daughter
Parent ID : spiffe://example.org/father
Revision : 0
TTL : default
X509-SVID TTL : default
JWT-SVID TTL : default
Selector : bar:baz
Selector : foo:bar
Hint : external
`
case 2:
@ -434,7 +482,8 @@ Selector : foo:bar
SPIFFE ID : spiffe://example.org/daughter
Parent ID : spiffe://example.org/mother
Revision : 0
TTL : default
X509-SVID TTL : default
JWT-SVID TTL : default
Selector : bar:baz
Selector : baz:bat
FederatesWith : spiffe://domain.test
@ -445,7 +494,8 @@ FederatesWith : spiffe://domain.test
SPIFFE ID : spiffe://example.org/son
Parent ID : spiffe://example.org/mother
Revision : 0
TTL : default
X509-SVID TTL : default
JWT-SVID TTL : default
Expiration time : %s
Selector : baz:bat
@ -454,3 +504,136 @@ Selector : baz:bat
return "index should be lower than 4"
}
}
func getJSONPrintedEntry(idx int) string {
switch idx {
case 0:
return `{
"id": "00000000-0000-0000-0000-000000000000",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/son"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/father"
},
"selectors": [
{
"type": "foo",
"value": "bar"
}
],
"x509_svid_ttl": 0,
"federates_with": [],
"hint": "internal",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 0
}`
case 1:
return `{
"id": "00000000-0000-0000-0000-000000000001",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/daughter"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/father"
},
"selectors": [
{
"type": "bar",
"value": "baz"
},
{
"type": "foo",
"value": "bar"
}
],
"x509_svid_ttl": 0,
"federates_with": [],
"hint": "external",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 0
}`
case 2:
return `{
"id": "00000000-0000-0000-0000-000000000002",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/daughter"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/mother"
},
"selectors": [
{
"type": "bar",
"value": "baz"
},
{
"type": "baz",
"value": "bat"
}
],
"x509_svid_ttl": 0,
"federates_with": [
"spiffe://domain.test"
],
"hint": "",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "0",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 0
}`
case 3:
return `{
"id": "00000000-0000-0000-0000-000000000003",
"spiffe_id": {
"trust_domain": "example.org",
"path": "/son"
},
"parent_id": {
"trust_domain": "example.org",
"path": "/mother"
},
"selectors": [
{
"type": "baz",
"value": "bat"
}
],
"x509_svid_ttl": 0,
"federates_with": [],
"hint": "",
"admin": false,
"created_at": "1547583197",
"downstream": false,
"expires_at": "1552410266",
"dns_names": [],
"revision_number": "0",
"store_svid": false,
"jwt_svid_ttl": 0
}`
default:
return "index should be lower than 4"
}
}

View File

@ -1,26 +1,28 @@
package entry
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
common_cli "github.com/spiffe/spire/pkg/common/cli"
serverutil "github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
"github.com/spiffe/spire/pkg/common/util"
"google.golang.org/grpc/codes"
"golang.org/x/net/context"
)
// NewUpdateCommand creates a new "update" subcommand for "entry" command.
func NewUpdateCommand() cli.Command {
return newUpdateCommand(common_cli.DefaultEnv)
return newUpdateCommand(commoncli.DefaultEnv)
}
func newUpdateCommand(env *common_cli.Env) cli.Command {
return util.AdaptCommand(env, new(updateCommand))
func newUpdateCommand(env *commoncli.Env) cli.Command {
return serverutil.AdaptCommand(env, &updateCommand{env: env})
}
type updateCommand struct {
@ -41,16 +43,19 @@ type updateCommand struct {
// Workload spiffeID
spiffeID string
// Whether or not the entry is for a downstream SPIRE server
// whether the entry is for a downstream SPIRE server
downstream bool
// TTL for certificates issued to this workload
ttl int
// TTL for x509 SVIDs issued to this workload
x509SvidTTL int
// TTL for JWT SVIDs issued to this workload
jwtSvidTTL int
// List of SPIFFE IDs of trust domains the registration entry is federated with
federatesWith StringsFlag
// Whether or not the registration entry is for an "admin" workload
// whether the registration entry is for an "admin" workload
admin bool
// Expiry of entry
@ -61,6 +66,13 @@ type updateCommand struct {
// storeSVID determines if the issued SVID must be stored through an SVIDStore plugin
storeSVID bool
// Entry hint, used to disambiguate entries with the same SPIFFE ID
hint string
printer cliprinter.Printer
env *commoncli.Env
}
func (*updateCommand) Name() string {
@ -75,7 +87,8 @@ func (c *updateCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.entryID, "entryID", "", "The Registration Entry ID of the record to update")
f.StringVar(&c.parentID, "parentID", "", "The SPIFFE ID of this record's parent")
f.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID that this record represents")
f.IntVar(&c.ttl, "ttl", 0, "The lifetime, in seconds, for SVIDs issued based on this registration entry")
f.IntVar(&c.x509SvidTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.")
f.IntVar(&c.jwtSvidTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.")
f.StringVar(&c.path, "data", "", "Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.")
f.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
f.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain to federate with. Can be used more than once")
@ -84,9 +97,11 @@ func (c *updateCommand) AppendFlags(f *flag.FlagSet) {
f.BoolVar(&c.storeSVID, "storeSVID", false, "A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin")
f.Int64Var(&c.entryExpiry, "entryExpiry", 0, "An expiry, from epoch in seconds, for the resulting registration entry to be pruned")
f.Var(&c.dnsNames, "dns", "A DNS name that will be included in SVIDs issued based on this entry, where appropriate. Can be used more than once")
f.StringVar(&c.hint, "hint", "", "The entry hint, used to disambiguate entries with the same SPIFFE ID")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintUpdate)
}
func (c *updateCommand) Run(ctx context.Context, env *common_cli.Env, serverClient util.ServerClient) error {
func (c *updateCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
@ -102,29 +117,12 @@ func (c *updateCommand) Run(ctx context.Context, env *common_cli.Env, serverClie
return err
}
succeeded, failed, err := updateEntries(ctx, serverClient.NewEntryClient(), entries)
resp, err := updateEntries(ctx, serverClient.NewEntryClient(), entries)
if err != nil {
return err
}
// Print entries that succeeded to be updated
for _, e := range succeeded {
printEntry(e.Entry, env.Printf)
}
// Print entries that failed to be updated
for _, r := range failed {
env.ErrPrintf("Failed to update the following entry (code: %s, msg: %q):\n",
codes.Code(r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}
if len(failed) > 0 {
return errors.New("failed to update one or more entries")
}
return nil
return c.printer.PrintProto(resp)
}
// validate performs basic validation, even on fields that we
@ -151,8 +149,12 @@ func (c *updateCommand) validate() (err error) {
return errors.New("a SPIFFE ID is required")
}
if c.ttl < 0 {
return errors.New("a positive TTL is required")
if c.x509SvidTTL < 0 {
return errors.New("a positive x509-SVID TTL is required")
}
if c.jwtSvidTTL < 0 {
return errors.New("a positive JWT-SVID TTL is required")
}
return nil
@ -169,19 +171,31 @@ func (c *updateCommand) parseConfig() ([]*types.Entry, error) {
return nil, err
}
x509SvidTTL, err := util.CheckedCast[int32](c.x509SvidTTL)
if err != nil {
return nil, fmt.Errorf("invalid value for X509 SVID TTL: %w", err)
}
jwtSvidTTL, err := util.CheckedCast[int32](c.jwtSvidTTL)
if err != nil {
return nil, fmt.Errorf("invalid value for JWT SVID TTL: %w", err)
}
e := &types.Entry{
Id: c.entryID,
ParentId: parentID,
SpiffeId: spiffeID,
Ttl: int32(c.ttl),
Downstream: c.downstream,
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
Id: c.entryID,
ParentId: parentID,
SpiffeId: spiffeID,
Downstream: c.downstream,
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
X509SvidTtl: x509SvidTTL,
JwtSvidTtl: jwtSvidTTL,
Hint: c.hint,
}
selectors := []*types.Selector{}
for _, s := range c.selectors {
cs, err := util.ParseSelector(s)
cs, err := serverutil.ParseSelector(s)
if err != nil {
return nil, err
}
@ -196,25 +210,56 @@ func (c *updateCommand) parseConfig() ([]*types.Entry, error) {
return []*types.Entry{e}, nil
}
func updateEntries(ctx context.Context, c entryv1.EntryClient, entries []*types.Entry) (succeeded, failed []*entryv1.BatchUpdateEntryResponse_Result, err error) {
resp, err := c.BatchUpdateEntry(ctx, &entryv1.BatchUpdateEntryRequest{
func updateEntries(ctx context.Context, c entryv1.EntryClient, entries []*types.Entry) (resp *entryv1.BatchUpdateEntryResponse, err error) {
resp, err = c.BatchUpdateEntry(ctx, &entryv1.BatchUpdateEntryRequest{
Entries: entries,
})
if err != nil {
return nil, nil, err
return
}
for i, r := range resp.Results {
if r.Status.Code != int32(codes.OK) {
// The Entry API does not include in the results the entries that
// failed to be updated, so we populate them from the request data.
r.Entry = entries[i]
}
}
return
}
func prettyPrintUpdate(env *commoncli.Env, results ...any) error {
var succeeded, failed []*entryv1.BatchUpdateEntryResponse_Result
updateResp, ok := results[0].(*entryv1.BatchUpdateEntryResponse)
if !ok {
return cliprinter.ErrInternalCustomPrettyFunc
}
for _, r := range updateResp.Results {
switch r.Status.Code {
case int32(codes.OK):
succeeded = append(succeeded, r)
default:
// The Entry API does not include in the results the entries that
// failed to be updated, so we populate them from the request data.
r.Entry = entries[i]
failed = append(failed, r)
}
}
// Print entries that succeeded to be updated
for _, e := range succeeded {
printEntry(e.Entry, env.Printf)
}
return succeeded, failed, nil
// Print entries that failed to be updated
for _, r := range failed {
env.ErrPrintf("Failed to update the following entry (code: %s, msg: %q):\n",
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}
if len(failed) > 0 {
return errors.New("failed to update one or more entries")
}
return nil
}

Some files were not shown because too many files have changed in this diff Show More