Skip to content

fix: do not keep raw inspect tokens in memory#13

Merged
lucor merged 1 commit intomainfrom
dev-fix-inspect-token-memory-pr
Apr 30, 2026
Merged

fix: do not keep raw inspect tokens in memory#13
lucor merged 1 commit intomainfrom
dev-fix-inspect-token-memory-pr

Conversation

@lucor
Copy link
Copy Markdown
Owner

@lucor lucor commented Apr 30, 2026

The inspect flow is a temporary debugging utility with a 10-minute TTL. It lets an authenticated user capture one payload from a third-party service so they can configure webhook parsing correctly. Even though this token is short-lived and scoped to a single user, we were keeping the raw token in memory alongside its hash. That is unnecessary exposure.

This change removes the Token field from InspectSession so only the hash is stored in memory. The raw token is still returned once to the caller (so the user gets their inspect URL), but after that it only exists as a hash. This matches how we already handle webhook tokens, and it is just good memory hygiene.

The inspect flow is a temporary debugging utility with a 10-minute TTL. It lets
an authenticated user capture one payload from a third-party service so they can
configure webhook parsing correctly. Even though this token is short-lived and
scoped to a single user, we were keeping the raw token in memory alongside its
hash. That is unnecessary exposure.

This change removes the Token field from InspectSession so only the hash is
stored in memory. The raw token is still returned once to the caller (so the
user gets their inspect URL), but after that it only exists as a hash. This
matches how we already handle webhook tokens, and it is just good memory
hygiene.
@lucor lucor merged commit 267ba98 into main Apr 30, 2026
4 checks passed
@lucor lucor deleted the dev-fix-inspect-token-memory-pr branch April 30, 2026 18:32
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