Skip to content

Conversation

jennmueng
Copy link
Member

Fixes intermittent "No auth header found" errors for Seer API requests.

The root cause was a probabilistic check in `sign_with_seer_secret` that could omit the `Authorization` header, even though Seer requires it for all requests. This change removes that probabilistic logic, ensuring authentication headers are always included when `settings.SEER_API_SHARED_SECRET` is configured.

This guarantees reliable authentication and eliminates intermittent failures. Tests have been updated to reflect this consistent behavior, including a new test to verify headers are always added.

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
</pr_request_template>

---
<a href="https://cursor.com/background-agent?bcId=bc-4d5915d6-aeba-4150-ba8f-cfab90cf118e">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg">
    <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg">
  </picture>
</a>
<a href="https://cursor.com/agents?id=bc-4d5915d6-aeba-4150-ba8f-cfab90cf118e">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg">
    <img alt="Open in Web" src="https://cursor.com/open-in-web.svg">
  </picture>
</a>

Copy link
Contributor

cursor bot commented Sep 5, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 5, 2025
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