Repository navigation
feat(core,auth): operator-facing extension activation warnings; auth warns when stored passkeys don't match the relying-party ID (#736) - #747
Merged
Conversation
Add a generic ExtensionActivation.warn(message) channel. Each call made
while an extension activates is written to the runtime's operator log as
{"event":"extension_warning","extension":"<name>","message":"..."}: one
line, at most 500 characters, no stack, at most 20 per extension per
activation followed by one "further warnings suppressed" record. Calls
after activate() settles are ignored, and warnings never reach an HTTP
response. validate, test (also without --verbose), dev and serve print
it; the hosted adapters write it to the function log.
Documented in EXTENSIONS.md (activation warnings), OBSERVABILITY.md
(event catalogue), LOCAL-DEVELOPMENT.md, AI-AUTHORING.md, FRAMEWORK.md
and a new RIM-EXT-WARN-001 card.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…p on mismatch (#736) Every passkey insert path (account passkey, signup, waitlist approval) now stores the RP ID the ceremony was verified under: `rpId` in the credential JSON (StoredPasskey/AuthPasskey; addPasskey and the signup passkey step accept and validate it) and a nullable `rp_id` column that existing databases gain in place. Passkeys stored earlier stay unrecorded. At activation auth runs one aggregate query (AuthService.countPasskeysByRelyingParty) against the effective RP ID (operator passkeyRpId, otherwise the provider's canonical host) and reports through core's activation warning channel, with counts only: recorded passkeys under a different RP ID, and, only when a non-default --passkey-rp-id is set, a softer warning for unrecorded passkeys, which are assumed to be canonical-host passkeys. Verification is unchanged. Docs: auth README/SECURITY/CHANGELOG, OPERATIONS.md, EXTENSIONS.md and the operations skill. The auth unpacked-size budget rises from 900 to 910 KiB (measured 924773 bytes). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…ng (#736) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
jimhoyd
added a commit
that referenced
this pull request
Sep 25, 2026
…n warnings Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks done
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.
Problem and change
Closes #736.
ExtensionActivation.warn(message)emits{"event":"extension_warning","extension":"<name>","message":"…"}to the operator log, and core names no extension.boundedLine()helper), with no stack. At most 20 warnings per extension per activation, followed by one "further warnings suppressed" line.activate()returns or throws are ignored.validateandtestprint it, even without--verbose.dev/servewrite it to the JSON log, and on a terminal showExtension "<name>" warning: …. AWS/Vercel send it to the function log viaconsole.warn. Observers receive it too.docs/EXTENSIONS.md, the event in OBSERVABILITY and MONITORING, and LOCAL-DEVELOPMENT/AI-AUTHORING.rpIdon all three insert paths (account, signup and waitlist approval), which now share oneinsertPasskeyhelper.addPasskeyaccepts and validates it. The migration is additive: a nullablerp_idcolumn.countPasskeysByRelyingParty) compares stored passkeys with the effective relying-party ID ([Request]: passkey sign-in on operator alias origins #729'spasskeyRpId, or the canonical host).passkeyRpIdis set.Verification
Run on Node v26.10.0 on this branch (latest
main+ these commits):npm run verify: exit 0. Root 884 tests; workspaces 34, 97, 244 (auth), 35, 68 and 66; form-records 17;test:addons4. All 0 failures, includingbuild-addon-manifest --checkandaudit:packages.docs/MONITORING.mddidn't listextension_warning(test/monitoring.test.ts). The entry was added in the last commit.npm run test:package: exit 0 (709705 packed, 2884821 unpacked bytes).test/extension-warnings.test.ts: bounding, the cap, the channel closing after activation, the startServer log, clean HTTP responses, the Lambda handler, andvalidate/test/devas child processes.test/logging.test.ts: the terminal line.packages/auth/test/passkey-rp-id-record.test.ts: recording, refusal of malformed values, a mismatch warning with no ids or emails, no warning when matching or by default, the soft warning for older passkeys, and migrating an older database.passkey-handler.test.tsandsignup-http.test.tsassert that real registrations recordrpId.Compatibility and security
Additive: a new optional activation hook, a new log event and an additive database column.
Known limitation: an operator who already used
--passkey-rp-idbefore upgrading may see one spurious soft warning, because older passkeys are assumed to be registered under the canonical host. This is documented in the auth README.Not an independent security review.
Changes match the documented portable contract; docs/examples are updated where needed.
Relevant tests and package checks pass, or limitations are explained above.
No credentials, customer data or private project material are included.
Runtime/starter changes remain aligned where applicable.
🤖 Generated with Claude Code
https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Generated by Claude Code