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
| 454 | // If several actions are configured for the same cookie name, only the first |
| 455 | // will be applied. |
| 456 | type 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. |
| 462 | func (f *CookieFilter) Validate() error { |
nothing calls this directly
no outgoing calls
no test coverage detected