Skip to content

Redacting sensitive headers when dumping request/response #226

@mortenlj

Description

@mortenlj

In our project we have implemented dumping of request and response when debug-mode is enabled. Since this might end up in logfiles or other places where sensitive data is unwanted, we implemented a blacklist for sensitive headers.

Could something similar be implemented in the dump_response and dump_all methods here? Then we could get rid of our own implementation and just use toolbelt. Maybe make it optional?

Feel free to look at/borrow from our implementation here: https://github.com/fiaas/k8s/blob/master/k8s/client.py

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