Commit Graph

16 Commits (master)

Author SHA1 Message Date
Herman Slatman b8510dd5b2
Make the `requestid` an exported middleware 2 months ago
Herman Slatman d392c169fc
Improve functional coverage of request ID integration test 2 months ago
Herman Slatman 06696e6492
Move user ID handling to `userid` package 2 months ago
Herman Slatman 7e5f10927f
Decouple request ID middleware from logging middleware 2 months ago
Herman Slatman a58f5956e3
Add reflection of request ID in `X-Request-Id` response header 2 months ago
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.
2 months ago
Mariano Cano 00d8d8f995
Allow to disable color in the text formatter
This commit adds support for NO_COLOR environment variable, if this is
set, colors will be disabled in the logrus text formatter.

This commit also adds support for the environment variables supported by
logrus, CLICOLOR and CLICOLOR_FORCE

Related to #1549
7 months ago
Max 116ff8ed65
bump go.mod to go1.20 and associated linter fixes (#1518) 8 months ago
Mariano Cano 759aa26a57 Fix linter warning 2 years ago
Mariano Cano 90d2785776 Sanitize log entries in logging package 2 years ago
Shulhan fe04f93d7f
all: reformat all go files with the next gofmt (Go 1.19)
There are some changes that manually edited, for example using '-' as
default list and grouping imports.
2 years ago
Dominic Evans 9ee4441a79
Log successful /health requests at Trace lvl
Adds `STEP_LOGGER_ONLY_TRACE_HEALTH_ENDPOINT` environment variable to
opt-in to only logging successful /health requests at the Trace level

Fixes #420

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
3 years ago
max furman d368791606 Add x5c provisioner capabilities 5 years ago
Mariano Cano 3d46bc13f5 Remove http.CloseNotifier wrapper.
It's deprecated.
5 years ago
max furman fe7973c060 wip 5 years ago
max furman c284a2c0ab first commit 6 years ago