Skip to content

feat(apps): approve requested app capabilities when installing or updating #590

Done

Description

@RentnerKev

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 grantsRequired and 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 CLI activate <id> <grants-file>.

Scope

  • Show every requested capability and support grant before install, with its scope, allowService and 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

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.

Activity

  1. added this to the v1.0.0-beta.4 milestone on Nov 26, 2026
  2. added
    enhancement
    security
    area: runtime
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimeenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions