Skip to content

[security] Redact bearer token from repr output#3

Merged
Zack-Grogan merged 1 commit into
mainfrom
security/redact-token-repr
Jun 6, 2026
Merged

[security] Redact bearer token from repr output#3
Zack-Grogan merged 1 commit into
mainfrom
security/redact-token-repr

Conversation

@Zack-Grogan
Copy link
Copy Markdown
Member

Security Fix

Addresses finding M7 from org-wide security audit (2026-06-05).

MEDIUM

  • M7: Added repr=False to the token field on the TraceDB dataclass. repr(db) and str(db) now omit the token entirely instead of exposing the actual bearer token.

LOW

  • Added .env / .env.* patterns to .gitignore.

Note

actor_context can contain token_identity and other sensitive fields (tenant IDs, scopes). Consider also adding repr=False to that field in a follow-up.

@Zack-Grogan Zack-Grogan merged commit 231a9f1 into main Jun 6, 2026
3 checks passed
@Zack-Grogan Zack-Grogan deleted the security/redact-token-repr branch June 6, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant