https://caddyserver.com/ is the rising star of web servers. It is fast, easy to configure, fully featured (automatic TLS certificate generation and renewal, HTTP/3, cloud-native, config hot reloading…
In many cases, you may want to log some query parameters but remove or replace others that contain sensitive data.
The first new filter allows to delete, replace, or hash specific query parameters: log { format filter { wrap console fields { uri query { replace access_token REDACTED delete my_sensitive_param hash my_parameter I also contributed a similar filter to manipulate cookies: log { format filter { wrap console fields { request>headers>Cookie cookie { delete my_sensitive_cookie hash my_cookie