Compare commits

...

766 Commits
v1.9.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
1039 changed files with 52271 additions and 19766 deletions

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

@ -10,6 +10,6 @@ jobs:
steps:
- name: 'Checkout Repository'
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

View File

@ -10,29 +10,26 @@ env:
jobs:
build-and-publish-images:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
packages: write
env:
COSIGN_EXPERIMENTAL: 1
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
with:
cosign-release: v1.13.1
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Build images
run: make images
- name: Log in to GHCR
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}

View File

@ -2,15 +2,16 @@ name: PR Build
on:
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: 1.21.8
merge_group:
types:
- checks_requested
permissions:
contents: read
jobs:
cache-deps:
name: cache-deps (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
@ -18,13 +19,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -33,7 +34,7 @@ jobs:
lint:
name: lint (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: cache-deps
timeout-minutes: 30
@ -42,18 +43,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
@ -69,7 +70,7 @@ jobs:
unit-test:
strategy:
matrix:
OS: [ubuntu-20.04, macos-latest]
OS: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.OS }}
needs: cache-deps
timeout-minutes: 30
@ -79,13 +80,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -94,7 +95,7 @@ jobs:
unit-test-race-detector:
name: unit-test (linux with race detection)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: cache-deps
timeout-minutes: 30
@ -103,13 +104,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -118,7 +119,7 @@ jobs:
artifacts:
name: artifacts (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps, images]
timeout-minutes: 30
@ -127,15 +128,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -145,14 +146,14 @@ jobs:
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Archive artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries-linux
path: ./artifacts/
images:
name: images (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps]
timeout-minutes: 30
@ -161,31 +162,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3.1.0
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Build images
run: make images-no-load
- name: Export images
run: tar -czvf images.tar.gz *-image.tar
- name: Archive images
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images
path: images.tar.gz
@ -201,12 +202,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Load cached executables
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./bin/
key: ${{ runner.os }}-executables-${{ hashFiles('**/*.exe') }}
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Build images
run: make images-windows
- name: Export images
@ -214,20 +215,20 @@ 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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images-windows
path: images-windows.tar.gz
build-matrix:
name: Build matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: set-matrix
name: Collect versions
run: |
@ -238,10 +239,9 @@ jobs:
outputs:
test: ${{ steps.set-matrix.outputs.test }}
integration:
name: integration (linux)
runs-on: ubuntu-20.04
name: integration (${{ matrix.arch }}) (${{ strategy.job-index}}/${{ strategy.job-total }})
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images]
timeout-minutes: 45
@ -251,11 +251,17 @@ jobs:
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
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
@ -263,23 +269,23 @@ jobs:
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -293,13 +299,12 @@ jobs:
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
runs-on: ubuntu-20.04
name: integration-k8s-${{ matrix.test[0] }}-${{ matrix.arch }}
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images, build-matrix]
timeout-minutes: 45
@ -309,13 +314,21 @@ jobs:
strategy:
fail-fast: false
matrix:
num_runners: [1]
runner_id: [1]
#Test elements should be added as [KubeCTLVersion, K8s-image, KindVersion]
test: ${{ fromJson(needs.build-matrix.outputs.test) }}
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
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
@ -323,23 +336,23 @@ jobs:
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -365,6 +378,11 @@ jobs:
needs: images-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
@ -373,23 +391,24 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -397,7 +416,7 @@ jobs:
install: >-
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Download archived images
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images-windows
path: .
@ -412,18 +431,24 @@ jobs:
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -436,6 +461,11 @@ jobs:
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
@ -444,23 +474,24 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -479,6 +510,11 @@ jobs:
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
@ -487,18 +523,19 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -513,6 +550,11 @@ jobs:
needs: cache-deps-windows
timeout-minutes: 45
env:
GOPATH: 'D:\golang\go'
GOCACHE: 'D:\golang\cache'
GOMODCACHE: 'D:\golang\modcache'
permissions:
contents: read
@ -521,23 +563,24 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -546,21 +589,21 @@ jobs:
- name: Build binaries
run: make build
- name: Setup executables cache
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./bin/
key: ${{ runner.os }}-executables-${{ hashFiles('**/*.exe') }}
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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries-windows
path: ./artifacts/
success:
runs-on: ubuntu-20.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, lint-windows, unit-test-windows, artifacts-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]
timeout-minutes: 30
permissions:
contents: read

View File

@ -3,25 +3,23 @@ on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]+'
env:
GO_VERSION: 1.21.8
jobs:
cache-deps:
name: cache-deps (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -30,7 +28,7 @@ jobs:
lint:
name: lint (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: cache-deps
permissions:
@ -38,18 +36,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
@ -65,7 +63,7 @@ jobs:
unit-test:
strategy:
matrix:
OS: [ubuntu-20.04, macos-latest]
OS: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.OS }}
needs: cache-deps
@ -74,13 +72,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -89,7 +87,7 @@ jobs:
unit-test-race-detector:
name: unit-test (linux with race detection)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: cache-deps
permissions:
@ -97,13 +95,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -112,7 +110,7 @@ jobs:
artifacts:
name: artifacts (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps, images]
timeout-minutes: 30
@ -121,15 +119,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -139,14 +137,14 @@ jobs:
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Archive artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries-linux
path: ./artifacts/
images:
name: images (linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
@ -154,18 +152,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
@ -174,7 +172,7 @@ jobs:
- name: Export images
run: tar -czvf images.tar.gz *-image.tar
- name: Archive images
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images
path: images.tar.gz
@ -189,12 +187,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Load cached executables
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./bin/
key: ${{ runner.os }}-executables-${{ hashFiles('**/*.exe') }}
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Build images
run: make images-windows
- name: Export images
@ -202,20 +200,20 @@ 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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: images-windows
path: images-windows.tar.gz
build-matrix:
name: Build matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [cache-deps]
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: set-matrix
name: Collect versions
run: |
@ -227,9 +225,10 @@ jobs:
test: ${{ steps.set-matrix.outputs.test }}
integration:
name: integration (linux)
runs-on: ubuntu-20.04
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
@ -237,11 +236,17 @@ jobs:
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
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
@ -258,23 +263,23 @@ jobs:
- name: Fix tag annotations
run: git fetch --tags --force
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -287,14 +292,15 @@ jobs:
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
runs-on: ubuntu-20.04
name: integration-k8s-${{ matrix.test[0] }}-${{ matrix.arch }}
runs-on: ${{ matrix.runs-on }}
needs: [cache-deps, images, build-matrix]
timeout-minutes: 45
@ -304,13 +310,21 @@ jobs:
strategy:
fail-fast: false
matrix:
num_runners: [1]
runner_id: [1]
#Test elements should be added as [KubeCTLVersion, K8s-image, KindVersion]
test: ${{ fromJson(needs.build-matrix.outputs.test) }}
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
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
@ -318,23 +332,23 @@ jobs:
# fetch depth of zero.
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Load cached deps
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
@ -366,23 +380,23 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -390,7 +404,7 @@ jobs:
install: >-
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Download archived images
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images-windows
path: .
@ -409,13 +423,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@ -435,23 +449,23 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -477,18 +491,18 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -510,23 +524,23 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .build
key: ${{ runner.os }}-tools-${{ hashFiles('.go-version','Makefile') }}
- name: Install msys2
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
uses: msys2/setup-msys2@d44ca8e88d8b43d56cf5670f91747359d5537f97 # v2.26.0
with:
msystem: MINGW64
update: true
@ -537,32 +551,32 @@ jobs:
- name: Build artifacts
run: ./.github/workflows/scripts/build_artifacts.sh ${{ runner.os }}
- name: Setup executables cache
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./bin/
key: ${{ runner.os }}-executables-${{ hashFiles('**/*.exe') }}
key: ${{ runner.os }}-executables-${{ github.sha }}
- name: Archive artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: binaries-windows
path: ./artifacts/
publish-artifacts:
runs-on: ubuntu-20.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, lint-windows, unit-test-windows, artifacts-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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download archived Linux artifacts
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: binaries-linux
path: ./artifacts/
- name: Download archived Windows artifacts
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: binaries-windows
path: ./artifacts/
@ -570,7 +584,7 @@ jobs:
- 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
@ -580,32 +594,29 @@ jobs:
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-20.04
needs: [lint, unit-test, unit-test-race-detector, artifacts, integration, lint-windows, unit-test-windows, artifacts-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: read
id-token: write
packages: write
env:
COSIGN_EXPERIMENTAL: 1
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
with:
cosign-release: v1.13.1
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@b6614f5f56245066b533343a85f4109bdc38c8cc # main
uses: regclient/actions/regctl-installer@ce5fd131e371ffcdd7508b478cb223b3511a9183 # main
- name: Download archived images
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: images
path: .
- name: Log in to GHCR
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}

View File

@ -23,6 +23,13 @@
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)

View File

@ -68,5 +68,5 @@ for img in "${OCI_IMAGES[@]}"; do
image_digest="$(jq -r '.manifests[0].digest' "${ROOTDIR}oci/${img}/index.json")"
cosign sign "${registry}/${img}@${image_digest}"
cosign sign -y "${registry}/${img}@${image_digest}"
done

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

View File

@ -18,7 +18,7 @@ for FILE in test/integration/suites/k8s*; 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

View File

@ -16,7 +16,24 @@ jobs:
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

View File

@ -1 +1 @@
1.21.8
1.24.4

View File

@ -1,31 +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"
linters:
enable:
- bodyclose
- copyloopvar
- durationcheck
- errorlint
- goimports
- revive
- exptostd
- gocritic
- gosec
- intrange
- mirror
- misspell
- nakedret
- nilnesserr
- nolintlint
- predeclared
- reassign
- revive
- unconvert
- unparam
- wastedassign
- whitespace
- gocritic
- 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

View File

@ -1,3 +1,3 @@
golangci_lint v1.55.0
golangci-lint v2.1.6
markdown_lint v0.37.0
protoc 24.4
protoc 29.4

View File

@ -20,6 +20,7 @@ Known end users with notable contributions to the advancement of the project inc
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

View File

