feat(checkout): implement HMAC token-based loopback verification for site creation#1233
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
MERGE_SUMMARYFeature: HMAC Token-Based Loopback Verification for Site CreationPR: #1233 Implementation SummaryThis PR implements HMAC token-based loopback verification for the async site creation flow in Ultimate Multisite. The feature improves security and performance by replacing nonce + cookie-based verification with short-lived HMAC tokens. Key Changes
Test CoverageAdded 5 new test methods in
Code Quality
Security Considerations
Files Modified
Total: 3 files changed, 217 insertions(+), 11 deletions(-) |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
Performance Test Results Performance test results for b4ab4ce are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
✅ FULL_LOOP_COMPLETEMerge SummaryPR: #1233 Feature ImplementationSuccessfully implemented HMAC token-based loopback verification for site creation in Ultimate Multisite. Verification✅ All CI checks passed:
✅ Code Quality:
✅ Security:
Changes Merged
Next StepsThe feature is now live on the main branch. The async site creation flow will use HMAC tokens for loopback requests, improving both security and performance. |
Summary
Implement HMAC token-based loopback verification for site creation to improve security and performance of the async site creation flow.
Changes
publish_pending_site()AJAX handler with fallback to nonce-based verification for admin modal flowFiles Modified
inc/managers/class-membership-manager.php: Updatedpublish_pending_site()to verify HMAC tokensinc/models/class-membership.php: Updatedpublish_pending_site_async()to generate and use HMAC tokenstests/WP_Ultimo/Managers/Membership_Manager_Test.php: Added tests for HMAC token verificationTesting
Security Considerations
wp_salt('auth')for key material