Repository navigation
feat(console): add signed pack gallery and four-eyes group install (#102) - #309
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
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. |
jusso-dev
force-pushed
the
feat/console-pack-gallery
branch
from
November 21, 2026 22:52
98afcfb to
c6dad97
Compare
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.
Summary
Closes #102.
Adds a signed pack gallery to the Management API and console with under-five-click group installation routed through the four-eyes Approvals workflow:
PackGalleryService.cs,PackGalleryModels.cs,PackGalleryEndpoints.cs):.bowerpackarchives from the server-configuredBOWER_PACK_GALLERY_DIRand verifies every manifest signature and file digest viaPackArchive.LoadagainstBOWER_PACK_TRUSTED_KEYSbefore listing, before submitting an install request, and again on approval.HTTP 400).ManagementStore.PackInstalls.cs):GET /api/packs(View),GET /api/packs/install-requests(View),POST /api/packs/install-requests(Operate),POST /api/packs/install-requests/{id}/approve|reject(Approve).409if requester attempts to approve/reject their own request) and atomically updatesdesired_policy_hashon all approved/active collectors in the target group while writing approval and audit rows (pack.install-requested,pack.install-approved/rejected,collector.desired-policy-updated).PacksPage.tsx,PackInstallApprovals.tsx,ApprovalsPage.tsx,App.tsx,PacksPage.test.tsx):/packsroute showing verified packs, untrusted pack refusal cards, and an under-5-click "Install to group" flow with inline population diff preview.docs/security/threat-model.mdwith the pack gallery trust boundary.Verification
dotnet build --configuration Release— 0 warnings, 0 errorsdotnet test(PackGalleryApiTests,ManagementApiTests) — 14 passed, 0 faileddotnet format --verify-no-changes— passedcd ui/Bower.Management.Web && npm run lint && npm test && npm run build— 17/17 test files (109/109 tests) passed, production bundle built cleanlypython3 -m unittest tools/docs/tests/test_build_tools.py— 7/7 passedSecurity and compatibility impact
ManagementJsonContext).Bower.Management.Apiadds a project reference toBower.Packs).