fix(backend): back off Sentinel lockdown retries, validate product_id in /proxy #39
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shekhar/windows-iso-downloader#39
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/sentinel-lockdown-and-proxy-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test plan
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Summary by CodeRabbit
Deploying msdl-frontend with
Cloudflare Pages
6ab849bView logs
📝 Walkthrough
Walkthrough
The change increases the Sentinel negative-cache lockdown to five hours, updates related duration logs, and makes
/proxyreturn HTTP 404 for product IDs outside the contribution allow-list.Changes
Proxy and Sentinel behavior
backend/main.golockdownTTLnow uses five hours. Sentinel stale and no-stale responses log the configured duration.backend/main.go/proxyreturns HTTP 404 whenproductIDis not invalidContributeProducts.Estimated code review effort: 2 (Simple) | ~10 minutes
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
fix/sentinel-lockdown-and-proxy-validationThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
086d0222-523b-481d-b05d-c59a08f3f78e📥 Commits
Reviewing files that changed from the base of the PR and between
5a806eea87and6ab849be5e.📒 Files selected for processing (1)
backend/main.go🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: starkSV/windows-iso-downloader
Length of output: 26326
🏁 Script executed:
Repository: starkSV/windows-iso-downloader
Length of output: 3617
Remove
force=falsefrom the Sentinel lockdown contract.The
/proxyrequirement saysforce=truemust bypass cache and fetch from Microsoft, but the Sentinel lockdown gate serves cached/stale data or returns429even forforce=true. Change the behavior so forced refresh bypasses Sentinel behind authentication or rate limiting, or document that active Sentinel lockdowns still overrideforce=true.🤖 Prompt for AI Agents
Source: Coding guidelines