Skip to content

Security: Bearer tokens exposed in toString() methods #154

Closed

Description

@coderabbitai

Bearer token values are currently exposed in full when toString() is called on BearerAuthorizationHeader instances. This could lead to sensitive authentication tokens being leaked in logs or debug output.

The toString() method should mask or redact the token value to prevent accidental exposure of sensitive credentials.

Related Discussion:

Reporter: @coderabbitai

Activity

  1. added
    area: headers
    bug
    area: security
    on Sep 11, 2025
  2. moved this from Inbox 📫 to Next Up 🎯 in Serverpod Frameworkson Sep 11, 2025
  3. moved this from Next Up 🎯 to Planned 🔭 in Serverpod Frameworkson Sep 11, 2025
  4. SandPod commented on Oct 23, 2025

    @SandPod
    Contributor

    Should obfuscate the token in toString but then introduce a toStringInsecure that prints out the full token.

  5. moved this from Planned 🔭 to Backlog 🗂️ in Serverpod Frameworkson Oct 23, 2025
  6. moved this from Backlog 🗂️ to In Progress 🔥 in Serverpod Frameworkson Oct 23, 2025
  7. moved this from In Progress 🔥 to Done 🚀 in Serverpod Frameworkson Oct 24, 2025
  8. added a commit that references this issue on Oct 24, 2025
    7086221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: headersarea: securitybug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions