summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorKévin Dunglas <dunglas@gmail.com>2021-12-02 21:51:37 +0100
committerGitHub <noreply@github.com>2021-12-02 13:51:37 -0700
commita1b417c832b4ab3dab9eaa9690e1d07672a949b8 (patch)
tree24323a894ac9b8b59c9701887e324fa81d5c2caa /caddytest
parent5bf0adad8748e96e10529d5fc5777afc9236a7b5 (diff)
logging: add support for hashing data (#4434)
* logging: add support for hashing data * Update modules/logging/filters.go Co-authored-by: wiese <wiese@users.noreply.github.com> * Update modules/logging/filters.go Co-authored-by: wiese <wiese@users.noreply.github.com> Co-authored-by: wiese <wiese@users.noreply.github.com>
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/log_filters.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/log_filters.txt b/caddytest/integration/caddyfile_adapt/log_filters.txt
index 5253529..776fa68 100644
--- a/caddytest/integration/caddyfile_adapt/log_filters.txt
+++ b/caddytest/integration/caddyfile_adapt/log_filters.txt
@@ -8,18 +8,21 @@ log {
uri query {
replace foo REDACTED
delete bar
+ hash baz
}
request>headers>Authorization replace REDACTED
request>headers>Server delete
request>headers>Cookie cookie {
replace foo REDACTED
delete bar
+ hash baz
}
request>remote_ip ip_mask {
ipv4 24
ipv6 32
}
request>headers>Regexp regexp secret REDACTED
+ request>headers>Hash hash
}
}
}
@@ -52,10 +55,17 @@ log {
{
"name": "bar",
"type": "delete"
+ },
+ {
+ "name": "baz",
+ "type": "hash"
}
],
"filter": "cookie"
},
+ "request\u003eheaders\u003eHash": {
+ "filter": "hash"
+ },
"request\u003eheaders\u003eRegexp": {
"filter": "regexp",
"regexp": "secret",
@@ -79,6 +89,10 @@ log {
{
"parameter": "bar",
"type": "delete"
+ },
+ {
+ "parameter": "baz",
+ "type": "hash"
}
],
"filter": "query"