Repository navigation
fix(tempo): update admin access keys for TIP-1137 - #554
Conversation
TIP-1137 removes TIP-1049 admin access keys at T14. The wire encoding is unchanged, so KeyAuthorization keeps encoding and decoding `isAdmin` and `account` for pre-T14 history; `isAdmin` is now deprecated in its TSDoc. The edge e2e test that registered an admin key now asserts the T14 node rejects it, and a new test covers an account-bound non-admin grant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3nmWfJBrmCTSK7UpdbX4K
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
The Vercel status is failing, but this PR didn't cause it. Vercel's combined status on Generated by Claude Code |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf7eccb884
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| icon="lucide:key-round" | ||
| title="Access Keys" | ||
| description="Authorize scoped keys with expiry, limits, witnesses, and admin access." | ||
| description="Authorize scoped keys with expiry, limits, and witnesses." |
There was a problem hiding this comment.
Update the generated Tempo landing-page source
Updating only this hand-authored card leaves the generated /tempo landing page stale: scripts/docgen/build.ts:813-817 still emits an Access Keys card advertising “admin access,” so every pnpm docs:gen continues publishing the removed T14 capability on the main Tempo overview. Update that generator template alongside this guide text.
AGENTS.md reference: AGENTS.md:L70-L72
Useful? React with 👍 / 👎.
* chore: use vendored github actions in install-dependencies The organization now allows only actions owned by wevm or GitHub, which fails every job that sets up foundry from foundry-rs/foundry-toolchain. Matches main (#549). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3nmWiYLFXfCPHgz9FSm6L * fix(tempo): update admin access keys for TIP-1137 Port of #554 to 0.x. TIP-1137 removes TIP-1049 admin access keys at T14. The wire encoding is unchanged, so KeyAuthorization keeps encoding and decoding `isAdmin` and `account` for pre-T14 history; `isAdmin` is now deprecated in its TSDoc. The edge e2e test that registered an admin key now asserts the T14 node rejects it, and a new test covers an account-bound non-admin grant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3nmWfJBrmCTSK7UpdbX4K --------- Co-authored-by: Claude <noreply@anthropic.com>
TIP-1137 (tempoxyz/tempo#8204) removes TIP-1049 admin access keys at T14. This PR fixes the failing Verify / Test Runtime (tempo, env: localnet, tag: edge) job on
main. Theedgeimage runs T14, so theTIP-1049 admin access key round-trips through registratione2e test now fails withkeychain precompile error: Account keychain error: InvalidKeyId. On tempomain,AccountKeychain::authorize_admin_keyreturnsInvalidKeyIdfrom T14.Decode support kept
The TIP says
KeyAuthorization"keeps its optionalis_adminandaccountRLP fields. Encodings are unchanged."crates/primitives/src/transaction/key_authorization.rsstill decodes both, and T6–T13 history must still round-trip. So ox keeps encoding, decoding and hashingisAdminandaccount, andInvalidAdminMarkerErrorstays. There is no runtime change.Changes
KeyAuthorization.ts: markedisAdmin@deprecated(in both the domain and RPC types) with a link to TIP-1137. Theaccountdocs now say that, when present, it must equal the transaction sender. Updated theMissingAccountErrordeprecation note and the inline wire comments.KeyAuthorization.test.ts: renamed the codec tests tohistorical admin keys (TIP-1049)and noted that they cover pre-T14 history. Assertions are unchanged.e2e.test.ts:TIP-1137 rejects an admin key authorization. It sends the same transaction and asserts the node rejects it withInvalidKeyId.account-bound key authorization round-trips through registration. It checks that a non-adminaccountbinding equal to the sender is accepted, and thataccountsurvives the node round trip.isAdmin/account, and updated the card descriptions.Checks
pnpm check:typespasses.SKIP_GLOBAL_SETUP=1 pnpm test --project tempo-unit: 689 passed.vp checkon the changed files passes.edgejob in this PR's CI is the check for that part.Generated by Claude Code