Skip to content

RFC: JIT account-access permission for ProductAccountId methods#15

Open
filvecchiato wants to merge 4 commits into
mainfrom
rfc/0012-account-access-permission
Open

RFC: JIT account-access permission for ProductAccountId methods#15
filvecchiato wants to merge 4 commits into
mainfrom
rfc/0012-account-access-permission

Conversation

@filvecchiato

@filvecchiato filvecchiato commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

RFC: JIT Account-Access Permission for ProductAccountId Methods

Summary

Introduces a per-account just-in-time (JIT) permission check for all Host API methods that accept a ProductAccountId, preventing cross-product identity leakage by requiring explicit user approval before granting access.

Checklist

  • Added docs/rfcs/0012-account-access-permission.md with completed frontmatter
  • Filled all RFC sections (Summary, Motivation, Detailed Design, Drawbacks, Alternatives, Unresolved Questions)
  • Added labels: rfc, proposal

Motivation

Any product can currently call Host API methods with an arbitrary ProductAccountId — including identifiers belonging to other products — without user awareness or consent. This RFC prevents cross-product identity leakage. Migrated from paritytech/triangle-js-sdks#136.

@filvecchiato filvecchiato changed the title RFC-0012: JIT account-access permission for ProductAccountId methods RFC: JIT account-access permission for ProductAccountId methods Jun 4, 2026
The initial commit rewrote _index.md with a reformatted table and
different entries. This commit restores it to match main so the PR
only touches the RFC file itself.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@filvecchiato filvecchiato requested review from a team June 25, 2026 18:09
…RFC 0012

RemoteStatementStoreCreateProofError and HostPaymentTopUpError gain a
Rejected variant so hosts can signal account-access denial on those methods.

CallContext carries an optional caller_product_id (the calling product's
DotNS identifier), enabling the same-domain optimization: hosts skip the
permission prompt when the caller's domain matches the requested
ProductAccountId.

The RFC text now uses canonical type names from the truapi crate instead
of ad hoc abbreviations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant