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

Struct QueryFilter

modules/logging/filters.go:325–328  ·  modules/logging/filters.go::QueryFilter

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

Source from the content-addressed store, hash-verified

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.
325type 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.
331func (f *QueryFilter) Validate() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected