Skip to content

RFC 0012: JIT account-access permission for ProductAccountId methods#136

Closed
filvecchiato wants to merge 2 commits into
release/0.7from
rfc/0012-account-access-permission
Closed

RFC 0012: JIT account-access permission for ProductAccountId methods#136
filvecchiato wants to merge 2 commits into
release/0.7from
rfc/0012-account-access-permission

Conversation

@filvecchiato

Copy link
Copy Markdown
Contributor

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. A malicious product can currently call account methods with another product's DotNsIdentifier to obtain public keys, aliases, and proofs without user consent.

Checklist

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

Motivation

Account methods (host_account_get, host_account_get_alias, host_account_create_proof, signing methods, host_create_transaction, remote_statement_store_create_proof, host_payment_top_up) accept a caller-supplied ProductAccountId but have no permission gating. This allows cross-product user tracking and identity correlation without user awareness. See #134 for the full attack scenario.

@filvecchiato filvecchiato added rfc Request For Change proposal labels Apr 16, 2026
@filvecchiato filvecchiato changed the base branch from main to release/0.7 April 16, 2026 15:47
…ethods

Introduces a per-account just-in-time permission check for all Host API
methods that accept a ProductAccountId, preventing cross-product identity
leakage. Closes #134.
@filvecchiato filvecchiato force-pushed the rfc/0012-account-access-permission branch from de59c08 to 935239c Compare April 16, 2026 15:48
@filvecchiato

Copy link
Copy Markdown
Contributor Author

close in favour of paritytech/truapi#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal rfc Request For Change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants