Skip to content

Commit

Permalink
fix: redact the authorization query parameter from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 31, 2024
1 parent 3ad6526 commit ea9a12d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
{$SERVER_NAME:localhost} {
log {
format filter {
# Defaults to json while waiting for https://github.com/caddyserver/caddy/pull/5980
wrap json
fields {
uri query {
request>uri query {
replace authorization REDACTED
}
}
Expand Down
4 changes: 1 addition & 3 deletions Caddyfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
{$SERVER_NAME:localhost} {
log {
format filter {
# Defaults to console while waiting for https://github.com/caddyserver/caddy/pull/5980
wrap console
fields {
uri query {
request>uri query {
replace authorization REDACTED
}
}
Expand Down

0 comments on commit ea9a12d

Please sign in to comment.