Skip to content

Add option to skip logging certain HTTP Routes #1197

@rwaweber

Description

@rwaweber

What is currently missing?

I would love a similar capability to sasl_oauthbearer_skip_auth_paths but for logged http requests.

Specifically, I'm looking to reduce the noisiness of some of our logs where our kubelet is regularly hitting the /_health endpoint - which can be pretty frequent and largely contribute to noisiness of the service logs.

To stay backwards-compatible I'd definitely want this to stay an opt-in feature so that the default behavior is preserved. I'd hate for this functionality to cause anyone to miss anything important, but leaving it extensible should want to silence any other routes(at their own peril).

How could this be improved?

Making this an opt-in feature to me seems like something that could help other users out without causing us to reduce visibility of the running application. I figure I could probably follow the same logic that's present for skipping auth requirements on a per-route basis to perform a nearly identical check on whether to log.

Is this a feature you would work on yourself?

  • I plan to open a pull request for this feature(I certainly could if this seems like a useful feature to others!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions