Repository navigation
feat(apps): review requested access before installing or updating - #600
Merged
Merged
Conversation
Owners now approve exactly the grants a release requests in the app catalog before it installs, updates or reinstalls. The dialog lists capabilities and support grants with their scope, requires at least one proxy host for host-scoped capabilities, only narrows background access and can require a declared app permission. Updates and reinstalls preselect the current approval. Installed apps show an update that needs approval, list their approved access with host names, and revoke single grants after a confirmation. An Owner-only server function lists the proxy hosts for the picker. A revocation the live generation cannot apply, which the manager fenced completely, now reports revokedAppStopped instead of unavailable. Closes #590 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
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 26 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. |
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
PR 3 of 3 for #590. Owners can now review and approve the access a release requests in the app catalog, see the access each installed app holds, and revoke it. PR 1 (#596) added the decision path in the Rust core; this PR adds the UI and the distinct receipt for a revocation that stopped the app.
Approval dialog (
GrantApprovalDialog,useGrantApprovalLogic, pure builderlib/AppCatalog/grantApproval.ts)GrantHostPicker, searchable multi-select).allowService) can only be narrowed.Installed apps
grantsRequirednow only means access this appliance cannot grant, and its texts say so.Proxy hosts for the picker
getAppCatalogProxyHostsHandler, backed byserver/AppRuntime/catalog/hosts.server.ts: at most 1,000 hosts with at least one domain, named by their first domain, with their enabled state. Admins and viewers getforbidden.Distinct revoke receipt (Rust)
revokedAppStoppedinstead ofunavailable. The UI explains that access was revoked, the app was stopped, and activation can be retried with the remaining access.Locales
appCatalog.grants.*and the new management texts in all eight locales.Related issue
Closes #590 (PR 3 of 3, after #596 and #599).
Refs RentnerProxy/app-monitoring#1
Type of change
Testing
bun run typecheckandbun run lintare clean; the changed files are formatted.grant-approval.test.ts: the builder needs a selected host, builds exactly the requested approval, only narrows background access, names declared keys only, preselects a previous approval, caps at 128 grants, and builds the revoke request.catalog-install-ui.test.tsx: Install opens the dialog, Approve stays disabled until a host is picked, Decline sends nothing, and the body carries exactly the approval. An update that needs approval shows the notice and "Review update", preselects the approved host and posts the approval. Approved access lists host names, Revoke asks for confirmation and posts one grant, andrevokedAppStoppedshows its explanation.catalog-hosts.db.test.tson PostgreSQL 18.7 in Kiri: hosts are named by their first domain, keep their enabled state, and a host without a domain is not offered.test:tson Windows: 2265 passed, 52 failed, all in eighttests/toolingfiles (Docker, release and backup scripts). Run on their own, those files fail the same 41 tests onmainand on this branch; the other 11 timed out under the load of the full run. CI runs them on Linux.cargo fmt --checkandcargo clippy --locked --all-targets --all-features -- -D warningsare clean;cargo test --all-features: 1123 passed, 26 ignored. Thefail_closedunit test checks that only a complete fence yieldsrevokedAppStopped.privileged_signed_lifecyclepassed; its fail-closed revoke now expectsrevokedAppStopped.Checklist
Breaking changes
None. A fail-closed revocation reports
revokedAppStoppedinstead ofunavailable; the web contract accepts the new code.🤖 Generated with Claude Code