Add tenant agent signer identity foundation#381
Open
GsCommand wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
runtime.commandlayer.eth.Description
lib/tenantSignerIdentity.jsto normalize identity fields and produce the deterministic TXT record package and ENS check behavior for the four required TXT records (cl.sig.pub,cl.sig.kid,cl.sig.canonical,cl.receipt.signer).POST /api/admin/tenant-signer-identityto upsert per-agent public identity and tocheck_recordsby calling the same ENS resolver used during verification, and extend claim detail output to includetenant_signer_record_packagefor admin UI consumption.db/migrations/008_tenant_signer_identity.sqlto add per-agent fields:agent_ens_name,tenant_signer_kid,tenant_signer_public_key,tenant_signer_canonicalization,tenant_signer_created_at, andtenant_signer_statuswith lifecycle validation.subject_agentandissuer_role: 'platform_genesis_attestor'to generated genesis receipts and adjust canonical payload handling soactionreceipts may includeissuer_role: 'tenant_agent'without breaking older shapes.lib/verifyReceipt.jsso tenant ENS checks call the same resolution path used for verification, and add admin UI changes topublic/admin/claims.htmlto show the Tenant Agent Signer Identity section with copyable TXT records andCheck ENS Records/Add BYO public keyactions.docs/ops/tenant-agent-signer-identity.mddocumenting audit findings, custody model, record package shape, and the identity distinction between platform genesis and tenant action receipts.tests/tenant-signer-identity.test.jsthat cover runtime signer verification, tenant-signed receipt verification against tenant ENS records, failure modes (kid/pub mismatches and verifying tenant receipts against runtime records), TXT record package shape and pending/verified status, and checks that the admin API never exposes tenant private key material.Testing
npm testand all tests passed (129tests passed,0failed), including the newtests/tenant-signer-identity.test.jsverifying tenant signing and ENS-resolution behavior.npm run check:linksand it completed successfully with all local links resolved.cd examples/webhook-auto-verify && npm run checkand the example check completed successfully.Codex Task