Commit Graph

4155 Commits

Author SHA1 Message Date
Herman Slatman
bbb80cde16 Add startup error shutdown message to log 2024-03-05 15:34:13 +01:00
Herman Slatman
f02d4546a9 Handle CA server startup errors 2024-03-05 11:08:24 +01:00
github-actions[bot]
ec223c1cc2 Merge pull request #1748 from smallstep/dependabot/go_modules/github.com/stretchr/testify-1.9.0
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
2024-03-05 00:08:25 +01:00
github-actions[bot]
b7e3e0be20 Merge pull request #1746 from smallstep/dependabot/go_modules/google.golang.org/api-0.167.0
Bump google.golang.org/api from 0.165.0 to 0.167.0
2024-03-04 16:17:50 +01:00
github-actions[bot]
022deaf610 Merge pull request #1749 from smallstep/dependabot/go_modules/github.com/prometheus/client_golang-1.19.0
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0
2024-03-04 16:17:21 +01:00
dependabot[bot]
5853c73268 Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 15:10:09 +00:00
dependabot[bot]
cf0d6f8f5c Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 15:09:44 +00:00
dependabot[bot]
69c7ca9809 Bump google.golang.org/api from 0.165.0 to 0.167.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.165.0 to 0.167.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.165.0...v0.167.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 15:08:18 +00:00
Herman Slatman
10aa48c74a Merge pull request #1743 from smallstep/herman/improve-request-id
Improve end-to-end request ID propagation
2024-03-04 13:58:21 +01:00
Herman Slatman
2a47644d31 Fix linting issue 2024-03-04 12:01:25 +01:00
Herman Slatman
d392c169fc Improve functional coverage of request ID integration test 2024-03-04 12:00:08 +01:00
Herman Slatman
7fd524f70b Default to generating request IDs using UUIDv4 format in CA 2024-03-01 01:04:50 +01:00
Herman Slatman
0898c6db97 Use UUIDv4 as automatically generated client request identifier 2024-03-01 01:04:31 +01:00
Carl Tashian
0d5c692b2c Merge pull request #1744 from smallstep/carl/readme-updates
Updated README
2024-02-28 15:00:40 -08:00
Carl Tashian
cd3e91b198 Updated README 2024-02-28 14:36:25 -08:00
Herman Slatman
b9d6bfc1eb Cleanup CA client tests by removing smallstep/assert 2024-02-28 14:39:38 +01:00
Herman Slatman
532b9df0a3 Improve CA client request ID handling 2024-02-28 13:57:37 +01:00
Herman Slatman
06696e6492 Move user ID handling to userid package 2024-02-28 13:37:51 +01:00
Herman Slatman
7e5f10927f Decouple request ID middleware from logging middleware 2024-02-28 13:18:10 +01:00
Herman Slatman
535e2a96d5 Fix the e2e request ID test (again) 2024-02-28 11:24:03 +01:00
Herman Slatman
b83b8aa079 Make random TCP address reservation more contained 2024-02-28 11:09:40 +01:00
Herman Slatman
2255857b3a Fix client shadowing and e2e request ID test case 2024-02-28 10:50:49 +01:00
Herman Slatman
5c2572c443 Add support for user provider X-Request-Id header value 2024-02-28 01:55:35 +01:00
Herman Slatman
cf8a50157f Add a basic e2e test for X-Request-Id reflection 2024-02-28 01:05:38 +01:00
Panagiotis Siatras
fb4cd6fe81 fix: Webhook-related instruments
* fix: also instrument webhooks that do not reach the wire
* fix: register the webhook instrumentation
2024-02-27 22:43:45 +02:00
Herman Slatman
a58f5956e3 Add reflection of request ID in X-Request-Id response header 2024-02-27 20:48:56 +01:00
Herman Slatman
c798735f7e Merge pull request #1542 from smallstep/herman/webhook-request-id
Propagate request ID when webhook requests are made
2024-02-27 20:07:37 +01:00
Herman Slatman
c1c2e73475 Add X-Request-Id to all requests made by our CA clients 2024-02-27 17:04:21 +01:00
Herman Slatman
4213a190d5 Use X-Request-Id as canonical request identifier (if available)
If `X-Request-Id` is available in an HTTP request made against the
CA server, it'll be used as the identifier for the request. This
slightly changes the existing behavior, which relied on the custom
`X-Smallstep-Id` header, but usage of that header is currently not
very widespread, and `X-Request-Id` is more generally known for
the use case `X-Smallstep-Id` is used for.

