feat: add proprietary plugin upload support#18
Open
Rezn1r wants to merge 3 commits into
Open
Conversation
- Add isProprietary flag to Plugin schema - Add requireTrusted middleware and proprietaryUploadRateLimit - New upload module: POST /api/v1/upload/plugin for initial upload - New upload module: POST /api/v1/upload/plugin/:slug/version for version updates - Skip GitHub username validation for proprietary plugins in submit service - Force Proprietary license for proprietary plugins - Block triggerBuild with specific error for proprietary plugins - Magic number verification, filename sanitization, atomic failure cleanup - Immediate VirusTotal scan enqueue on upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an alternative plugin creation flow for proprietary plugins that allows direct file upload of pre-built artifacts (.whl for Python, .so/.dll for C++) instead of connecting a GitHub repository. The build pipeline is bypassed — artifacts go directly to storage and still go through VirusTotal scanning and admin review.
Changes
isProprietary Boolean @default(false)to Plugin modelrequireTrusted(rejects NEW/FLAGGED users) andproprietaryUploadRateLimit(3/hour per user)src/modules/upload/):POST /api/v1/upload/plugin— create proprietary plugin with artifact uploadPOST /api/v1/upload/plugin/:slug/version— upload new version for existing proprietary pluginType of change
Checklist: