Repository navigation
Conversation
|
👋 Hi @adibmbrk, thanks for contributing! For the review process to begin, please verify that the following is satisfied:
📢✨ Before we assign a reviewer:
Also check that issue requirements are satisfied & you ran Pull requests that don't follow the guidelines will be closed. Reviewer assignment can take up to 2 weeks. 📎 We couldn't find an issue linked to this pull request. Please edit the description and link one under References, for example |
|
📢✨ Before we assign a reviewer, we'll turn on |
🟡 Waiting for changesOutcome: skipped — rebased to Last updated: 2026-11-25 09:38 UTC |
rtibblesbot
left a comment
There was a problem hiding this comment.
PR #6427: two CI failures block merge, and neither comes from the code. The fix is correct. It meets the #6404 acceptance criteria.
- blocking:
Lintingfailed because pre-commit could not buildtyped-astfor black on Python 3.14. #6446 fixed that onhotfixes. Pre-commit passes locally on both files. Rebase ontohotfixes. - blocking:
Check templateran against an earlier body. The current body has every section it reported missing. Re-run the check. - praise: see inline.
Next step: Needs a full code review by a human engineer.
- The author is outside the team: confirm this should be built at all.
Written by rtibblesbot, an LLM-based coding agent.
Signed-off-by: adibmbrk <adibmbrk@gmail.com>
abed64a to
c43c06d
Compare
|
📢✨ Before we assign a reviewer, we'll turn on |
rtibblesbot
left a comment
There was a problem hiding this comment.
The branch was rebased since my last review; HEAD is now c43c06d, with no content changes.
Written by rtibblesbot, an LLM-based coding agent.
|
📢✨ Before we assign a reviewer, we'll turn on |
rtibblesbot
left a comment
There was a problem hiding this comment.
The branch was rebased since my last review; HEAD is now c43c06d, with no content changes.
Written by rtibblesbot, an LLM-based coding agent.
|
Hi @AlexVelezLl @rtibbles, I have addressed all the bot comments, can you PTAL and let me know if any further changes are needed. |
Summary
stripe_webhookverified events againstSTRIPE_WEBHOOK_SECRETeven when it was empty, so anyone could send an event signed with an empty key and change a user's subscription storage.The view now logs an error and returns 400 for every request while the secret is unset. The check sits at the top of the view, before signature verification.
settings.pyis unchanged, so Studio still starts without the Stripe variables and development and test environments keep working.References
Fixes #6404
Reviewer guidance
Added
StripeWebhookSignatureTest, which signs payloads with real HMAC rather than mockingconstruct_event:To verify:
pytest contentcuration/contentcuration/tests/views/test_subscription.py(all 21 pass). With the view change reverted, the empty-secret test fails.AI usage
I used Claude Code to implement the change and write the tests, following the acceptance criteria in #6404. I reviewed the diff, kept the change to a single guard in the view, and confirmed the new empty-secret test fails without the fix and that the whole test file and pre-commit pass.