feat(licenses): gate release asset downloads behind license key when licensing enabled #347
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
When licensing is enabled and RequireKey is on for a repo, prevent unauthenticated/unauthorized users from directly downloading release assets (.zip files). Currently, anyone with the direct URL can download even without a valid license key.
Behavior
?dlid=key: Can download (key is validated against the license system)Implementation
Add middleware to the release asset download route that checks:
dlid/keyquery param is present and valid (allow)Claude Opus 4.6 (1M context) noreply@anthropic.com
Testing Plan — Download Gating
API
GUI
🤖 Generated with Claude Code
Tested and verified in production on MokoWaaS. All three download gating modes (none/prerelease/all), feed visibility, XML metadata, download URLs, and access control confirmed working.