summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorKévin Dunglas <dunglas@gmail.com>2021-11-23 17:40:20 +0100
committerGitHub <noreply@github.com>2021-11-23 09:40:20 -0700
commit8887adb027982e844965b4707b8595cee5845d54 (patch)
tree00c61101dae9d248356512beed7b149000c25986 /caddytest
parentbcac2beee7e419f8cdab2ed16f388d1af282a46b (diff)
logging: add a filter for cookies (#4425)
* feat(logging): add a filter for cookies * Improve godoc and add validation
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/log_filters.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/log_filters.txt b/caddytest/integration/caddyfile_adapt/log_filters.txt
index 7873b1c..2693e9c 100644
--- a/caddytest/integration/caddyfile_adapt/log_filters.txt
+++ b/caddytest/integration/caddyfile_adapt/log_filters.txt
@@ -11,6 +11,10 @@ log {
}
request>headers>Authorization replace REDACTED
request>headers>Server delete
+ request>headers>Cookie cookie {
+ replace foo REDACTED
+ delete bar
+ }
request>remote_addr ip_mask {
ipv4 24
ipv6 32
@@ -37,6 +41,20 @@ log {
"filter": "replace",
"value": "REDACTED"
},
+ "request\u003eheaders\u003eCookie": {
+ "actions": [
+ {
+ "name": "foo",
+ "type": "replace",
+ "value": "REDACTED"
+ },
+ {
+ "name": "bar",
+ "type": "delete"
+ }
+ ],
+ "filter": "cookie"
+ },
"request\u003eheaders\u003eServer": {
"filter": "delete"
},