paritytech / paritytech/host-rust-core
RFC: Permission query API and launch-time consent for pre-realm permissions
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 10
- Forks
- 3
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 148
Description
Raised in: #448 (closed as not planned)
Not Release 2.
Description
A product reads the remote permissions resolved for its realm without prompting and without a reload, and consents to the pre-realm set once at launch rather than per capability mid-session.
Motivation
#444 resolves WebRTC before the realm exists, so a grant given mid-session only applies on the next load. #446 removes that cost for trusted labels only; every other product still gets a prompt it cannot act on until the web view reloads. A product also has no way to ask what it holds — RFC 0002 unresolved question 2.
Requirements
- The query answers from settled state — never prompts, never triggers a reload.
- A stored user denial wins; nothing here creates a grant.
- Pre-realm decisions stay enforced in-realm against a value fixed before the realm exists (#379 escapes).
- The manifest does not declare outbound permissions —
trustedProductsis inbound only (#802).
Tasks
- RFC document body
- Implementation — rust-core
- Implementation — hosts
- dotli
- Desktop
- iOS
- Android
- host-cli
Note: no RFC drafted yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation file or test is named. Start by drafting the RFC document body, then review RFC 0002 question 2 and the referenced issues #444, #446, #379, and #802. Done requires the RFC plus coordinated rust-core and host implementations for dotli, Desktop, iOS, Android, and host-cli.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, rust, swift
- Domain
- api, authorization, cli, mobile, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100