Skip to content

fix(seer-rpc): Enforce seer rpc signature #93253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025

Conversation

jennmueng
Copy link
Member

Assuming we don't run into any issues, we enforce the signature.

@jennmueng jennmueng requested a review from aayush-se June 10, 2025 18:28
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 10, 2025
@jennmueng jennmueng requested a review from a team June 10, 2025 18:43
Comment on lines 90 to 89
except Exception:
logger.exception("Seer RPC signature validation failed")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we throw the exception message in the log if that would be useful?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.exception should log the latest exception to sentry without explicitly passing the exception (and precommit complains if you do lol)

Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/api/endpoints/seer_rpc.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #93253       +/-   ##
===========================================
+ Coverage   41.23%   87.97%   +46.74%     
===========================================
  Files       10234    10261       +27     
  Lines      591108   592037      +929     
  Branches    23011    23010        -1     
===========================================
+ Hits       243757   520867   +277110     
+ Misses     346861    70680   -276181     
  Partials      490      490               

@jennmueng jennmueng marked this pull request as ready for review June 11, 2025 12:11
@jennmueng jennmueng requested a review from a team as a code owner June 11, 2025 12:11
@jennmueng jennmueng merged commit 9843e88 into master Jun 11, 2025
61 checks passed
@jennmueng jennmueng deleted the jenn/correct-signature-validation branch June 11, 2025 12:12
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