Skip to content

API tokens should be anonymized/removed in error context #88

Closed
@jaimeiniesta

Description

@jaimeiniesta

For errors in API requests where authorization is done with a bearer token, this token should be removed or filtered out before saving to DB. For example, in this context:

{
  "request.headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "Bearer 12341234"
  },
  "request.host": "example.com",
  "request.path": "/api/v1/reports"
}

I should not be able to see Bearer 12341234 and instead I'd expect something like Bearer REMOVED or no authorization details at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions