diff options
author | Aaron Taylor <git@ataylor.io> | 2021-03-12 15:01:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 13:01:34 -0700 |
commit | f137b82227f7b32b2ca036a89068c806a29a5ac7 (patch) | |
tree | 29bb7f2af1aa23f381151b353d32632b8d99bd9e /caddyconfig/caddyfile/lexer_test.go | |
parent | 2a127ac3d1650052f39e93f277e1dfd8c7c730e4 (diff) |
logging: add replace filter for static value replacement (#4029)
This filter is intended to be useful in scenarios where you may want to
redact a value with a static string, giving you information that the
field did previously exist and was present, but not revealing the value
itself in the logs.
This was inspired by work on adding more complete support for removing
sensitive values from logs [1]. An example use case would be the
Authorization header in request log output, for which the value should
usually not be logged, but it may be quite useful for debugging to
confirm that the header was present in the request.
[1] https://github.com/caddyserver/caddy/issues/3958
Diffstat (limited to 'caddyconfig/caddyfile/lexer_test.go')
0 files changed, 0 insertions, 0 deletions