`X-Smallstep-Id` is currently still considered, but it'll only be
used if `X-Request-Id` is not set.
2024-02-27 16:17:09 +01:00
Herman Slatman
041b486c55 Remove usages of Sign without context 2024-02-27 14:16:21 +01:00
Herman Slatman
c16a0b70ee Remove smallstep/assert and pkg/errors from webhook tests 2024-02-27 13:44:44 +01:00
Herman Slatman
9689508709 Add tests for webhook request IDs 2024-02-27 13:39:21 +01:00
Herman Slatman
2a8b80a3e1 Merge branch 'master' into herman/webhook-request-id 2024-02-27 12:17:10 +01:00
github-actions[bot]
6ce502c50e Merge pull request #1741 from smallstep/dependabot/go_modules/github.com/go-jose/go-jose/v3-3.0.2
Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.2
2024-02-27 11:24:49 +01:00
github-actions[bot]
0d2aeff95c Merge pull request #1739 from smallstep/dependabot/go_modules/google.golang.org/grpc-1.62.0
Bump google.golang.org/grpc from 1.61.0 to 1.62.0
2024-02-27 11:17:41 +01:00
dependabot[bot]
5ee2e0274c Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.2
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.1 to 3.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/v3.0.1...v3.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-27 10:01:00 +00:00
dependabot[bot]
e4bbe8970e Bump google.golang.org/grpc from 1.61.0 to 1.62.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.0 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.0...v1.62.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-27 09:59:58 +00:00
github-actions[bot]
98a976b59e Merge pull request #1740 from smallstep/dependabot/go_modules/github.com/fxamacker/cbor/v2-2.6.0
Bump github.com/fxamacker/cbor/v2 from 2.5.0 to 2.6.0
2024-02-27 10:58:37 +01:00
github-actions[bot]
a583b59e1d Merge pull request #1738 from smallstep/dependabot/go_modules/github.com/googleapis/gax-go/v2-2.12.2
Bump github.com/googleapis/gax-go/v2 from 2.12.0 to 2.12.2
2024-02-27 10:44:39 +01:00
dependabot[bot]
0b196b0b81 Bump github.com/fxamacker/cbor/v2 from 2.5.0 to 2.6.0
Bumps [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/fxamacker/cbor/releases)
- [Commits](https://github.com/fxamacker/cbor/compare/v2.5.0...v2.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 15:49:39 +00:00
dependabot[bot]
fa941dc967 Bump github.com/googleapis/gax-go/v2 from 2.12.0 to 2.12.2
Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.12.0 to 2.12.2.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.12.0...v2.12.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 15:49:17 +00:00
Herman Slatman
bb6aae0dfc Merge pull request #1736 from patsevanton/master
Сorrection of spelling errors
2024-02-26 10:26:30 +01:00
Anton Patsev
c2dfe595f1 Сorrection of spelling errors 2024-02-24 11:50:30 +06:00
Herman Slatman
e968275a20 Merge pull request #1729 from patsevanton/master
Spelling errors and punctuation have been corrected
2024-02-21 19:24:56 +01:00
Herman Slatman
7e1b93b628 Update examples/README.md 2024-02-20 11:13:28 +01:00
github-actions[bot]
dc577e2213 Merge pull request #1724 from smallstep/dependabot/go_modules/github.com/newrelic/go-agent/v3-3.30.0
Bump github.com/newrelic/go-agent/v3 from 3.29.1 to 3.30.0
2024-02-20 11:11:59 +01:00
dependabot[bot]
3a2b426879 Bump github.com/newrelic/go-agent/v3 from 3.29.1 to 3.30.0
Bumps [github.com/newrelic/go-agent/v3](https://github.com/newrelic/go-agent) from 3.29.1 to 3.30.0.
- [Release notes](https://github.com/newrelic/go-agent/releases)
- [Changelog](https://github.com/newrelic/go-agent/blob/master/CHANGELOG.md)
- [Commits](https://github.com/newrelic/go-agent/compare/v3.29.1...v3.30.0)

---
updated-dependencies:
- dependency-name: github.com/newrelic/go-agent/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-20 09:42:25 +00:00
github-actions[bot]
f7554a0a43 Merge pull request #1725 from smallstep/dependabot/go_modules/github.com/hashicorp/vault/api/auth/kubernetes-0.6.0
Bump github.com/hashicorp/vault/api/auth/kubernetes from 0.5.0 to 0.6.0
2024-02-20 10:38:14 +01:00
github-actions[bot]
685e107bfe Merge pull request #1726 from smallstep/dependabot/go_modules/google.golang.org/api-0.165.0
Bump google.golang.org/api from 0.160.0 to 0.165.0
2024-02-20 10:37:21 +01:00
Anton Patsev
0a074cb8ff Spelling errors and punctuation have been corrected 2024-02-20 10:35:24 +06:00