QueryFilter is a Caddy log field filter that filters query parameters from a URL. This filter updates the logged URL string to remove, replace or hash query parameters containing sensitive data. For instance, it can be used to redact any kind of secrets which were passed as query parameters, such a
| 323 | // used to redact any kind of secrets which were passed as query parameters, |
| 324 | // such as OAuth access tokens, session IDs, magic link tokens, etc. |
| 325 | type QueryFilter struct { |
| 326 | // A list of actions to apply to the query parameters of the URL. |
| 327 | Actions []queryFilterAction `json:"actions"` |
| 328 | } |
| 329 | |
| 330 | // Validate checks that action types are correct. |
| 331 | func (f *QueryFilter) Validate() error { |
nothing calls this directly
no outgoing calls
no test coverage detected