@ -1,5 +1,305 @@
# Changelog
## [1.12.4] - 2025-07-01
### Added
- `k8s_configmap` BundlePublisher plugin (#6105, #6139)
- UpstreamAuthority.SubscribeToLocalBundle RPC to stream updates in the local trust bundle (#6090)
- Integration tests running on ARM64 platform (#6059)
- The OIDC Discovery Provider can now read the trust bundle from a file (#6025)
### Changed
- The "Container id not found" log message in the `k8s` WorkloadAttestor has been lowered to Debug level (#6128)
- Improvements in lookup performance for entries (#6100, #6034)
- Agent no longer pulls the bundle from `trust_bundle_url` if it is not required (#6065)
### Fixed
- The `subject_types_supported` value in the discovery document is now properly populated by the OIDC Discovery Provider (#6126)
- SPIRE Server gRPC servers are now gracefully stopped (#6076)
## [1.12.3] - 2025-06-17
### Security
- Fixed an issue in spire-agent where the WorkloadAPI.ValidateJWTSVID endpoint did not enforce the presence of the exp (expiration) claim in JWT-SVIDs, as required by the SPIFFE specification.
This vulnerability has limited impact: by default, SPIRE does not issue JWT-SVIDs without an expiration claim. Exploitation would require federating with a misconfigured or non-compliant trust domain.
Thanks to Edoardo Geraci for reporting this issue.
## [1.12.2] - 2025-05-19
### Fixed
- Regression where PolicyCredentials set by CredentialComposer plugins were not correctly applied to CA certificates. (#6074)
## [1.12.1] - 2025-05-06
### Added
- Support for Unix sockets in trust bundle URLs (#5932)
- Documentation improvements and additions (#5989, #6012)
### Changed
- `sql_transaction_timeout` replaced by `event_timeout` and value reduced to 15 minutes (#5966)
- Experimental events-based cache performance improvements by batch fetching updated entries (#5970)
- Improved error messages when retrieving CGroups (#6030).
### Fixed
- Corrected invalid `user-agent` value in OIDC Discovery Provider debug logs (#5981).
## [1.12.0] - 2025-03-21
### Added
- Support for any S3 compatible object storage such as MinIO in the `aws_s3` BundlePublisher plugin (#5757)
- Support for Rego V1 in the authorization policy engine (#5769)
- Support for SAN-based selectors in the `x509pop` NodeAttestor plugin (#5775)
### Changed
- Agents now use the SyncAuthorizedEntries API for periodically synchronization of authorized entries by default (#5906)
- Timestamps in logs are now formatted to include nanoseconds (#5798)
- Improved entry lookup performance in NewJWTSVID and BatchNewX509SVID server RPCs (#5819)
- Increased the maximum number of idle database connections to 100 (#5853)
- The maximum idle time per database connection is now set to 30 seconds (#5853)
- Small documentation improvements (#5873, #5876)
- The experimental events-based cache now supports reading events from read-only replicas when data staleness is tolerated, enhancing read performance (#5911)
- The `use_legacy_downstream_x509_ca_ttl` server setting is now set to false by default (#5917)
### Deprecated
- `use_sync_authorized_entries` experimental agent setting (#5906)
- `use_legacy_downstream_x509_ca_ttl` server setting (#5917)
### Removed
- The deprecated `k8s_sat` NodeAttestor plugin (#5703)
### Fixed
- Issue where agents did not receive entry updates when new entries with the same entry ID were created while `use_sync_authorized_entries` was enabled (#5764)
## [1.11.3] - 2025-06-17
### Security
- Fixed an issue in spire-agent where the WorkloadAPI.ValidateJWTSVID endpoint did not enforce the presence of the exp (expiration) claim in JWT-SVIDs, as required by the SPIFFE specification.
This vulnerability has limited impact: by default, SPIRE does not issue JWT-SVIDs without an expiration claim. Exploitation would require federating with a misconfigured or non-compliant trust domain.
Thanks to Edoardo Geraci for reporting this issue.
## [1.11.2] - 2025-02-13
### Added
- `gcp_secretmanager` SVIDStore plugin now supports specifying the regions where secrets are created (#5718)
- Support for expanding environment variables in the OIDC Discovery Provider configuration (#5689)
- Support for optionally enabling `trust_domain` label for all metrics (#5673)
- The JWKS URI returned in the discovery document can now be configured in the OIDC Discovery Provider (#5690)
- A server path prefix can now be specified in the OIDC Discovery Provider (#5690)
### Changed
- Small documentation improvements (#5809, #5720)
### Fixed
- Regression in the hydration of the experimental event-based cache that caused a delay in availability (#5842)
- Do not log an error when the Envoy SDS v3 API connection has been closed cleanly (#5835)
- SVIDStore plugins to properly parse metadata in entry selectors containing ':' characters (#5750)
- Compatibility with deployments that use a server port other than 443 when the `jwt_issuer` configuration is set in the OIDC Discovery Provider (#5690)
- Domain verification is now properly done when setting the `jwt_issuer` configuration in the OIDC Discovery Provider (#5690)
### Security
- Fixed to properly call the CompareObjectHandles function when it's available on Windows systems, as an extra security measure in the peertracker (#5749)
## [1.11.1] - 2024-12-12
### Added
- The Go based text/template engine used in various plugins has been extended to include a set of functions from the SPRIG library (#5593, #5625)
- The JWT-SVID cache in the agent is now configurable (#5633)
- The JWT issuer is now configurable in the OIDC Discovery Provider (#5657)
### Changed
- CA journal now relies on the authority ID instead of the issued time when updating the status of keys (#5622)
### Fixed
- Spelling and grammar fixes (#5571)
- Handling of IPv6 address consistently for the binding address of the server and health checks (#5623)
- Link to Telemetry documentation in the Contributing guide (#5650)
- Handling of registration entries with revision number 0 when the agent syncs entries with the server (#5680)
### Known Issues
- Setting the new `jwt_issuer` configuration property in oidc-discovery-provider is not compatible with deployments that use a server port other than 443 (#5696)
- Domain verification is bypassed when setting the new `jwt_issuer` configuration property in oidc-discovery-provider (#5697)
## [1.11.0] - 2024-10-24
### Added
- Support for forced rotation and revocation (<https://github.com/orgs/spiffe/projects/21>)
- New EJBCA UpstreamAuthority plugin for SPIRE Server (#5378)
- Support for variables in templates contained in the config file (#5576)
- Support for the configuration validation RPC on all built-in plugins (#5303)
- Improved logging when built-in plugins panic (#5476)
- Improved CPU and memory resource usage for concurrent Kubernetes Workload attestation (#5408)
- Documentation additions and improvements (#5589, #5588, #5499, #5433, #5430, #5269)
### Changed
- SPIRE Agent LRU identity cache is now unconditionally enabled. The LRU size can be controlled via the `x509_svid_cache_max_size` configuration option. (#5383, #5531)
- Entry API RPCs return per-entry InvalidArgument status when creating/updating malformed entries (#5506)
- Support for CGroups v2 in K8s and Docker workload attestors is now enabled by default (#5454)
### Removed
- Deprecated -ttl flag from the SPIRE Server `entry create` and `entry update` commands (#5483)
- Official support for MySQL 5.X. While SPIRE may continue to work with this version, no explicit testing will be performed by the project (#5487)
### Fixed
- Missing TrustDomain field passed to x509pop path template (#5577)
- Behavior in the experimental events-based cache causing duplicate entries/agents evaluation in the same cycle (#5509)
## [1.10.4] - 2024-09-12
### Fixed
- Add missing commits to spire-plugin-sdk and spire-api-sdk releases (spiffe/spire-api-sdk#66, spiffe/spire-plugin-sdk#39)
## [1.10.3] - 2024-09-03
### Fixed
- Regression in agent health check, requiring the agent to have an SVID on disk to be healthy (#5459)
## [1.10.2] - 2024-09-03
### Added
- `http_challenge` NodeAttestor plugin (#4909)
- Experimental support for validating container image signatures through Sigstore selectors in the docker Workload Attestor (#5272)
- Metrics for monitoring the event-based cache (#5411)
### Changed
- Delegated Identity API to allow subscription by process ID (#5272)
- Agent Debug endpoint to count SVIDs by type (#5352)
- Agent health check to report an unhealthy status until the Agent SVID is attested (#5298)
- Small documentation improvements (#5393)
### Fixed
- `aws_iid` NodeAttestor to properly handle multiple network interfaces (#5300)
- Server configuration to correctly propagate the `sql_transaction_timeout` setting in the experimental events-based cache (#5345)
## [1.10.1] - 2024-08-01
### Added
- New Grafana dashboard template (#5188)
- `aws_rolesanywhere_trustanchor` BundlePublisher plugin (#5048)
### Changed
- `spire` UpstreamAuthority to optionally use the Preferred TTL on intermediate authorities (#5264)
- Federation endpoint to support custom bundle and certificates for authorization (#5163)
- Small documentation improvements (#5235, #5220)
### Fixed
- Event-based cache to handle events missed at the cache startup (#5289)
- LRU cache to no longer send update notifications to all subscribers (#5281)
## [1.10.0] - 2024-06-24
### Added
- Plugin reconfiguration support using the `plugin_data_file` configurable (#5166)
### Changed
- SPIRE Server and OIDC provider images to use non-root users (#4967, #5227)
- `k8s_psat` NodeAttestor attestor to no longer fail when a cluster is not configured (#5216)
- Agents are required to renew SVIDs through re-attestation when using a supporting Node Attestor (#5204)
- Small documentation improvements (#5181, #5189)
- Evicted agents that support reattestation can now reattest without being restarted (#4991)
### Fixed
- PSAT node attestor to cross-check the audience fields (#5142)
- Events-based cache to handle out of order events (#5071)
### Deprecated
- `x509_svid_cache_max_size` and `disable_lru_cache` in agent configuration (#5150)
### Removed
- The deprecated `disable_reattest_to_renew` agent configurable (#5217)
- The deprecated `key_metadata_file` configurable from the `aws_kms`, `azure_key_vault` and `gcp_kms` server KeyManagers (#5207)
- The deprecated `use_msi` configurable from the `azure_key_vault` server KeyManager and `azure_msi` NodeAttestor (#5207, #5209)
- The deprecated `exclude_sn_from_ca_subject` server configurable (#5203)
- Agent no longer cleans up deprecated bundle and SVID files (#5205)
- The CA journal file is no longer stored on disk, and existing CA journal files are cleaned up (#5202)
## [1.9.6] - 2024-05-14
### Added
- Opt-in support for CGroups v2 in K8s and Docker workload attestors (#5076)
- `gcp_cloudstorage` BundlePublisher plugin (#4961)
- The `aws_iid` node attestor can now check if the AWS account ID is part of an AWS Organization (#4838)
- More filtering options to count and show entries and agents (#4714)
### Changed
- Credential composer to not convert timestamp related claims (i.e., exp and iat) to floating point values (#5115)
- FetchJWTBundles now returns an empty collection of keys instead of null (#5031)
### Fixed
- Using expired tokens when connecting to database (#5119)
- Server no longer tries to create JWT authority when X.509 authority fails (#5064)
- Issues in experimental events-based entry cache (#5030, #5037, #5042)
## [1.9.5] - 2024-05-07
### Security
- Updated to Go 1.21.10 to address CVE-2024-24788
## [1.9.4] - 2023-04-05
### Security
- Updated to google.golang.org/grpc v1.62.2 and golang.org/x/net v0.24.0 to address CVE-2023-45288
## [1.9.3] - 2024-04-03
### Security
- Updated to Go 1.21.9 to address CVE-2023-45288
- Limit the preallocation of memory when making paginated requests to the ListEntries and ListAgents RPCs
## [1.9.2] - 2024-03-25
### Added
- Support for AWS IAM-based authentication with AWS RDS backed databases (#4828)
- Support for adjusting the SPIRE Server log level at runtime (#4880)
- New `retry_bootstrap` option to SPIRE Agent to retry failed bootstrapping with SPIRE Server, with a backoff, in lieu of failing the startup process (#4597)
- Improved logging (#4902, #4906)
- Documentation improvements (#4895, #4951, #4907)
## [1.9.1] - 2024-03-05
### Security
@ -42,6 +342,25 @@
- X509-SVIDs issued by the server no longer have the x509UniqueIdentifier attribute as part of the subject (#4862)
## [1.8.11] - 2024-05-07
### Security
- Updated to Go 1.21.10 to address CVE-2024-24788
## [1.8.10] - 2023-04-05
### Security
- Updated to google.golang.org/grpc v1.62.2 and golang.org/x/net v0.24.0 to address CVE-2023-45288
## [1.8.9] - 2024-04-03
### Security
- Updated to Go 1.21.9 to address CVE-2023-45288
- Limit the preallocation of memory when making paginated requests to the ListEntries and ListAgents RPCs
## [1.8.8] - 2024-03-05
### Security
@ -897,7 +1216,7 @@
- Regression preventing agent selectors from showing in `spire-server agent show` command (#2133)
- Issue in the token authentication method of the Vault Upstream Authority plugin (#2110)
- Reporting of errors in server entry cache telemetry (#2091)
- Agent logs an error and automatically shuts down when its SVID has expired and it requires re-attestation (#2065)
- Agent logs an error and automatically shuts down when its SVID has expired, and it requires re-attestation (#2065)
## [0.12.1] - 2021-03-04
@ -983,7 +1302,7 @@
- Fixed Kubernetes Workload Registrar issues (#1814, #1818, #1823)
- Fixed BatchCreateEntry return value to match docs, returning the contents of an entry if it already exists (#1824)
- Fixed issue preventing brand new deployments from downgrading successfully (#1829)
- Fixed issue preventing brand-new deployments from downgrading successfully (#1829)
- Fixed a regression introduced in 0.11.0 that caused external node attestor plugins that rely on binary data to fail (#1863)
## [0.11.0] - 2020-08-28
@ -1087,7 +1406,7 @@
## [0.9.0] - 2019-11-14
- Users can now opt-out of workload executable hashing when enabling the workload path as a selector (#1078)
- Users can now opt out of workload executable hashing when enabling the workload path as a selector (#1078)
- Added M3 support to telemetry and other telemetry and logging improvements (#1059, #1085, #1086, #1094, #1102, #1122,#1138,#1160,#1186,#1208)
- SQL auto-migration can be disabled (#1089)
- SQL schema compatibility checks are aligned with upgrade compatibility guarantees (#1089)

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

@ -45,7 +45,7 @@ toolchain and other build related files are cached under the `.build` folder
### 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:
@ -105,14 +105,14 @@ Packages should be exported through interfaces. Interaction with packages must b
interfaces
Interfaces should be defined in their own file, named (in lowercase) after the name of the
interface. eg. `foodata.go` implements `type FooData any`
interface. e.g. `foodata.go` implements `type FooData any`
### 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.

View File

@ -2,8 +2,7 @@
# Build stage
ARG goversion
# Use alpine3.18 until go-sqlite works in 3.19
FROM --platform=${BUILDPLATFORM} golang:${goversion}-alpine3.18 as base
FROM --platform=${BUILDPLATFORM} golang:${goversion}-alpine3.22 as base
WORKDIR /spire
RUN apk --no-cache --update add file bash clang lld pkgconfig git make
COPY go.* ./
@ -15,7 +14,7 @@ COPY . .
# 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@sha256:904fe94f236d36d65aeb5a2462f88f2c537b8360475f6342e7599194f291fb7e AS xx
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.5.0@sha256:0c6a569797744e45955f39d4f7538ac344bfb7ebf0a54006a0a4297b153ccf0f AS xx
FROM --platform=${BUILDPLATFORM} base as builder
ARG TAG
@ -23,38 +22,6 @@ ARG TARGETPLATFORM
ARG TARGETARCH
COPY --link --from=xx / /
# For users that wish to run SPIRE containers as a non-root user,
# provide a default unprivileged user such that the default paths
# that SPIRE will try to read from, write to, and create at runtime
# can be given the correct file ownership/permissions at build time.
ARG spireuid=1000
ARG spiregid=1000
# Set up directories that SPIRE expects by default
# Set up base directories
RUN install -d -o root -g root -m 777 /spireroot
RUN install -d -o root -g root -m 755 /spireroot/etc/ssl/certs
RUN install -d -o root -g root -m 755 /spireroot/run
RUN install -d -o root -g root -m 755 /spireroot/var/lib
RUN install -d -o root -g root -m 1777 /spireroot/tmp
# Set up directories used by SPIRE
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireroot/etc/spire
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireroot/run/spire
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireroot/var/lib/spire
# Set up spire-server directories
RUN cp -r /spireroot /spireserverroot
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireserverroot/etc/spire/server
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireserverroot/run/spire/server/private
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireserverroot/var/lib/spire/server
# Set up spire-agent directories
RUN cp -r /spireroot /spireagentroot
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireagentroot/etc/spire/agent
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireagentroot/run/spire/agent/public
RUN install -d -o ${spireuid} -g ${spiregid} -m 755 /spireagentroot/var/lib/spire/agent
RUN xx-go --wrap
RUN set -e ; xx-apk --no-cache --update add build-base musl-dev libseccomp-dev
ENV CGO_ENABLED=1
@ -62,29 +29,57 @@ 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 $f; done
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
CMD []
COPY --link --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# 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
ARG spireuid=1000
ARG spiregid=1000
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/spire-server", "run"]
COPY --link --from=builder /spireserverroot /
COPY --link --from=builder /spire/bin/static/spire-server bin/
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
ARG spireuid=0
ARG spiregid=0
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/spire-agent", "run"]
COPY --link --from=builder /spireagentroot /
COPY --link --from=builder /spire/bin/static/spire-agent bin/
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
ARG spireuid=1000
ARG spiregid=1000
USER ${spireuid}:${spiregid}
ENTRYPOINT ["/opt/spire/bin/oidc-discovery-provider"]
COPY --link --from=builder /spire/bin/static/oidc-discovery-provider bin/
COPY --link --from=builder --chown=${spireuid}:${spiregid} --chmod=755 /spire/bin/static/oidc-discovery-provider /opt/spire/bin/

View File

@ -1,4 +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

View File

@ -31,9 +31,9 @@ This section of the document can and should be updated as the above consideratio
### 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.
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.
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.
@ -103,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.

View File

@ -32,6 +32,7 @@ help:
@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"
@ -103,6 +104,8 @@ else
$(error unsupported ARCH: $(arch1))
endif
ignore_suites := $(IGNORE_SUITES)
############################################################################
# Docker TLS detection for buildx
############################################################################
@ -136,9 +139,8 @@ endif
go_path := PATH="$(go_bin_dir):$(PATH)"
golangci_lint_version := $(shell awk '/golangci_lint/{print $$2}' .spire-tool-versions)
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
markdown_lint_version := $(shell awk '/markdown_lint/{print $$2}' .spire-tool-versions)
@ -310,11 +312,11 @@ integration:
ifeq ($(os1), windows)
$(error Integration tests are not supported on windows)
else
$(E)$(go_path) ./test/integration/test.sh $(SUITES)
$(E)$(go_path) IGNORE_SUITES='$(ignore_suites)' ./test/integration/test.sh $(SUITES)
endif
integration-windows:
$(E)$(go_path) ./test/integration/test-windows.sh $(SUITES)
$(E)$(go_path) IGNORE_SUITES='$(ignore_suites)' ./test/integration/test-windows.sh $(SUITES)
#############################################################################
# Docker Images
@ -402,8 +404,11 @@ endif
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"
@ -507,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)
@ -517,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,7 +3,6 @@
[![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.
@ -62,8 +61,8 @@ The SPIFFE community maintains the SPIRE project. Information on the various SIG
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

View File

@ -1,6 +1,6 @@
# 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.
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
@ -14,7 +14,7 @@ The base commit of the release branch is based on the type of release being gene
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.
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.
@ -59,7 +59,7 @@ The following steps must be completed by the primary on-call maintainer to perfo
* 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.
* Create Git tags (not annotated) with the name `vX.Y.Z` in the [spire-api-sdk](https://github.com/spiffe/spire-api-sdk) and [spire-plugin-sdk](https://github.com/spiffe/spire-plugin-sdk) repositories for the HEAD commit of the main branch.
* 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:
@ -75,3 +75,27 @@ The following steps must be completed by the primary on-call maintainer to perfo
* 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

@ -15,9 +15,9 @@ import (
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/proto/spiffe/workload"
"github.com/spiffe/go-spiffe/v2/spiffeid"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
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"
@ -416,9 +416,10 @@ func TestValidateJWTCommand(t *testing.T) {
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"}}},
},
Kind: &structpb.Value_ListValue{
ListValue: &structpb.ListValue{
Values: []*structpb.Value{{Kind: &structpb.Value_StringValue{StringValue: "foo"}}},
},
},
},
},
@ -504,7 +505,7 @@ func setupTest(t *testing.T, newCmd func(env *commoncli.Env, clientMaker workloa
}, newWorkloadClient)
test := &apiTest{
addr: common.GetAddr(addr),
addr: clitest.GetAddr(addr),
stdin: stdin,
stdout: stdout,
stderr: stderr,
@ -538,7 +539,7 @@ func (s *apiTest) afterTest(t *testing.T) {
}
func (s *apiTest) args(extra ...string) []string {
return append([]string{common.AddrArg, s.addr}, extra...)
return append([]string{clitest.AddrArg, s.addr}, extra...)
}
func assertOutputBasedOnFormat(t *testing.T, format, stdoutString, expectedStdoutJSON string, expectedStdoutPretty ...string) {

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

@ -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

@ -2,13 +2,11 @@ package run
import (
"context"
"crypto/x509"
"errors"
"flag"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"os/signal"
@ -26,18 +24,18 @@ import (
"github.com/imdario/mergo"
"github.com/mitchellh/cli"
"github.com/sirupsen/logrus"
"github.com/spiffe/go-spiffe/v2/spiffeid"
"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/bundleutil"
"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 (
@ -53,9 +51,6 @@ const (
defaultDefaultAllBundlesName = "ALL"
defaultDisableSPIFFECertValidation = false
bundleFormatPEM = "pem"
bundleFormatSPIFFE = "spiffe"
minimumAvailabilityTarget = 24 * time.Hour
)
@ -72,7 +67,7 @@ type agentConfig struct {
DataDir string `hcl:"data_dir"`
AdminSocketPath string `hcl:"admin_socket_path"`
InsecureBootstrap bool `hcl:"insecure_bootstrap"`
RetryBootstrap bool `hcl:"retry_bootstrap"`
RetryBootstrap *bool `hcl:"retry_bootstrap"`
JoinToken string `hcl:"join_token"`
LogFile string `hcl:"log_file"`
LogFormat string `hcl:"log_format"`
@ -85,11 +80,14 @@ type agentConfig struct {
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"`
@ -104,9 +102,6 @@ type agentConfig struct {
Experimental experimentalConfig `hcl:"experimental"`
UnusedKeyPositions map[string][]token.Pos `hcl:",unusedKeyPositions"`
// Deprecated configurables
DisableReattestToRenew bool `hcl:"disable_reattest_to_renew"`
}
type sdsConfig struct {
@ -120,13 +115,10 @@ type experimentalConfig struct {
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"`
UseSyncAuthorizedEntries *bool `hcl:"use_sync_authorized_entries"`
RequirePQKEM bool `hcl:"require_pq_kem"`
Flags fflag.RawConfig `hcl:"feature_flags"`
UnusedKeyPositions map[string][]token.Pos `hcl:",unusedKeyPositions"`
X509SVIDCacheMaxSize int `hcl:"x509_svid_cache_max_size"`
DisableLRUCache bool `hcl:"disable_lru_cache"`
}
type Command struct {
@ -264,16 +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 != bundleFormatPEM && c.TrustBundleFormat != bundleFormatSPIFFE {
return fmt.Errorf("invalid value for trust_bundle_format, expected %q or %q", bundleFormatPEM, bundleFormatSPIFFE)
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://")
}
}
@ -307,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 {
@ -321,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")
@ -334,10 +343,10 @@ func parseFlags(name string, args []string, output io.Writer) (*agentConfig, err
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", bundleFormatPEM, bundleFormatSPIFFE))
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(&c.RetryBootstrap, "retryBootstrap", false, "If true, the agent retries bootstrap with backoff")
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)
@ -347,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
}
@ -372,87 +387,6 @@ func mergeInput(fileInput *Config, cliInput *agentConfig) (*Config, error) {
return c, nil
}
func parseTrustBundle(bundleBytes []byte, trustBundleContentType string) ([]*x509.Certificate, error) {
switch trustBundleContentType {
case bundleFormatPEM:
bundle, err := pemutil.ParseCertificates(bundleBytes)
if err != nil {
return nil, err
}
return bundle, nil
case bundleFormatSPIFFE:
bundle, err := bundleutil.Unmarshal(spiffeid.TrustDomain{}, bundleBytes)
if err != nil {
return nil, fmt.Errorf("unable to parse SPIFFE trust bundle: %w", err)
}
return bundle.X509Authorities(), nil
}
return nil, fmt.Errorf("unknown trust bundle format: %s", trustBundleContentType)
}
func downloadTrustBundle(trustBundleURL string) ([]byte, 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)
}
return pemBytes, nil
}
func setupTrustBundle(ac *agent.Config, c *Config) error {
// Either download the trust bundle if TrustBundleURL is set, or read it
// from disk if TrustBundlePath is set
ac.InsecureBootstrap = c.Agent.InsecureBootstrap
var bundleBytes []byte
var err error
switch {
case c.Agent.TrustBundleURL != "":
bundleBytes, err = downloadTrustBundle(c.Agent.TrustBundleURL)
if err != nil {
return err
}
case c.Agent.TrustBundlePath != "":
bundleBytes, err = loadTrustBundle(c.Agent.TrustBundlePath)
if err != nil {
return fmt.Errorf("could not parse trust bundle: %w", err)
}
default:
// If InsecureBootstrap is configured, the bundle is not required
if ac.InsecureBootstrap {
return nil
}
}
bundle, err := parseTrustBundle(bundleBytes, c.Agent.TrustBundleFormat)
if err != nil {
return err
}
if len(bundle) == 0 {
return errors.New("no certificates found in trust bundle")
}
ac.TrustBundle = bundle
return nil
}
func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) (*agent.Config, error) {
ac := &agent.Config{}
@ -460,8 +394,6 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
return nil, err
}
ac.RetryBootstrap = c.Agent.RetryBootstrap
if c.Agent.Experimental.SyncInterval != "" {
var err error
ac.SyncInterval, err = time.ParseDuration(c.Agent.Experimental.SyncInterval)
@ -470,17 +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.UseSyncAuthorizedEntries = c.Agent.Experimental.UseSyncAuthorizedEntries
ac.X509SVIDCacheMaxSize = c.Agent.Experimental.X509SVIDCacheMaxSize
if c.Agent.Experimental.DisableLRUCache && ac.X509SVIDCacheMaxSize != 0 {
return nil, errors.New("x509_svid_cache_max_size should not be set when disable_lru_cache is set")
}
ac.DisableLRUCache = c.Agent.Experimental.DisableLRUCache
serverHostPort := net.JoinHostPort(c.Agent.ServerAddress, strconv.Itoa(c.Agent.ServerPort))
ac.ServerAddress = fmt.Sprintf("dns:///%s", serverHostPort)
@ -493,7 +414,8 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
}
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
}
@ -509,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
@ -538,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)
@ -593,6 +542,12 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
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.")
}
@ -601,11 +556,6 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool)
logger.Warnf("Developer feature flag %q has been enabled", f)
}
ac.DisableReattestToRenew = c.Agent.DisableReattestToRenew
if c.Agent.DisableReattestToRenew {
logger.Warn("Disable reattest to renew flag will be removed in the next major release")
}
return ac, nil
}
@ -686,7 +636,7 @@ func defaultConfig() *Config {
DataDir: defaultDataDir,
LogLevel: defaultLogLevel,
LogFormat: log.DefaultFormat,
TrustBundleFormat: bundleFormatPEM,
TrustBundleFormat: trustbundlesources.BundleFormatPEM,
SDS: sdsConfig{
DefaultBundleName: defaultDefaultBundleName,
DefaultSVIDName: defaultDefaultSVIDName,
@ -699,12 +649,3 @@ func defaultConfig() *Config {
return c
}
func loadTrustBundle(path string) ([]byte, error) {
bundleBytes, err := os.ReadFile(path)
if err != nil {
return nil, err
}
return bundleBytes, nil
}

View File

@ -6,6 +6,7 @@ import (
"bytes"
"fmt"
"os"
"path"
"testing"
"github.com/spiffe/spire/pkg/agent"
@ -186,28 +187,28 @@ func TestParseConfigGood(t *testing.T) {
// Check for plugins configurations
expectedPluginConfigs := catalog.PluginConfigs{
{
Type: "plugin_type_agent",
Name: "plugin_name_agent",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
Data: data,
Disabled: false,
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",
Data: data,
Disabled: true,
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",
Data: data,
Disabled: false,
Type: "plugin_type_agent",
Name: "plugin_enabled",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FileData("plugin.conf"),
Disabled: false,
},
}
@ -237,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"
@ -271,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",
@ -359,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,8 +2,6 @@ package run
import (
"io"
"net/http"
"net/http/httptest"
"os"
"path"
"path/filepath"
@ -39,119 +37,6 @@ type newAgentConfigCase struct {
test func(*testing.T, *agent.Config)
}
func TestDownloadTrustBundle(t *testing.T) {
testTB, _ := os.ReadFile(path.Join(util.ProjectRoot(), "conf/agent/dummy_root_ca.crt"))
testTBSPIFFE := `{
"keys": [
{
"use": "x509-svid",
"kty": "EC",
"crv": "P-384",
"x": "WjB-nSGSxIYiznb84xu5WGDZj80nL7W1c3zf48Why0ma7Y7mCBKzfQkrgDguI4j0",
"y": "Z-0_tDH_r8gtOtLLrIpuMwWHoe4vbVBFte1vj6Xt6WeE8lXwcCvLs_mcmvPqVK9j",
"x5c": [
"MIIBzDCCAVOgAwIBAgIJAJM4DhRH0vmuMAoGCCqGSM49BAMEMB4xCzAJBgNVBAYTAlVTMQ8wDQYDVQQKDAZTUElGRkUwHhcNMTgwNTEzMTkzMzQ3WhcNMjMwNTEyMTkzMzQ3WjAeMQswCQYDVQQGEwJVUzEPMA0GA1UECgwGU1BJRkZFMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWjB+nSGSxIYiznb84xu5WGDZj80nL7W1c3zf48Why0ma7Y7mCBKzfQkrgDguI4j0Z+0/tDH/r8gtOtLLrIpuMwWHoe4vbVBFte1vj6Xt6WeE8lXwcCvLs/mcmvPqVK9jo10wWzAdBgNVHQ4EFgQUh6XzV6LwNazA+GTEVOdu07o5yOgwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwGQYDVR0RBBIwEIYOc3BpZmZlOi8vbG9jYWwwCgYIKoZIzj0EAwQDZwAwZAIwE4Me13qMC9i6Fkx0h26y09QZIbuRqA9puLg9AeeAAyo5tBzRl1YL0KNEp02VKSYJAjBdeJvqjJ9wW55OGj1JQwDFD7kWeEB6oMlwPbI/5hEY3azJi16I0uN1JSYTSWGSqWc="
]
}
]
}`
cases := []struct {
msg string
status int
fileContents string
format string
expectDownloadError bool
expectParseError bool
}{
{
msg: "if URL is not found, should be an error",
status: http.StatusNotFound,
fileContents: "",
format: bundleFormatPEM,
expectDownloadError: true,
expectParseError: false,
},
{
msg: "if URL returns error 500, should be an error",
status: http.StatusInternalServerError,
fileContents: "",
format: bundleFormatPEM,
expectDownloadError: true,
expectParseError: false,
},
{
msg: "if file is not parseable, should be an error",
status: http.StatusOK,
fileContents: "NON PEM PARSEABLE TEXT HERE",
format: bundleFormatPEM,
expectDownloadError: false,
expectParseError: true,
},
{
msg: "if file is empty, should be an error",
status: http.StatusOK,
fileContents: "",
format: bundleFormatPEM,
expectDownloadError: false,
expectParseError: true,
},
{
msg: "if file is valid, should not be an error",
status: http.StatusOK,
fileContents: string(testTB),
format: bundleFormatPEM,
expectDownloadError: false,
expectParseError: false,
},
{
msg: "if file is not parseable, format is SPIFFE, should not be an error",
status: http.StatusOK,
fileContents: "[}",
format: bundleFormatSPIFFE,
expectDownloadError: false,
expectParseError: true,
},
{
msg: "if file is valid, format is SPIFFE, should not be an error",
status: http.StatusOK,
fileContents: testTBSPIFFE,
format: bundleFormatSPIFFE,
expectDownloadError: false,
expectParseError: 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()
bundleBytes, err := downloadTrustBundle(testServer.URL)
if testCase.expectDownloadError {
require.Error(t, err)
} else {
require.NoError(t, err)
_, err := parseTrustBundle(bundleBytes, testCase.format)
if testCase.expectParseError {
require.Error(t, err)
} else {
require.NoError(t, err)
}
}
})
}
}
func TestMergeInput(t *testing.T) {
cases := []mergeInputCase{
{
@ -615,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{}
@ -673,7 +566,7 @@ 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())
},
},
{
@ -685,13 +578,14 @@ func TestNewAgentConfig(t *testing.T) {
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) {
c.Agent.RetryBootstrap = false
rb := false
c.Agent.RetryBootstrap = &rb
},
test: func(t *testing.T, c *agent.Config) {
require.False(t, c.RetryBootstrap)
@ -700,7 +594,8 @@ func TestNewAgentConfig(t *testing.T) {
{
msg: "retry_bootstrap should be correctly set to true",
input: func(c *Config) {
c.Agent.RetryBootstrap = true
rb := true
c.Agent.RetryBootstrap = &rb
},
test: func(t *testing.T, c *agent.Config) {
require.True(t, c.RetryBootstrap)
@ -831,6 +726,51 @@ func TestNewAgentConfig(t *testing.T) {
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) {
require.Nil(t, c)
},
},
{
msg: "workload_key_type is not set",
input: func(c *Config) {
@ -900,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)
@ -917,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)
@ -927,40 +867,12 @@ 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)
},
},
{
msg: "disable_lru_cache is set",
input: func(c *Config) {
c.Agent.Experimental.DisableLRUCache = true
},
test: func(t *testing.T, c *agent.Config) {
require.True(t, c.DisableLRUCache)
},
},
{
msg: "both disable_lru_cache and x509_svid_cache_max_size are set",
expectError: true,
input: func(c *Config) {
c.Agent.Experimental.DisableLRUCache = true
c.Agent.Experimental.X509SVIDCacheMaxSize = 100
},
test: func(t *testing.T, c *agent.Config) {
require.Nil(t, c)
},
},
{
msg: "disable_lru_cache is not set",
input: func(c *Config) {
},
test: func(t *testing.T, c *agent.Config) {
require.False(t, c.DisableLRUCache)
},
},
{
msg: "allowed_foreign_jwt_claims provided",
input: func(c *Config) {
@ -1040,11 +952,26 @@ func TestNewAgentConfig(t *testing.T) {
require.Nil(t, c)
},
},
}
cases = append(cases, newAgentConfigCasesOS()...)
for _, testCase := range cases {
testCase := testCase
{
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)
@ -1207,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

@ -173,28 +173,28 @@ func TestParseConfigGood(t *testing.T) {
// Check for plugins configurations
expectedPluginConfigs := catalog.PluginConfigs{
{
Type: "plugin_type_agent",
Name: "plugin_name_agent",
Path: "./pluginAgentCmd",
Checksum: "pluginAgentChecksum",
Data: data,
Disabled: false,
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",
Data: data,
Disabled: true,
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",
Data: data,
Disabled: false,
Type: "plugin_type_agent",
Name: "plugin_enabled",
Path: "c:/temp/pluginAgentCmd",
Checksum: "pluginAgentChecksum",
DataSource: catalog.FileData("plugin.conf"),
Disabled: false,
},
}
@ -224,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"
@ -258,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

@ -14,6 +14,14 @@ var (
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
@ -40,8 +48,20 @@ var (
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")
`

View File

@ -12,8 +12,8 @@ import (
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"
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"
@ -92,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",
@ -152,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",
@ -221,9 +227,15 @@ 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",
},
} {
for _, format := range availableFormats {
@ -389,6 +401,45 @@ func TestList(t *testing.T) {
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",
args: []string{"-selector", "foo:bar", "-selector", "bar:baz", "-matchSelectorsOn", "NO-MATCHER"},
@ -403,9 +454,15 @@ 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",
},
} {
for _, format := range availableFormats {
@ -689,10 +746,13 @@ 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",
@ -750,7 +810,7 @@ func setupTest(t *testing.T, newClient func(*commoncli.Env) cli.Command) *agentT
stdin: stdin,
stdout: stdout,
stderr: stderr,
args: []string{common.AddrArg, common.GetAddr(addr)},
args: []string{clitest.AddrArg, clitest.GetAddr(addr)},
server: server,
client: client,
}

View File

@ -14,6 +14,14 @@ var (
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
@ -40,10 +48,22 @@ var (
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

View File

@ -5,16 +5,39 @@ import (
"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"
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 {
env *commoncli.Env
// 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
}
@ -39,8 +62,61 @@ func (*countCommand) Synopsis() string {
// Run counts attested agents
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
}
@ -49,6 +125,12 @@ func (c *countCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient u
}
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)
}

View File

@ -14,16 +14,32 @@ import (
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 listCommand struct {
env *commoncli.Env
// 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 agents by selectors
// Match used when filtering by selectors
matchSelectorsOn string
printer cliprinter.Printer
// 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.
@ -68,6 +84,35 @@ func (c *listCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient ut
}
}
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 := ""
@ -91,8 +136,12 @@ func (c *listCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient ut
}
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")
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)
}

View File

@ -17,7 +17,7 @@ import (
type showCommand struct {
env *commoncli.Env
// SPIFFE ID of the agent being showed
// SPIFFE ID of the agent being shown
spiffeID string
printer cliprinter.Printer
}

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

@ -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"
@ -203,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,
@ -241,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 {

View File

@ -11,9 +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"
@ -124,6 +127,42 @@ func (cc *CLI) Run(ctx context.Context, 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,25 +0,0 @@
//go: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"
AddrOutputUsage = `
-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.
`
AddrValue = "\\does-not-exist"
)
func GetAddr(addr net.Addr) string {
return namedpipe.GetPipeName(addr.String())
}

View File

@ -7,12 +7,39 @@ import (
"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"
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 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
}
@ -39,7 +66,66 @@ func (*countCommand) Synopsis() string {
// Run counts attested entries
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
}
@ -48,6 +134,15 @@ func (c *countCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient u
}
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)
}

View File

@ -5,9 +5,11 @@ import (
"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/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) {
@ -31,12 +33,262 @@ func TestCount(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expCountReq *entryv1.CountEntriesRequest
fakeCountResp *entryv1.CountEntriesResponse
serverErr error
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,
@ -73,13 +325,16 @@ func TestCount(t *testing.T) {
test.server.err = tt.serverErr
test.server.countEntriesResp = tt.fakeCountResp
rc := test.client.Run(test.args(tt.args...))
args := tt.args
args = append(args, "-output", format)
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, test.stdout.String(), format, tt.expOutPretty, tt.expOutJSON)
requireOutputBasedOnFormat(t, format, test.stdout.String(), tt.expOutPretty, tt.expOutJSON)
require.Equal(t, 0, rc)
})
}

View File

@ -4,14 +4,16 @@ 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"
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"
)
@ -21,7 +23,7 @@ func NewCreateCommand() cli.Command {
}
func newCreateCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &createCommand{env: env})
return serverutil.AdaptCommand(env, &createCommand{env: env})
}
type createCommand struct {
@ -45,11 +47,6 @@ type createCommand struct {
// Entry hint, used to disambiguate entries with the same SPIFFE ID
hint string
// TTL for x509 and JWT SVIDs issued to this workload, unless type specific TTLs are set.
// This field is deprecated in favor of the x509SVIDTTL and jwtSVIDTTL fields and will be
// removed in a future release.
ttl int
// TTL for x509 SVIDs issued to this workload
x509SVIDTTL int
@ -59,13 +56,13 @@ type createCommand struct {
// 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
@ -94,9 +91,8 @@ 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. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version")
f.IntVar(&c.x509SVIDTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag")
f.IntVar(&c.jwtSVIDTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag")
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")
@ -110,7 +106,7 @@ func (c *createCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintCreate)
}
func (c *createCommand) Run(ctx context.Context, _ *commoncli.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
}
@ -158,10 +154,6 @@ 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")
}
@ -170,10 +162,6 @@ func (c *createCommand) validate() (err error) {
return errors.New("a positive JWT-SVID TTL is required")
}
if c.ttl > 0 && (c.x509SVIDTTL > 0 || c.jwtSVIDTTL > 0) {
return errors.New("use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag")
}
return nil
}
@ -189,6 +177,16 @@ 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{
Id: c.entryID,
ParentId: parentID,
@ -197,26 +195,14 @@ func (c *createCommand) parseConfig() ([]*types.Entry, error) {
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
StoreSvid: c.storeSVID,
X509SvidTtl: int32(c.x509SVIDTTL),
JwtSvidTtl: int32(c.jwtSVIDTTL),
X509SvidTtl: x509SvidTTL,
JwtSvidTtl: jwtSvidTTL,
Hint: c.hint,
}
// c.ttl is deprecated but usable if the new c.x509Svid field is not used.
// c.ttl should not be used to set the jwtSVIDTTL value because the previous
// behavior was to have a hard-coded 5 minute JWT TTL no matter what the value
// of ttl was set to.
// validate(...) ensures that either the new fields or the deprecated field is
// used, but never a mixture.
//
// https://github.com/spiffe/spire/issues/2700
if e.X509SvidTtl == 0 {
e.X509SvidTtl = int32(c.ttl)
}
selectors := []*types.Selector{}
for _, s := range c.selectors {
cs, err := util.ParseSelector(s)
cs, err := serverutil.ParseSelector(s)
if err != nil {
return nil, err
}
@ -280,7 +266,7 @@ func prettyPrintCreate(env *commoncli.Env, results ...any) error {
for _, r := range failed {
env.ErrPrintf("Failed to create the following entry (code: %s, msg: %q):\n",
codes.Code(r.Status.Code),
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}

View File

@ -54,7 +54,7 @@ func TestCreate(t *testing.T) {
},
}
fakeRespOKFromCmd2 := &entryv1.BatchCreateEntryResponse{
fakeRespOKFromCmdWithoutJwtTtl := &entryv1.BatchCreateEntryResponse{
Results: []*entryv1.BatchCreateEntryResponse_Result{
{
Entry: &types.Entry{
@ -186,28 +186,16 @@ func TestCreate(t *testing.T) {
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"},
expErrPretty: "Error: a positive TTL is required\n",
expErrJSON: "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: "Invalid TTL and X509SvidTtl",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-x509SVIDTTL", "20"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
},
{
name: "Invalid TTL and JwtSvidTtl",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-jwtSVIDTTL", "20"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
},
{
name: "Invalid TTL and both X509SvidTtl and JwtSvidTtl",
args: []string{"-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-x509SVIDTTL", "20", "-jwtSVIDTTL", "30"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\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",
@ -346,7 +334,7 @@ StoreSvid : true
"-parentID", "spiffe://example.org/parent",
"-selector", "zebra:zebra:2000",
"-selector", "alpha:alpha:2000",
"-ttl", "60",
"-x509SVIDTTL", "60",
"-federatesWith", "spiffe://domaina.test",
"-federatesWith", "spiffe://domainb.test",
"-admin",
@ -376,111 +364,7 @@ StoreSvid : true
},
},
},
fakeResp: fakeRespOKFromCmd2,
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 : default
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": 0
}
}
]
}`,
},
{
name: "Create succeeds using deprecated command line arguments",
args: []string{
"-spiffeID", "spiffe://example.org/workload",
"-parentID", "spiffe://example.org/parent",
"-selector", "zebra:zebra:2000",
"-selector", "alpha:alpha:2000",
"-ttl", "60",
"-federatesWith", "spiffe://domaina.test",
"-federatesWith", "spiffe://domainb.test",
"-admin",
"-entryExpiry", "1552410266",
"-dns", "unu1000",
"-dns", "ung1000",
"-downstream",
"-storeSVID",
},
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,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
DnsNames: []string{"unu1000", "ung1000"},
Downstream: true,
StoreSvid: true,
},
},
},
fakeResp: fakeRespOKFromCmd2,
fakeResp: fakeRespOKFromCmdWithoutJwtTtl,
expOutPretty: fmt.Sprintf(`Entry ID : entry-id
SPIFFE ID : spiffe://example.org/workload
Parent ID : spiffe://example.org/parent

View File

@ -10,9 +10,10 @@ import (
"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"
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"
)
@ -22,7 +23,7 @@ func NewDeleteCommand() cli.Command {
}
func newDeleteCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &deleteCommand{env: env})
return serverutil.AdaptCommand(env, &deleteCommand{env: env})
}
type deleteCommand struct {
@ -70,7 +71,7 @@ func parseEntryDeleteJSON(path string) ([]string, error) {
return batchDeleteEntryRequest.Ids, nil
}
func (c *deleteCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
func (c *deleteCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
@ -135,7 +136,7 @@ func (c *deleteCommand) prettyPrintDelete(env *commoncli.Env, results ...any) er
for _, result := range failed {
env.ErrPrintf("Failed to delete entry with ID %s (code: %s, msg: %q)\n",
result.Id,
codes.Code(result.Status.Code),
util.MustCast[codes.Code](result.Status.Code),
result.Status.Message)
}

View File

@ -47,7 +47,7 @@ type showCommand struct {
// 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
@ -175,6 +175,8 @@ func (c *showCommand) fetchEntries(ctx context.Context, client entryv1.EntryClie
filter.ByHint = wrapperspb.String(c.hint)
}
filter.ByDownstream = wrapperspb.Bool(c.downstream)
pageToken := ""
for {

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) {
@ -61,7 +62,9 @@ func TestShow(t *testing.T) {
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,
expOutPretty: fmt.Sprintf("Found 4 entries\n%s%s%s%s",
@ -103,7 +106,8 @@ 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,
@ -124,7 +128,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),
},
},
fakeListResp: fakeRespDaughter,
@ -152,6 +157,7 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
@ -173,6 +179,7 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
@ -194,6 +201,7 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
@ -215,6 +223,7 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
@ -236,6 +245,7 @@ func TestShow(t *testing.T) {
},
Match: types.SelectorMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespFatherDaughter,
@ -260,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"),
@ -276,6 +287,7 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
@ -294,6 +306,7 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_EXACT,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
@ -312,6 +325,7 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_ANY,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
@ -330,6 +344,7 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUPERSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
@ -348,6 +363,7 @@ func TestShow(t *testing.T) {
TrustDomains: []string{"spiffe://domain.test"},
Match: types.FederatesWithMatch_MATCH_SUBSET,
},
ByDownstream: wrapperspb.Bool(false),
},
},
fakeListResp: fakeRespMotherDaughter,
@ -429,7 +445,7 @@ func getEntries(count int) []*types.Entry {
}
e := []*types.Entry{}
for i := 0; i < count; i++ {
for i := range count {
e = append(e, entries[i])
}

View File

@ -4,13 +4,15 @@ 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"
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"
)
@ -20,7 +22,7 @@ func NewUpdateCommand() cli.Command {
}
func newUpdateCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &updateCommand{env: env})
return serverutil.AdaptCommand(env, &updateCommand{env: env})
}
type updateCommand struct {
@ -41,12 +43,9 @@ 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
@ -56,7 +55,7 @@ type updateCommand struct {
// 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
@ -88,9 +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. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version")
f.IntVar(&c.x509SvidTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag")
f.IntVar(&c.jwtSvidTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag")
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")
@ -103,7 +101,7 @@ func (c *updateCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintUpdate)
}
func (c *updateCommand) Run(ctx context.Context, _ *commoncli.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
}
@ -151,10 +149,6 @@ 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")
}
@ -163,10 +157,6 @@ func (c *updateCommand) validate() (err error) {
return errors.New("a positive JWT-SVID TTL is required")
}
if c.ttl > 0 && (c.x509SvidTTL > 0 || c.jwtSvidTTL > 0) {
return errors.New("use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag")
}
return nil
}
@ -181,6 +171,16 @@ 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,
@ -188,26 +188,14 @@ func (c *updateCommand) parseConfig() ([]*types.Entry, error) {
Downstream: c.downstream,
ExpiresAt: c.entryExpiry,
DnsNames: c.dnsNames,
X509SvidTtl: int32(c.x509SvidTTL),
JwtSvidTtl: int32(c.jwtSvidTTL),
X509SvidTtl: x509SvidTTL,
JwtSvidTtl: jwtSvidTTL,
Hint: c.hint,
}
// c.ttl is deprecated but usable if the new c.x509Svid field is not used.
// c.ttl should not be used to set the jwtSVIDTTL value because the previous
// behavior was to have a hard-coded 5 minute JWT TTL no matter what the value
// of ttl was set to.
// validate(...) ensures that either the new fields or the deprecated field is
// used, but never a mixture.
//
// https://github.com/spiffe/spire/issues/2700
if e.X509SvidTtl == 0 {
e.X509SvidTtl = int32(c.ttl)
}
selectors := []*types.Selector{}
for _, s := range c.selectors {
cs, err := util.ParseSelector(s)
cs, err := serverutil.ParseSelector(s)
if err != nil {
return nil, err
}
@ -264,7 +252,7 @@ func prettyPrintUpdate(env *commoncli.Env, results ...any) error {
// 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),
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printEntry(r.Entry, env.ErrPrintf)
}

View File

@ -321,24 +321,6 @@ func TestUpdate(t *testing.T) {
JwtSvidTtl: 300,
}
entry5 := &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,
JwtSvidTtl: 0,
FederatesWith: []string{"spiffe://domaina.test", "spiffe://domainb.test"},
Admin: true,
ExpiresAt: 1552410266,
DnsNames: []string{"unu1000", "ung1000"},
Downstream: true,
Hint: "external",
}
entry2Resp := proto.Clone(entry2).(*types.Entry)
entry2Resp.CreatedAt = 1547583197
entry3Resp := proto.Clone(entry3).(*types.Entry)
@ -416,30 +398,6 @@ func TestUpdate(t *testing.T) {
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{"-entryID", "entry-id", "-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "-10"},
expErrPretty: "Error: a positive TTL is required\n",
expErrJSON: "Error: a positive TTL is required\n",
},
{
name: "Invalid TTL and X509SvidTtl",
args: []string{"-entryID", "entry-id", "-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-x509SVIDTTL", "20"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
},
{
name: "Invalid TTL and JwtSvidTtl",
args: []string{"-entryID", "entry-id", "-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-jwtSVIDTTL", "20"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
},
{
name: "Invalid TTL and both X509SvidTtl and JwtSvidTtl",
args: []string{"-entryID", "entry-id", "-selector", "unix", "-parentID", "spiffe://example.org/parent", "-spiffeID", "spiffe://example.org/workload", "-ttl", "10", "-x509SVIDTTL", "20", "-jwtSVIDTTL", "30"},
expErrPretty: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
expErrJSON: "Error: use x509SVIDTTL and jwtSVIDTTL flags or the deprecated ttl flag\n",
},
{
name: "Server error",
args: []string{"-entryID", "entry-id", "-spiffeID", "spiffe://example.org/workload", "-parentID", "spiffe://example.org/parent", "-selector", "unix:uid:1"},
@ -495,58 +453,6 @@ DNS name : ung1000
Admin : true
Hint : external
`, time.Unix(1552410266, 0).UTC()),
expOutJSON: fmt.Sprintf(`{
"results": [
{
"status": {
"code": 0,
"message": "OK"
},
"entry": %s
}
]
}`, entry0AdminJSON),
},
{
name: "Update succeeds using deprecated command line arguments",
args: []string{
"-entryID", "entry-id",
"-spiffeID", "spiffe://example.org/workload",
"-parentID", "spiffe://example.org/parent",
"-selector", "zebra:zebra:2000",
"-selector", "alpha:alpha:2000",
"-ttl", "60",
"-federatesWith", "spiffe://domaina.test",
"-federatesWith", "spiffe://domainb.test",
"-admin",
"-entryExpiry", "1552410266",
"-dns", "unu1000",
"-dns", "ung1000",
"-downstream",
"-hint", "external",
},
expReq: &entryv1.BatchUpdateEntryRequest{
Entries: []*types.Entry{entry5},
},
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
Hint : external
`, time.Unix(1552410266, 0).UTC()),
expOutJSON: fmt.Sprintf(`{
"results": [

View File

@ -21,7 +21,7 @@ const (
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-node
If set, this entry will be applied to matching nodes rather than workloads
-output value
@ -36,10 +36,8 @@ const (
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-ttl int
The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
showUsage = `Usage of entry show:
-downstream
@ -83,7 +81,7 @@ const (
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-output value
Desired output format (pretty, json); default: pretty.
-parentID string
@ -96,10 +94,8 @@ const (
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-ttl int
The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
deleteUsage = `Usage of entry delete:
-entryID string
@ -112,9 +108,25 @@ const (
Path to the SPIRE Server API socket (default "/tmp/spire-server/private/api.sock")
`
countUsage = `Usage of entry count:
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-federatesWith value
SPIFFE ID of a trust domain an entry is federate with. Can be used more than once
-hint string
The Hint of the records to count (optional)
-matchFederatesWithOn string
The match mode used when filtering by federates with. Options: exact, any, superset and subset (default "superset")
-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.
-parentID string
The Parent ID of the records to count
-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")
-spiffeID string
The SPIFFE ID of the records to count
`
)

View File

@ -10,8 +10,8 @@ import (
"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/cli/common"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/spiretest"
"github.com/spiffe/spire/test/util"
"github.com/stretchr/testify/assert"
@ -45,7 +45,6 @@ func TestParseEntryJSON(t *testing.T) {
}
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.name, func(t *testing.T) {
p := testCase.testDataPath
@ -155,7 +154,7 @@ func (e *entryTest) afterTest(t *testing.T) {
}
func (e *entryTest) args(extra ...string) []string {
return append([]string{common.AddrArg, e.addr}, extra...)
return append([]string{clitest.AddrArg, e.addr}, extra...)
}
type fakeEntryServer struct {
@ -242,7 +241,7 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *entry
})
test := &entryTest{
addr: common.GetAddr(addr),
addr: clitest.GetAddr(addr),
stdin: stdin,
stdout: stdout,
stderr: stderr,

View File

@ -21,7 +21,7 @@ const (
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-node
@ -36,10 +36,8 @@ const (
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-ttl int
The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
showUsage = `Usage of entry show:
-downstream
@ -83,7 +81,7 @@ const (
-hint string
The entry hint, used to disambiguate entries with the same SPIFFE ID
-jwtSVIDTTL int
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.
-namedPipeName string
Pipe name of the SPIRE Server API named pipe (default "\\spire-server\\private\\api")
-output value
@ -96,10 +94,8 @@ const (
The SPIFFE ID that this record represents
-storeSVID
A boolean value that, when set, indicates that the resulting issued SVID from this entry must be stored through an SVIDStore plugin
-ttl int
The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version
-x509SVIDTTL int
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag
The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.
`
deleteUsage = `Usage of entry delete:
-entryID string
@ -112,9 +108,25 @@ const (
Desired output format (pretty, json); default: pretty.
`
countUsage = `Usage of entry count:
-downstream
A boolean value that, when set, indicates that the entry describes a downstream SPIRE server
-federatesWith value
SPIFFE ID of a trust domain an entry is federate with. Can be used more than once
-hint string
The Hint of the records to count (optional)
-matchFederatesWithOn string
The match mode used when filtering by federates with. Options: exact, any, superset and subset (default "superset")
-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.
-parentID string
The Parent ID of the records to count
-selector value
A colon-delimited type:value selector. Can be used more than once
-spiffeID string
The SPIFFE ID of the records to count
`
)

View File

@ -11,9 +11,9 @@ import (
"github.com/spiffe/go-spiffe/v2/spiffeid"
trustdomainv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/trustdomain/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/fakes/fakeserverca"
"github.com/spiffe/spire/test/spiretest"
"github.com/stretchr/testify/require"
@ -124,7 +124,7 @@ func (c *cmdTest) afterTest(t *testing.T) {
}
func (c *cmdTest) args(extra ...string) []string {
return append([]string{common.AddrArg, c.addr}, extra...)
return append([]string{clitest.AddrArg, c.addr}, extra...)
}
type fakeServer struct {
@ -222,7 +222,7 @@ func setupTest(t *testing.T, newClient func(*common_cli.Env) cli.Command) *cmdTe
})
test := &cmdTest{
addr: common.GetAddr(addr),
addr: clitest.GetAddr(addr),
stdin: stdin,
stdout: stdout,
stderr: stderr,
@ -241,7 +241,7 @@ func createBundle(t *testing.T, trustDomain string) (*types.Bundle, string) {
td := spiffeid.RequireTrustDomainFromString(trustDomain)
bundlePath := path.Join(t.TempDir(), "bundle.pem")
ca := fakeserverca.New(t, td, &fakeserverca.Options{})
require.NoError(t, os.WriteFile(bundlePath, pemutil.EncodeCertificates(ca.Bundle()), 0600))
require.NoError(t, os.WriteFile(bundlePath, pemutil.EncodeCertificates(ca.Bundle()), 0o600))
return &types.Bundle{
TrustDomain: td.Name(),
@ -253,13 +253,13 @@ func createBundle(t *testing.T, trustDomain string) (*types.Bundle, string) {
func createCorruptedBundle(t *testing.T) string {
bundlePath := path.Join(t.TempDir(), "bundle.pem")
require.NoError(t, os.WriteFile(bundlePath, []byte("corrupted-bundle"), 0600))
require.NoError(t, os.WriteFile(bundlePath, []byte("corrupted-bundle"), 0o600))
return bundlePath
}
func createJSONDataFile(t *testing.T, data string) string {
jsonDataFilePath := path.Join(t.TempDir(), "bundle.pem")
require.NoError(t, os.WriteFile(jsonDataFilePath, []byte(data), 0600))
require.NoError(t, os.WriteFile(jsonDataFilePath, []byte(data), 0o600))
return jsonDataFilePath
}

View File

@ -9,9 +9,10 @@ import (
"github.com/mitchellh/cli"
trustdomainv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/trustdomain/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
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"
)
@ -26,7 +27,7 @@ func NewCreateCommand() cli.Command {
}
func newCreateCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &createCommand{env: env})
return serverutil.AdaptCommand(env, &createCommand{env: env})
}
type createCommand struct {
@ -52,7 +53,7 @@ func (c *createCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, c.prettyPrintCreate)
}
func (c *createCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
func (c *createCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
federationRelationships, err := getRelationships(c.config, c.path)
if err != nil {
return err
@ -101,7 +102,7 @@ func (c *createCommand) prettyPrintCreate(env *commoncli.Env, results ...any) er
for _, r := range failed {
env.Println()
env.ErrPrintf("Failed to create the following federation relationship (code: %s, msg: %q):\n",
codes.Code(r.Status.Code),
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printFederationRelationship(r.FederationRelationship, env.ErrPrintf)
}

View File

@ -9,9 +9,10 @@ import (
"github.com/mitchellh/cli"
trustdomainv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/trustdomain/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
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"
)
@ -21,7 +22,7 @@ func NewUpdateCommand() cli.Command {
}
func newUpdateCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &updateCommand{env: env})
return serverutil.AdaptCommand(env, &updateCommand{env: env})
}
type updateCommand struct {
@ -47,7 +48,7 @@ func (c *updateCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, c.prettyPrintUpdate)
}
func (c *updateCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
func (c *updateCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient serverutil.ServerClient) error {
federationRelationships, err := getRelationships(c.config, c.path)
if err != nil {
return err
@ -97,7 +98,7 @@ func (c *updateCommand) prettyPrintUpdate(env *commoncli.Env, results ...any) er
for _, r := range failed {
env.Println()
env.ErrPrintf("Failed to update the following federation relationship (code: %s, msg: %q):\n",
codes.Code(r.Status.Code),
util.MustCast[codes.Code](r.Status.Code),
r.Status.Message)
printFederationRelationship(r.FederationRelationship, env.ErrPrintf)
}

View File

@ -6,8 +6,8 @@ import (
"testing"
"github.com/mitchellh/cli"
"github.com/spiffe/spire/cmd/spire-server/cli/common"
common_cli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/test/clitest"
"github.com/spiffe/spire/test/spiretest"
"github.com/stretchr/testify/suite"
"google.golang.org/grpc"
@ -58,24 +58,24 @@ func (s *HealthCheckSuite) TestBadFlags() {
}
func (s *HealthCheckSuite) TestFailsIfEndpointDoesNotExist() {
code := s.cmd.Run([]string{common.AddrArg, common.AddrValue})
code := s.cmd.Run([]string{clitest.AddrArg, clitest.AddrValue})
s.NotEqual(0, code, "exit code")
s.Equal("", s.stdout.String(), "stdout")
spiretest.AssertHasPrefix(s.T(), s.stderr.String(), common.AddrError)
spiretest.AssertHasPrefix(s.T(), s.stderr.String(), "Error: server is unhealthy: unable to determine health\n")
}
func (s *HealthCheckSuite) TestFailsIfEndpointDoesNotExistVerbose() {
code := s.cmd.Run([]string{common.AddrArg, common.AddrValue, "-verbose"})
code := s.cmd.Run([]string{clitest.AddrArg, clitest.AddrValue, "-verbose"})
s.NotEqual(0, code, "exit code")
s.Equal("", s.stdout.String(), "stdout")
spiretest.AssertHasPrefix(s.T(), s.stderr.String(), common.AddrError)
s.Equal("Checking server health...\n", s.stdout.String(), "stdout")
spiretest.AssertHasPrefix(s.T(), s.stderr.String(), "Failed to check health: "+clitest.AddrError)
}
func (s *HealthCheckSuite) TestSucceedsIfServingStatusServing() {
addr := spiretest.StartGRPCServer(s.T(), func(srv *grpc.Server) {
grpc_health_v1.RegisterHealthServer(srv, withStatus(grpc_health_v1.HealthCheckResponse_SERVING))
})
code := s.cmd.Run([]string{common.AddrArg, common.GetAddr(addr)})
code := s.cmd.Run([]string{clitest.AddrArg, clitest.GetAddr(addr)})
s.Equal(0, code, "exit code")
s.Equal("Server is healthy.\n", s.stdout.String(), "stdout")
s.Equal("", s.stderr.String(), "stderr")
@ -85,7 +85,7 @@ func (s *HealthCheckSuite) TestSucceedsIfServingStatusServingVerbose() {
addr := spiretest.StartGRPCServer(s.T(), func(srv *grpc.Server) {
grpc_health_v1.RegisterHealthServer(srv, withStatus(grpc_health_v1.HealthCheckResponse_SERVING))
})
code := s.cmd.Run([]string{common.AddrArg, common.GetAddr(addr), "-verbose"})
code := s.cmd.Run([]string{clitest.AddrArg, clitest.GetAddr(addr), "-verbose"})
s.Equal(0, code, "exit code")
s.Equal(`Checking server health...
Server is healthy.
@ -97,7 +97,7 @@ func (s *HealthCheckSuite) TestFailsIfServiceStatusOther() {
addr := spiretest.StartGRPCServer(s.T(), func(srv *grpc.Server) {
grpc_health_v1.RegisterHealthServer(srv, withStatus(grpc_health_v1.HealthCheckResponse_NOT_SERVING))
})
code := s.cmd.Run([]string{common.AddrArg, common.GetAddr(addr), "-verbose"})
code := s.cmd.Run([]string{clitest.AddrArg, clitest.GetAddr(addr), "-verbose"})
s.NotEqual(0, code, "exit code")
s.Equal(`Checking server health...
`, s.stdout.String(), "stdout")

View File

@ -7,15 +7,17 @@ import (
"fmt"
"time"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/go-jose/go-jose/v4/jwt"
"github.com/mitchellh/cli"
"github.com/spiffe/go-spiffe/v2/spiffeid"
svidv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/svid/v1"
"github.com/spiffe/spire-api-sdk/proto/spire/api/types"
"github.com/spiffe/spire/cmd/spire-server/util"
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/diskutil"
"github.com/spiffe/spire/pkg/common/jwtsvid"
"github.com/spiffe/spire/pkg/common/util"
)
func NewMintCommand() cli.Command {
@ -23,7 +25,7 @@ func NewMintCommand() cli.Command {
}
func newMintCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &mintCommand{env: env})
return serverutil.AdaptCommand(env, &mintCommand{env: env})
}
type mintCommand struct {
@ -38,6 +40,7 @@ type mintCommand struct {
func (c *mintCommand) Name() string {
return "jwt mint"
}
func (c *mintCommand) Synopsis() string {
return "Mints a JWT-SVID"
}
@ -50,7 +53,7 @@ func (c *mintCommand) AppendFlags(fs *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, fs, c.env, prettyPrintMint)
}
func (c *mintCommand) Run(ctx context.Context, env *commoncli.Env, serverClient util.ServerClient) error {
func (c *mintCommand) Run(ctx context.Context, env *commoncli.Env, serverClient serverutil.ServerClient) error {
if c.spiffeID == "" {
return errors.New("spiffeID must be specified")
}
@ -61,13 +64,18 @@ func (c *mintCommand) Run(ctx context.Context, env *commoncli.Env, serverClient
if err != nil {
return err
}
ttl, err := ttlToSeconds(c.ttl)
if err != nil {
return fmt.Errorf("invalid value for TTL: %w", err)
}
client := serverClient.NewSVIDClient()
resp, err := client.MintJWTSVID(ctx, &svidv1.MintJWTSVIDRequest{Id: &types.SPIFFEID{
TrustDomain: spiffeID.TrustDomain().Name(),
Path: spiffeID.Path(),
},
Ttl: ttlToSeconds(c.ttl),
resp, err := client.MintJWTSVID(ctx, &svidv1.MintJWTSVIDRequest{
Id: &types.SPIFFEID{
TrustDomain: spiffeID.TrustDomain().Name(),
Path: spiffeID.Path(),
},
Ttl: ttl,
Audience: c.audience,
})
if err != nil {
@ -108,8 +116,9 @@ func (c *mintCommand) validateToken(token string, env *commoncli.Env) error {
return nil
}
func getJWTSVIDEndOfLife(token string) (time.Time, error) {
t, err := jwt.ParseSigned(token)
t, err := jwt.ParseSigned(token, jwtsvid.AllowedSignatureAlgorithms)
if err != nil {
return time.Time{}, err
}
@ -128,8 +137,8 @@ func getJWTSVIDEndOfLife(token string) (time.Time, error) {
// ttlToSeconds returns the number of seconds in a duration, rounded up to
// the nearest second
func ttlToSeconds(ttl time.Duration) int32 {
return int32((ttl + time.Second - 1) / time.Second)
func ttlToSeconds(ttl time.Duration) (int32, error) {
return util.CheckedCast[int32]((ttl + time.Second - 1) / time.Second)
}
func prettyPrintMint(env *commoncli.Env, results ...any) error {

View File

@ -12,13 +12,13 @@ import (
"testing"
"time"
"github.com/go-jose/go-jose/v3"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/go-jose/go-jose/v4"
"github.com/go-jose/go-jose/v4/jwt"
svidv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/svid/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/assert"
"github.com/stretchr/testify/require"
@ -35,7 +35,7 @@ qNV3lKIL59N7G2B4ojbhfSNneSIIpP448uPxUnaunaQZ+/m7+x9oobIp
availableFormats = []string{"pretty", "json"}
expectedUsage = `Usage of jwt mint:
-audience value
Audience claim that will be included in the SVID. Can be used more than once.` + common.AddrOutputUsage +
Audience claim that will be included in the SVID. Can be used more than once.` + clitest.AddrOutputUsage +
` -spiffeID string
SPIFFE ID of the JWT-SVID
-ttl duration
@ -81,7 +81,7 @@ func TestMintRun(t *testing.T) {
builder := jwt.Signed(signer).Claims(jwt.Claims{
Expiry: jwt.NewNumericDate(expiry),
})
token, err := builder.CompactSerialize()
token, err := builder.Serialize()
require.NoError(t, err)
// Create expired token
@ -89,7 +89,7 @@ func TestMintRun(t *testing.T) {
builder = jwt.Signed(signer).Claims(jwt.Claims{
Expiry: jwt.NewNumericDate(expiredAt),
})
expiredToken, err := builder.CompactSerialize()
expiredToken, err := builder.Serialize()
require.NoError(t, err)
testCases := []struct {
@ -205,7 +205,8 @@ func TestMintRun(t *testing.T) {
"hint": "",
"issued_at": "1628500000"
}
}`, token)},
}`, token),
},
{
name: "write on invalid path",
@ -324,7 +325,7 @@ func TestMintRun(t *testing.T) {
BaseDir: dir,
})
args := []string{common.AddrArg, common.GetAddr(addr)}
args := []string{clitest.AddrArg, clitest.GetAddr(addr)}
if tt.spiffeID != "" {
args = append(args, "-spiffeID", tt.spiffeID)
}

View File

@ -0,0 +1,86 @@
package jwt
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewJWTActivateCommand creates a new "jwt activate" subcommand for "localauthority" command.
func NewJWTActivateCommand() cli.Command {
return NewJWTActivateCommandWithEnv(commoncli.DefaultEnv)
}
// NewJWTActivateCommandWithEnv creates a new "jwt activate" subcommand for "localauthority" command
// using the environment specified
func NewJWTActivateCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtActivateCommand{env: env})
}
type jwtActivateCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *jwtActivateCommand) Name() string {
return "localauthority jwt activate"
}
func (*jwtActivateCommand) Synopsis() string {
return "Activates a prepared JWT authority for use, which will cause it to be used for all JWT signing operations serviced by this server going forward"
}
func (c *jwtActivateCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the JWT authority to activate")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintJWTActivate)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority jwt activate` CLI command
func (c *jwtActivateCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.ActivateJWTAuthority(ctx, &localauthorityv1.ActivateJWTAuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not activate JWT authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func (c *jwtActivateCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}
func prettyPrintJWTActivate(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.ActivateJWTAuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Activated JWT authority:")
if r.ActivatedAuthority == nil {
return errors.New("internal error: expected to have activated JWT authority information")
}
authoritycommon.PrettyPrintJWTAuthorityState(env, r.ActivatedAuthority)
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package jwt_test
var (
jwtActivateUsage = `Usage of localauthority jwt activate:
-authorityID string
The authority ID of the JWT authority to activate
-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

@ -0,0 +1,92 @@
package jwt_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestJWTActivateHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTActivateCommandWithEnv)
test.Client.Help()
require.Equal(t, jwtActivateUsage, test.Stderr.String())
}
func TestJWTActivateSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTActivateCommandWithEnv)
require.Equal(t, "Activates a prepared JWT authority for use, which will cause it to be used for all JWT signing operations serviced by this server going forward", test.Client.Synopsis())
}
func TestJWTActivate(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
active, prepared *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
},
expectStdoutPretty: "Activated JWT authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n",
expectStdoutJSON: `{"activated_authority":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":""}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not activate JWT authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "prepared-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not activate JWT authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTActivateCommandWithEnv)
test.Server.ActiveJWT = tt.active
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package jwt_test
var (
jwtActivateUsage = `Usage of localauthority jwt activate:
-authorityID string
The authority ID of the JWT authority to activate
-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

@ -0,0 +1,70 @@
package jwt
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewJWTPrepareCommand creates a new "jwt prepare" subcommand for "localauthority" command.
func NewJWTPrepareCommand() cli.Command {
return NewJWTPrepareCommandWithEnv(commoncli.DefaultEnv)
}
// NewJWTPrepareCommandWithEnv creates a new "jwt prepare" subcommand for "localauthority" command
// using the environment specified
func NewJWTPrepareCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtPrepareCommand{env: env})
}
type jwtPrepareCommand struct {
printer cliprinter.Printer
env *commoncli.Env
}
func (c *jwtPrepareCommand) Name() string {
return "localauthority jwt prepare"
}
func (*jwtPrepareCommand) Synopsis() string {
return "Prepares a new JWT authority for use by generating a new key and injecting it into the bundle"
}
func (c *jwtPrepareCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintJWTPrepare)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority jwt prepare` CLI command
func (c *jwtPrepareCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
client := serverClient.NewLocalAuthorityClient()
resp, err := client.PrepareJWTAuthority(ctx, &localauthorityv1.PrepareJWTAuthorityRequest{})
if err != nil {
return fmt.Errorf("could not prepare JWT authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func prettyPrintJWTPrepare(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.PrepareJWTAuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Prepared JWT authority:")
if r.PreparedAuthority == nil {
return errors.New("internal error: expected to have prepared JWT authority information")
}
authoritycommon.PrettyPrintJWTAuthorityState(env, r.PreparedAuthority)
return nil
}

View File

@ -0,0 +1,12 @@
//go:build !windows
package jwt_test
var (
jwtPrepareUsage = `Usage of localauthority jwt prepare:
-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

@ -0,0 +1,78 @@
package jwt_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestJWTPrepareHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTPrepareCommandWithEnv)
test.Client.Help()
require.Equal(t, jwtPrepareUsage, test.Stderr.String())
}
func TestJWTPrepareSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTPrepareCommandWithEnv)
require.Equal(t, "Prepares a new JWT authority for use by generating a new key and injecting it into the bundle", test.Client.Synopsis())
}
func TestJWTPrepare(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
prepared *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
expectStdoutPretty: "Prepared JWT authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n",
expectStdoutJSON: `{"prepared_authority":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":""}}`,
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
},
},
{
name: "wrong UDS path",
args: []string{clitest.AddrArg, clitest.AddrValue},
expectReturnCode: 1,
expectStderr: "Error: could not prepare JWT authority: " + clitest.AddrError,
},
{
name: "server error",
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not prepare JWT authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTPrepareCommandWithEnv)
test.Server.PreparedJWT = tt.prepared
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,12 @@
//go:build windows
package jwt_test
var (
jwtPrepareUsage = `Usage of localauthority jwt prepare:
-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

@ -0,0 +1,86 @@
package jwt
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewJWTActivateCommand creates a new "jwt revoke" subcommand for "localauthority" command.
func NewJWTRevokeCommand() cli.Command {
return NewJWTRevokeCommandWithEnv(commoncli.DefaultEnv)
}
// NewJWTActivateCommandWithEnv creates a new "jwt revoke" subcommand for "localauthority" command
// using the environment specified
func NewJWTRevokeCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtRevokeCommand{env: env})
}
type jwtRevokeCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *jwtRevokeCommand) Name() string {
return "localauthority jwt revoke"
}
func (*jwtRevokeCommand) Synopsis() string {
return "Revokes the previously active JWT authority by removing it from the bundle and propagating this update throughout the cluster"
}
func (c *jwtRevokeCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the JWT authority to revoke")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintJWTRevoke)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority jwt revoke` CLI command
func (c *jwtRevokeCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.RevokeJWTAuthority(ctx, &localauthorityv1.RevokeJWTAuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not revoke JWT authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func (c *jwtRevokeCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}
func prettyPrintJWTRevoke(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.RevokeJWTAuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Revoked JWT authority:")
if r.RevokedAuthority == nil {
return errors.New("internal error: expected to have revoked JWT authority information")
}
authoritycommon.PrettyPrintJWTAuthorityState(env, r.RevokedAuthority)
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package jwt_test
var (
jwtRevokeUsage = `Usage of localauthority jwt revoke:
-authorityID string
The authority ID of the JWT authority to revoke
-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

@ -0,0 +1,88 @@
package jwt_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestJWTRevokeHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTRevokeCommandWithEnv)
test.Client.Help()
require.Equal(t, jwtRevokeUsage, test.Stderr.String())
}
func TestJWTRevokeSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTRevokeCommandWithEnv)
require.Equal(t, "Revokes the previously active JWT authority by removing it from the bundle and propagating this update throughout the cluster", test.Client.Synopsis())
}
func TestJWTRevoke(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
revoked *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
revoked: &localauthorityv1.AuthorityState{
AuthorityId: "revoked-id",
ExpiresAt: 1001,
},
expectStdoutPretty: "Revoked JWT authority:\n Authority ID: revoked-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n",
expectStdoutJSON: `{"revoked_authority":{"authority_id":"revoked-id","expires_at":"1001","upstream_authority_subject_key_id":""}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not revoke JWT authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "tainted-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not revoke JWT authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTRevokeCommandWithEnv)
test.Server.RevokedJWT = tt.revoked
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package jwt_test
var (
jwtRevokeUsage = `Usage of localauthority jwt revoke:
-authorityID string
The authority ID of the JWT authority to revoke
-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

@ -0,0 +1,84 @@
package jwt
import (
"context"
"errors"
"flag"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewJWTShowCommand creates a new "jwt show" subcommand for "localauthority" command.
func NewJWTShowCommand() cli.Command {
return NewJWTShowCommandWithEnv(commoncli.DefaultEnv)
}
// NewJWTShowCommandWithEnv creates a new "jwt show" subcommand for "localauthority" command
// using the environment specified
func NewJWTShowCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtShowCommand{env: env})
}
type jwtShowCommand struct {
printer cliprinter.Printer
env *commoncli.Env
}
func (c *jwtShowCommand) Name() string {
return "localauthority jwt show"
}
func (*jwtShowCommand) Synopsis() string {
return "Shows the local JWT authorities"
}
func (c *jwtShowCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintJWTShow)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority jwt show` CLI command
func (c *jwtShowCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
client := serverClient.NewLocalAuthorityClient()
resp, err := client.GetJWTAuthorityState(ctx, &localauthorityv1.GetJWTAuthorityStateRequest{})
if err != nil {
return err
}
return c.printer.PrintProto(resp)
}
func prettyPrintJWTShow(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.GetJWTAuthorityStateResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Active JWT authority:")
if r.Active != nil {
authoritycommon.PrettyPrintJWTAuthorityState(env, r.Active)
} else {
env.Println(" No active JWT authority found")
}
env.Println()
env.Println("Prepared JWT authority:")
if r.Prepared != nil {
authoritycommon.PrettyPrintJWTAuthorityState(env, r.Prepared)
} else {
env.Println(" No prepared JWT authority found")
}
env.Println()
env.Println("Old JWT authority:")
if r.Old != nil {
authoritycommon.PrettyPrintJWTAuthorityState(env, r.Old)
} else {
env.Println(" No old JWT authority found")
}
return nil
}

View File

@ -0,0 +1,12 @@
//go:build !windows
package jwt_test
var (
jwtShowUsage = `Usage of localauthority jwt 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")
`
)

View File

@ -0,0 +1,133 @@
package jwt_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestJWTShowHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTShowCommandWithEnv)
test.Client.Help()
require.Equal(t, jwtShowUsage, test.Stderr.String())
}
func TestJWTShowSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTShowCommandWithEnv)
require.Equal(t, "Shows the local JWT authorities", test.Client.Synopsis())
}
func TestJWTShow(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
active,
prepared,
old *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
},
expectStdoutPretty: "Active JWT authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n\nPrepared JWT authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n\nOld JWT authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":""},"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":""},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":""}}`,
},
{
name: "success - no active",
expectReturnCode: 0,
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
},
expectStdoutPretty: "Active JWT authority:\n No active JWT authority found\n\nPrepared JWT authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n\nOld JWT authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n",
expectStdoutJSON: `{"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":""},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":""}}`,
},
{
name: "success - no prepared",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
},
expectStdoutPretty: "Active JWT authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n\nPrepared JWT authority:\n No prepared JWT authority found\n\nOld JWT authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":""},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":""}}`,
},
{
name: "success - no old",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
},
expectStdoutPretty: "Active JWT authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n\nPrepared JWT authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n\nOld JWT authority:\n No old JWT authority found\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":""},"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":""}}`,
},
{
name: "wrong UDS path",
args: []string{clitest.AddrArg, clitest.AddrValue},
expectReturnCode: 1,
expectStderr: "Error: " + clitest.AddrError,
},
{
name: "server error",
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTShowCommandWithEnv)
test.Server.ActiveJWT = tt.active
test.Server.PreparedJWT = tt.prepared
test.Server.OldJWT = tt.old
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,12 @@
//go:build windows
package jwt_test
var (
jwtShowUsage = `Usage of localauthority jwt 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.
`
)

View File

@ -0,0 +1,90 @@
package jwt
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewJWTTaintCommand creates a new "jwt taint" subcommand for "localauthority" command.
func NewJWTTaintCommand() cli.Command {
return newJWTTaintCommand(commoncli.DefaultEnv)
}
// NewJWTTaintCommandWithEnv creates a new "jwt taint" subcommand for "localauthority" command
// using the environment specified
func NewJWTTaintCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtTaintCommand{env: env})
}
func newJWTTaintCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &jwtTaintCommand{env: env})
}
type jwtTaintCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *jwtTaintCommand) Name() string {
return "localauthority jwt taint"
}
func (*jwtTaintCommand) Synopsis() string {
return "Marks the previously active JWT authority as being tainted"
}
func (c *jwtTaintCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the JWT authority to taint")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintJWTTaint)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority jwt taint` CLI command
func (c *jwtTaintCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.TaintJWTAuthority(ctx, &localauthorityv1.TaintJWTAuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not taint JWT authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func prettyPrintJWTTaint(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.TaintJWTAuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Tainted JWT authority:")
if r.TaintedAuthority == nil {
return errors.New("internal error: expected to have tainted JWT authority information")
}
authoritycommon.PrettyPrintJWTAuthorityState(env, r.TaintedAuthority)
return nil
}
func (c *jwtTaintCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package jwt_test
var (
jwtTaintUsage = `Usage of localauthority jwt taint:
-authorityID string
The authority ID of the JWT authority to taint
-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

@ -0,0 +1,88 @@
package jwt_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/jwt"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestJWTTaintHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTTaintCommandWithEnv)
test.Client.Help()
require.Equal(t, jwtTaintUsage, test.Stderr.String())
}
func TestJWTTaintSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTTaintCommandWithEnv)
require.Equal(t, "Marks the previously active JWT authority as being tainted", test.Client.Synopsis())
}
func TestJWTTaint(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
tainted *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
tainted: &localauthorityv1.AuthorityState{
AuthorityId: "tainted-id",
ExpiresAt: 1001,
},
expectStdoutPretty: "Tainted JWT authority:\n Authority ID: tainted-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n",
expectStdoutJSON: `{"tainted_authority":{"authority_id":"tainted-id","expires_at":"1001","upstream_authority_subject_key_id":""}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not taint JWT authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "old-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not taint JWT authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, jwt.NewJWTTaintCommandWithEnv)
test.Server.TaintedJWT = tt.tainted
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package jwt_test
var (
jwtTaintUsage = `Usage of localauthority jwt taint:
-authorityID string
The authority ID of the JWT authority to taint
-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

@ -0,0 +1,87 @@
package x509
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewX509ActivateCommand creates a new "x509 activate" subcommand for "localauthority" command.
func NewX509ActivateCommand() cli.Command {
return NewX509ActivateCommandWithEnv(commoncli.DefaultEnv)
}
// NewX509ActivateCommandWithEnv creates a new "x509 activate" subcommand for "localauthority" command
// using the environment specified
func NewX509ActivateCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509ActivateCommand{env: env})
}
type x509ActivateCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *x509ActivateCommand) Name() string {
return "localauthority x509 activate"
}
func (*x509ActivateCommand) Synopsis() string {
return "Activates a prepared X.509 authority for use, which will cause it to be used for all X.509 signing operations serviced by this server going forward"
}
func (c *x509ActivateCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the X.509 authority to activate")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintX509Activate)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority x509 activate` CLI command
func (c *x509ActivateCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.ActivateX509Authority(ctx, &localauthorityv1.ActivateX509AuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not activate X.509 authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func (c *x509ActivateCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}
func prettyPrintX509Activate(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.ActivateX509AuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Activated X.509 authority:")
if r.ActivatedAuthority == nil {
return errors.New("internal error: expected to have activated X.509 authority information")
}
authoritycommon.PrettyPrintX509AuthorityState(env, r.ActivatedAuthority)
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package x509_test
var (
x509ActivateUsage = `Usage of localauthority x509 activate:
-authorityID string
The authority ID of the X.509 authority to activate
-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

@ -0,0 +1,94 @@
package x509_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestX509ActivateHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ActivateCommandWithEnv)
test.Client.Help()
require.Equal(t, x509ActivateUsage, test.Stderr.String())
}
func TestX509ActivateSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ActivateCommandWithEnv)
require.Equal(t, "Activates a prepared X.509 authority for use, which will cause it to be used for all X.509 signing operations serviced by this server going forward", test.Client.Synopsis())
}
func TestX509Activate(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
active, prepared *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Activated X.509 authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id",
expectStdoutJSON: `{"activated_authority":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not activate X.509 authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "prepared-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not activate X.509 authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ActivateCommandWithEnv)
test.Server.ActiveX509 = tt.active
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package x509_test
var (
x509ActivateUsage = `Usage of localauthority x509 activate:
-authorityID string
The authority ID of the X.509 authority to activate
-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

@ -0,0 +1,71 @@
package x509
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewX509PrepareCommand creates a new "x509 prepare" subcommand for "localauthority" command.
func NewX509PrepareCommand() cli.Command {
return NewX509PrepareCommandWithEnv(commoncli.DefaultEnv)
}
// NewX509PrepareCommandWithEnv creates a new "x509 prepare" subcommand for "localauthority" command
// using the environment specified
func NewX509PrepareCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509PrepareCommand{env: env})
}
type x509PrepareCommand struct {
printer cliprinter.Printer
env *commoncli.Env
}
func (c *x509PrepareCommand) Name() string {
return "localauthority x509 prepare"
}
func (*x509PrepareCommand) Synopsis() string {
return "Prepares a new X.509 authority for use by generating a new key and injecting the resulting CA certificate into the bundle"
}
func (c *x509PrepareCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintX509Prepare)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority x509 prepare` CLI command
func (c *x509PrepareCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
client := serverClient.NewLocalAuthorityClient()
resp, err := client.PrepareX509Authority(ctx, &localauthorityv1.PrepareX509AuthorityRequest{})
if err != nil {
return fmt.Errorf("could not prepare X.509 authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func prettyPrintX509Prepare(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.PrepareX509AuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Prepared X.509 authority:")
if r.PreparedAuthority == nil {
return errors.New("internal error: expected to have prepared X.509 authority information")
}
authoritycommon.PrettyPrintX509AuthorityState(env, r.PreparedAuthority)
return nil
}

View File

@ -0,0 +1,12 @@
//go:build !windows
package x509_test
var (
x509PrepareUsage = `Usage of localauthority x509 prepare:
-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

@ -0,0 +1,79 @@
package x509_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestX509PrepareHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509PrepareCommandWithEnv)
test.Client.Help()
require.Equal(t, x509PrepareUsage, test.Stderr.String())
}
func TestX509PrepareSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509PrepareCommandWithEnv)
require.Equal(t, "Prepares a new X.509 authority for use by generating a new key and injecting the resulting CA certificate into the bundle", test.Client.Synopsis())
}
func TestX509Prepare(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
prepared *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
expectStdoutPretty: "Prepared X.509 authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id",
expectStdoutJSON: `{"prepared_authority":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
},
{
name: "wrong UDS path",
args: []string{clitest.AddrArg, clitest.AddrValue},
expectReturnCode: 1,
expectStderr: "Error: could not prepare X.509 authority: " + clitest.AddrError,
},
{
name: "server error",
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not prepare X.509 authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509PrepareCommandWithEnv)
test.Server.PreparedX509 = tt.prepared
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,12 @@
//go:build windows
package x509_test
var (
x509PrepareUsage = `Usage of localauthority x509 prepare:
-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

@ -0,0 +1,87 @@
package x509
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewX509ActivateCommand creates a new "x509 revoke" subcommand for "localauthority" command.
func NewX509RevokeCommand() cli.Command {
return NewX509RevokeCommandWithEnv(commoncli.DefaultEnv)
}
// NewX509ActivateCommandWithEnv creates a new "x509 revoke" subcommand for "localauthority" command
// using the environment specified
func NewX509RevokeCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509RevokeCommand{env: env})
}
type x509RevokeCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *x509RevokeCommand) Name() string {
return "localauthority x509 revoke"
}
func (*x509RevokeCommand) Synopsis() string {
return "Revokes the previously active X.509 authority by removing it from the bundle and propagating this update throughout the cluster"
}
func (c *x509RevokeCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the X.509 authority to revoke")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintX509Revoke)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority x509 revoke` CLI command
func (c *x509RevokeCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.RevokeX509Authority(ctx, &localauthorityv1.RevokeX509AuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not revoke X.509 authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func (c *x509RevokeCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}
func prettyPrintX509Revoke(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.RevokeX509AuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Revoked X.509 authority:")
if r.RevokedAuthority == nil {
return errors.New("internal error: expected to have revoked X.509 authority information")
}
authoritycommon.PrettyPrintX509AuthorityState(env, r.RevokedAuthority)
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package x509_test
var (
x509RevokeUsage = `Usage of localauthority x509 revoke:
-authorityID string
The authority ID of the X.509 authority to revoke
-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

@ -0,0 +1,89 @@
package x509_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestX509RevokeHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509RevokeCommandWithEnv)
test.Client.Help()
require.Equal(t, x509RevokeUsage, test.Stderr.String())
}
func TestX509RevokeSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509RevokeCommandWithEnv)
require.Equal(t, "Revokes the previously active X.509 authority by removing it from the bundle and propagating this update throughout the cluster", test.Client.Synopsis())
}
func TestX509Revoke(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
revoked *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
revoked: &localauthorityv1.AuthorityState{
AuthorityId: "revoked-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Revoked X.509 authority:\n Authority ID: revoked-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id",
expectStdoutJSON: `{"revoked_authority":{"authority_id":"revoked-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not revoke X.509 authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "tainted-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not revoke X.509 authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509RevokeCommandWithEnv)
test.Server.RevokedX509 = tt.revoked
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package x509_test
var (
x509RevokeUsage = `Usage of localauthority x509 revoke:
-authorityID string
The authority ID of the X.509 authority to revoke
-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

@ -0,0 +1,85 @@
package x509
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewShowCommand creates a new "x509 show" subcommand for "localauthority" command.
func NewX509ShowCommand() cli.Command {
return NewX509ShowCommandWithEnv(commoncli.DefaultEnv)
}
// NewX509ShowCommandWithEnv creates a new "x509 show" subcommand for "localauthority" command
// using the environment specified
func NewX509ShowCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509ShowCommand{env: env})
}
type x509ShowCommand struct {
printer cliprinter.Printer
env *commoncli.Env
}
func (c *x509ShowCommand) Name() string {
return "localauthority x509 show"
}
func (*x509ShowCommand) Synopsis() string {
return "Shows the local X.509 authorities"
}
func (c *x509ShowCommand) AppendFlags(f *flag.FlagSet) {
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintX509Show)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority x509 show` CLI command
func (c *x509ShowCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
client := serverClient.NewLocalAuthorityClient()
resp, err := client.GetX509AuthorityState(ctx, &localauthorityv1.GetX509AuthorityStateRequest{})
if err != nil {
return fmt.Errorf("could not get X.509 authorities: %w", err)
}
return c.printer.PrintProto(resp)
}
func prettyPrintX509Show(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.GetX509AuthorityStateResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Active X.509 authority:")
if r.Active != nil {
authoritycommon.PrettyPrintX509AuthorityState(env, r.Active)
} else {
env.Println(" No active X.509 authority found")
}
env.Println()
env.Println("Prepared X.509 authority:")
if r.Prepared != nil {
authoritycommon.PrettyPrintX509AuthorityState(env, r.Prepared)
} else {
env.Println(" No prepared X.509 authority found")
}
env.Println()
env.Println("Old X.509 authority:")
if r.Old != nil {
authoritycommon.PrettyPrintX509AuthorityState(env, r.Old)
} else {
env.Println(" No old X.509 authority found")
}
return nil
}

View File

@ -0,0 +1,12 @@
//go:build !windows
package x509_test
var (
x509ShowUsage = `Usage of localauthority x509 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")
`
)

View File

@ -0,0 +1,142 @@
package x509_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestX509ShowHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ShowCommandWithEnv)
test.Client.Help()
require.Equal(t, x509ShowUsage, test.Stderr.String())
}
func TestX509ShowSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ShowCommandWithEnv)
require.Equal(t, "Shows the local X.509 authorities", test.Client.Synopsis())
}
func TestX509Show(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
active,
prepared,
old *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Active X.509 authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nPrepared X.509 authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nOld X.509 authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"},"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":"some-subject-key-id"},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "success - no active",
expectReturnCode: 0,
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Active X.509 authority:\n No active X.509 authority found\n\nPrepared X.509 authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nOld X.509 authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n",
expectStdoutJSON: `{"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":"some-subject-key-id"},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "success - no prepared",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
old: &localauthorityv1.AuthorityState{
AuthorityId: "old-id",
ExpiresAt: 1003,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Active X.509 authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nPrepared X.509 authority:\n No prepared X.509 authority found\n\nOld X.509 authority:\n Authority ID: old-id\n Expires at: 1970-01-01 00:16:43 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"},"old":{"authority_id":"old-id","expires_at":"1003","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "success - no old",
expectReturnCode: 0,
active: &localauthorityv1.AuthorityState{
AuthorityId: "active-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
prepared: &localauthorityv1.AuthorityState{
AuthorityId: "prepared-id",
ExpiresAt: 1002,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Active X.509 authority:\n Authority ID: active-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nPrepared X.509 authority:\n Authority ID: prepared-id\n Expires at: 1970-01-01 00:16:42 +0000 UTC\n Upstream authority Subject Key ID: some-subject-key-id\n\nOld X.509 authority:\n No old X.509 authority found\n",
expectStdoutJSON: `{"active":{"authority_id":"active-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"},"prepared":{"authority_id":"prepared-id","expires_at":"1002","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "wrong UDS path",
args: []string{clitest.AddrArg, clitest.AddrValue},
expectReturnCode: 1,
expectStderr: "Error: could not get X.509 authorities: " + clitest.AddrError,
},
{
name: "server error",
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not get X.509 authorities: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509ShowCommandWithEnv)
test.Server.ActiveX509 = tt.active
test.Server.PreparedX509 = tt.prepared
test.Server.OldX509 = tt.old
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,12 @@
//go:build windows
package x509_test
var (
x509ShowUsage = `Usage of localauthority x509 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.
`
)

View File

@ -0,0 +1,91 @@
package x509
import (
"context"
"errors"
"flag"
"fmt"
"github.com/mitchellh/cli"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
"github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon"
"github.com/spiffe/spire/cmd/spire-server/util"
commoncli "github.com/spiffe/spire/pkg/common/cli"
"github.com/spiffe/spire/pkg/common/cliprinter"
)
// NewX509TaintCommand creates a new "x509 taint" subcommand for "localauthority" command.
func NewX509TaintCommand() cli.Command {
return newX509TaintCommand(commoncli.DefaultEnv)
}
// NewX509TaintCommandWithEnv creates a new "x509 taint" subcommand for "localauthority" command
// using the environment specified
func NewX509TaintCommandWithEnv(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509TaintCommand{env: env})
}
func newX509TaintCommand(env *commoncli.Env) cli.Command {
return util.AdaptCommand(env, &x509TaintCommand{env: env})
}
type x509TaintCommand struct {
authorityID string
printer cliprinter.Printer
env *commoncli.Env
}
func (c *x509TaintCommand) Name() string {
return "localauthority x509 taint"
}
func (*x509TaintCommand) Synopsis() string {
return "Marks the previously active X.509 authority as being tainted"
}
func (c *x509TaintCommand) AppendFlags(f *flag.FlagSet) {
f.StringVar(&c.authorityID, "authorityID", "", "The authority ID of the X.509 authority to taint")
cliprinter.AppendFlagWithCustomPretty(&c.printer, f, c.env, prettyPrintX509Taint)
}
// Run executes all logic associated with a single invocation of the
// `spire-server localauthority x509 taint` CLI command
func (c *x509TaintCommand) Run(ctx context.Context, _ *commoncli.Env, serverClient util.ServerClient) error {
if err := c.validate(); err != nil {
return err
}
client := serverClient.NewLocalAuthorityClient()
resp, err := client.TaintX509Authority(ctx, &localauthorityv1.TaintX509AuthorityRequest{
AuthorityId: c.authorityID,
})
if err != nil {
return fmt.Errorf("could not taint X.509 authority: %w", err)
}
return c.printer.PrintProto(resp)
}
func prettyPrintX509Taint(env *commoncli.Env, results ...any) error {
r, ok := results[0].(*localauthorityv1.TaintX509AuthorityResponse)
if !ok {
return errors.New("internal error: cli printer; please report this bug")
}
env.Println("Tainted X.509 authority:")
if r.TaintedAuthority == nil {
return errors.New("internal error: expected to have tainted X.509 authority information")
}
authoritycommon.PrettyPrintX509AuthorityState(env, r.TaintedAuthority)
return nil
}
func (c *x509TaintCommand) validate() error {
if c.authorityID == "" {
return errors.New("an authority ID is required")
}
return nil
}

View File

@ -0,0 +1,14 @@
//go:build !windows
package x509_test
var (
x509TaintUsage = `Usage of localauthority x509 taint:
-authorityID string
The authority ID of the X.509 authority to taint
-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

@ -0,0 +1,89 @@
package x509_test
import (
"fmt"
"testing"
"github.com/gogo/status"
localauthorityv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/localauthority/v1"
authoritycommon_test "github.com/spiffe/spire/cmd/spire-server/cli/authoritycommon/test"
"github.com/spiffe/spire/cmd/spire-server/cli/localauthority/x509"
"github.com/spiffe/spire/test/clitest"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
func TestX509TaintHelp(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509TaintCommandWithEnv)
test.Client.Help()
require.Equal(t, x509TaintUsage, test.Stderr.String())
}
func TestX509TaintSynopsys(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509TaintCommandWithEnv)
require.Equal(t, "Marks the previously active X.509 authority as being tainted", test.Client.Synopsis())
}
func TestX509Taint(t *testing.T) {
for _, tt := range []struct {
name string
args []string
expectReturnCode int
expectStdoutPretty string
expectStdoutJSON string
expectStderr string
serverErr error
tainted *localauthorityv1.AuthorityState
}{
{
name: "success",
expectReturnCode: 0,
args: []string{"-authorityID", "prepared-id"},
tainted: &localauthorityv1.AuthorityState{
AuthorityId: "tainted-id",
ExpiresAt: 1001,
UpstreamAuthoritySubjectKeyId: "some-subject-key-id",
},
expectStdoutPretty: "Tainted X.509 authority:\n Authority ID: tainted-id\n Expires at: 1970-01-01 00:16:41 +0000 UTC\n",
expectStdoutJSON: `{"tainted_authority":{"authority_id":"tainted-id","expires_at":"1001","upstream_authority_subject_key_id":"some-subject-key-id"}}`,
},
{
name: "no authority id",
expectReturnCode: 1,
expectStderr: "Error: an authority ID is required\n",
},
{
name: "wrong UDS path",
args: []string{
clitest.AddrArg, clitest.AddrValue,
"-authorityID", "prepared-id",
},
expectReturnCode: 1,
expectStderr: "Error: could not taint X.509 authority: " + clitest.AddrError,
},
{
name: "server error",
args: []string{"-authorityID", "old-id"},
serverErr: status.Error(codes.Internal, "internal server error"),
expectReturnCode: 1,
expectStderr: "Error: could not taint X.509 authority: rpc error: code = Internal desc = internal server error\n",
},
} {
for _, format := range authoritycommon_test.AvailableFormats {
t.Run(fmt.Sprintf("%s using %s format", tt.name, format), func(t *testing.T) {
test := authoritycommon_test.SetupTest(t, x509.NewX509TaintCommandWithEnv)
test.Server.TaintedX509 = tt.tainted
test.Server.Err = tt.serverErr
args := tt.args
args = append(args, "-output", format)
returnCode := test.Client.Run(append(test.Args, args...))
authoritycommon_test.RequireOutputBasedOnFormat(t, format, test.Stdout.String(), tt.expectStdoutPretty, tt.expectStdoutJSON)
require.Equal(t, tt.expectStderr, test.Stderr.String())
require.Equal(t, tt.expectReturnCode, returnCode)
})
}
}
}

View File

@ -0,0 +1,14 @@
//go:build windows
package x509_test
var (
x509TaintUsage = `Usage of localauthority x509 taint:
-authorityID string
The authority ID of the X.509 authority to taint
-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.
`
)

Some files were not shown because too many files have changed in this diff Show More