You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// `replace` to replace the value(s) associated with the parameter(s) or `delete` to remove them entirely.
250
+
// `replace` to replace the value(s) associated with the parameter(s), `hash` to replace them with the 4 initial bytes of the SHA-256 of their content or `delete` to remove them entirely.
215
251
TypefilterAction`json:"type"`
216
252
217
253
// The name of the query parameter.
@@ -224,9 +260,9 @@ type queryFilterAction struct {
224
260
// QueryFilter is a Caddy log field filter that filters
225
261
// query parameters from a URL.
226
262
//
227
-
// This filter updates the logged URL string to remove or replace query
228
-
// parameters containing sensitive data. For instance, it can be used
229
-
// to redact any kind of secrets which were passed as query parameters,
263
+
// This filter updates the logged URL string to remove, replace or hash
264
+
// query parameters containing sensitive data. For instance, it can be
265
+
// used to redact any kind of secrets which were passed as query parameters,
230
266
// such as OAuth access tokens, session IDs, magic link tokens, etc.
231
267
typeQueryFilterstruct {
232
268
// A list of actions to apply to the query parameters of the URL.
// `replace` to replace the value of the cookie or `delete` to remove it entirely.
368
+
// `replace` to replace the value of the cookie, `hash` to replace it with the 4 initial bytes of the SHA-256 of its content or `delete` to remove it entirely.
320
369
TypefilterAction`json:"type"`
321
370
322
371
// The name of the cookie.
@@ -330,7 +379,7 @@ type cookieFilterAction struct {
330
379
// cookies.
331
380
//
332
381
// This filter updates the logged HTTP header string
333
-
// to removeor replace cookies containing sensitive data. For instance,
382
+
// to remove, replace or hash cookies containing sensitive data. For instance,
334
383
// it can be used to redact any kind of secrets, such as session IDs.
335
384
//
336
385
// If several actions are configured for the same cookie name, only the first
0 commit comments