Skip to content

fix(ratelimits): Handle AnonymousUser missing is_sentry_app attribute#116251

Merged
wedamija merged 1 commit into
masterfrom
fix/ratelimit-anonymous-user
May 26, 2026
Merged

fix(ratelimits): Handle AnonymousUser missing is_sentry_app attribute#116251
wedamija merged 1 commit into
masterfrom
fix/ratelimit-anonymous-user

Conversation

@wedamija
Copy link
Copy Markdown
Member

When an API token's user no longer exists, transform_auth sets the user to AnonymousUser which lacks is_sentry_app. Use getattr with a False default, matching the safe pattern in access.py.

Fixes SENTRY-5PWZ

When an API token's user no longer exists, transform_auth sets the
user to AnonymousUser which lacks is_sentry_app. Use getattr with a
False default, matching the safe pattern in access.py.

Fixes SENTRY-5PWZ
@wedamija wedamija requested a review from a team as a code owner May 26, 2026 21:54
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 26, 2026
@wedamija wedamija merged commit 616d958 into master May 26, 2026
64 checks passed
@wedamija wedamija deleted the fix/ratelimit-anonymous-user branch May 26, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants