Skip to content

disable_tracing_hostname for URL exclude lists not covering reasonable use cases #779

@cnnradams

Description

@cnnradams

There are two URL exclude lists for webservers:

disable_tracing_path

Disables paths based on a regex after (not including) the hostname. Should be able to include/exclude any combination of paths, but does not include hostname

disable_tracing_hostname

Disable path based on the exact URL being included in a list.

disable_tracing_hostname seems to be significantly less useful than disable_tracing_path, since if there is any URL parameters in the endpoint, eg http://site.com/abc?param=2 it will not have a use (specific parameter values can be disabled by disable_tracing_path, if desired). Personally I would support disable_tracing_hostname performing a regex on everything before the path, or if there are cases where we need a combination of hostname + path, it could regex the whole URL.

For example, if a user wanted to exclude all endpoints that were not called with http:// or https://, this could not be done with the current exclude lists. Or if the user wanted to exclude requests to admin.website.com/path but not website.com/path, this could also not be done.

There may also be value to using the endpoint pattern instead of the actual URL, ie for endpoint /hello/{helloid}/info a user could just add /hello/{helloid}/info to the exclude list instead of needing to write a regex. However this would also give disable_tracing_path less functionality with regards to excluding specific values passed in, so this would need some more thinking.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions