Repository navigation
Privacy draft: per-app authorization lifetime is five minutes, not one hour - #225
Merged
Merged
Conversation
…e hour Internet Identity caps every MCP account delegation at 5 minutes (MCP_MAX_EXPIRATION_PERIOD_NS in src/internet_identity/src/mcp.rs, applied in prepare_delegation as min(max_ttl, cap) and never past the session grant). The server passes max_ttl = null, so it gets exactly that cap. The README and identities.rs already say so; the privacy draft still said "at most one hour" in three places. Update the per-application connection material paragraph (section 1), the retention table (section 4) and the revocation paragraph (section 7). The revocation paragraph's first step now says Internet Identity stops honouring the connection immediately: a revoking write deletes the grant in the same update message that records it (set_mcp_config), so the worst case between revoking and all activity stopping is about five minutes, the remaining lifetime of an already-issued delegation. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTJrh6VHX1VPvxMsRpX
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the documentation update clarifying the five-minute authorization lifetime and revocation window.
No open issues 🎉
What changed in this PR
Updates the privacy-policy draft to align per-application authorization lifetimes with the five-minute limit already documented elsewhere in the codebase.
Changes:
- Replaces the stale one-hour lifetime with five minutes in the connection-material description and retention table.
- Clarifies that revocation immediately prevents new authorizations, while existing authorizations expire within five minutes.
| File | Description |
|---|---|
docs/icp-mcp-privacy-policy-draft.md |
Corrects authorization lifetimes and the stated revocation window. |
Review effort: Balanced
sea-snake
approved these changes
Nov 3, 2026
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/icp-mcp-privacy-policy-draft.mddescribed the per-application signed authorization (the on-demand per-app delegation the Service mints via Internet Identity'smcp_prepare_delegation/mcp_get_delegation) as expiring "at most one hour" after issue, in three places: the per-application connection material paragraph in section 1, the retention table in section 4, and the revocation paragraph in section 7, which concluded that the effective revocation window is "therefore about one hour".That number is stale. Internet Identity caps every MCP account delegation at 5 minutes:
MCP_MAX_EXPIRATION_PERIOD_NS = 5 * 60 * 1_000_000_000insrc/internet_identity/src/mcp.rs, applied inprepare_delegationasmin(max_ttl, cap)with the session grant's expiry as an absolute cap. The Service passesmax_ttl = null, so it gets exactly that cap. The README's "Domain identities (on demand)" section and the comments incrates/imcp2-core/src/identities.rsalready say 5 minutes; the privacy draft was deliberately left for its author to review, which is what this PR is for.Tone and structure are unchanged. Only the facts and the sentences that depend on them were touched.
grep -n -i hour docs/icp-mcp-privacy-policy-draft.mdnow returns nothing.Related issues
None. Follow-up to the README /
identities.rscorrection that already landed separately.Changes
set_mcp_configin II'smcp.rs: "the grant is deleted in the same update message, so revocation is atomic with the config write"), and II'sdocs/mcp-server-guide.md§5 states "Expiry and revocation stop themcp_*methods immediately, but a per-app delegation you already hold keeps working at the target app until its ownexpiration— at most 5 minutes past the end of the session." If you would rather keep a conservative bound on the first step, the conclusion should then say about ten minutes; flagging the choice here rather than deciding it silently in a legal document.The cross-reference in section 4 ("Revoking a connection takes effect in the two steps described in section 7.") still holds and is untouched.
docs/anthropic-directory-submission.mdhas no lifetime statement about the per-application authorization, so nothing changes there.Testing
Docs-only change to one Markdown file; no code touched, so the cargo checks below were not run.
cargo build --locked --all-targets— not run (docs-only)cargo test --locked --all-targets— not run (docs-only)cargo fmt --all/cargo clippy --all-targets(tree is warning-free) — not run (docs-only)npm test --prefix monitoring/mcp-status(if the dashboard changed) — not applicableWhat was verified instead:
min(max_ttl, cap)logic and the atomic grant deletion on revocation were read in a checkout ofdfinity/internet-identityat97df59726aa71387ef457e87da89c8edabc27d06(src/internet_identity/src/mcp.rs,docs/mcp-server-guide.md).grep -n -i hour docs/icp-mcp-privacy-policy-draft.mdreturns no matches after the change.Checklist
Generated by Claude Code