Commit Graph

16 Commits

Author SHA1 Message Date
Herman Slatman
b8510dd5b2
Make the requestid an exported middleware 2024-03-07 10:41:19 +01:00
Herman Slatman
d392c169fc
Improve functional coverage of request ID integration test 2024-03-04 12:00:08 +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
a58f5956e3
Add reflection of request ID in X-Request-Id response header 2024-02-27 20:48:56 +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
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
2023-09-26 12:10:22 -07:00
Max
116ff8ed65
bump go.mod to go1.20 and associated linter fixes (#1518) 2023-08-29 11:52:13 -07:00
Mariano Cano
759aa26a57 Fix linter warning 2022-08-11 17:47:58 -07:00
Mariano Cano
90d2785776 Sanitize log entries in logging package 2022-08-11 17:44:31 -07:00
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.
2022-06-16 01:28:59 +07:00
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>
2021-03-09 14:52:13 +00:00
max furman
d368791606 Add x5c provisioner capabilities 2019-10-14 14:51:37 -07:00
Mariano Cano
3d46bc13f5 Remove http.CloseNotifier wrapper.
It's deprecated.
2019-09-19 14:36:11 -07:00
max furman
fe7973c060 wip 2019-09-19 13:17:45 -07:00
max furman
c284a2c0ab first commit 2018-10-05 21:48:36 +00:00