Repository navigation
Done
Labels
area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Milestone
Description
Phase: 6 | Priority: P0
Let an Owner review and approve the capabilities and support grants that an app requests, so official apps with capabilities can be installed and updated from the catalog. This is the first prerequisite for RentnerProxy/app-monitoring#1, and every later extracted app needs it.
Current state
- Catalog browse marks every release whose manifest requests capabilities as
grantsRequiredand does not offer it (core/src/app_install/browse.rs,requires_grants). - UI updates and reinstalls pass an empty grant set (
core/src/app_manager/lifecycle.rs). Grants can only be set with the root CLIactivate <id> <grants-file>.
Scope
- Show every requested capability and support grant before install, with its scope,
allowServiceand permission key. - Record the Owner's decision as the installation's grant set in the Rust core and carry it through install, update, rollback and reinstall.
- An update that requests new or wider grants needs a new approval. The running generation keeps its grants until then.
- Owners can revoke a grant later.
Dependencies
- RentnerProxy/platform#458 (closed)
Acceptance criteria
- An Owner can install a release with capabilities after approving exactly the grants shown. Admins and viewers cannot approve.
- The approved grant set is bound to the installation, the app ID and the release digest; another release cannot reuse it silently.
- An update that requests additional or wider grants stops before staging until the Owner approves. Declining leaves the running generation unchanged.
- Rollback and reinstall keep only grants that the target release requests and the Owner approved.
- Revoking a grant takes effect without a platform restart, and the app gets a refusal on its next call.
- Core and web tests cover the decision path, and the published-app reference gate installs a fixture release with capabilities on AMD64 and ARM64.
Tracked by RentnerProxy/app-monitoring#1 and #460.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation.
Metadata
Metadata
Assignees
Labels
area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Activity
fix(apps): apply grant decisions only when they take effect
feat(apps): approve requested app grants in the core (#596)
test(apps): install and update a published release with approved capa…