MCPcopy
hub / github.com/caddyserver/caddy / CookieFilter

Struct CookieFilter

modules/logging/filters.go:456–459  ·  view source on GitHub ↗

CookieFilter is a Caddy log field filter that filters cookies. This filter updates the logged HTTP header string to remove, replace or hash cookies containing sensitive data. For instance, it can be used to redact any kind of secrets, such as session IDs. If several actions are configured for the

Source from the content-addressed store, hash-verified

454// If several actions are configured for the same cookie name, only the first
455// will be applied.
456type CookieFilter struct {
457 // A list of actions to apply to the cookies.
458 Actions []cookieFilterAction `json:"actions"`
459}
460
461// Validate checks that action types are correct.
462func (f *CookieFilter) Validate() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected