Repository navigation
Conversation
[Medium impact] The PR appears safe to merge. SummaryRemoves the legacy Pubky Ring sign-up approval path.
Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/mas..." · Reviewed by Greptile |
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Removes the legacy Pubky Ring sign-up-and-authorize path: pubkyring://signup and pubkyauth://signup carrying relay/secret/caps now fail parsing with the invalid-request toast, and sign-up approval only authorizes through the grant path. Reviewed 36fb8fc, full tier, static: iOS does not build on Linux, so this rests on the code and on CI.
What I checked, and 4 candidates I ruled out
Read in full: PubkyAuthRequest.parse, parseSignup, isSignupURL, isProtocolURL, PubkyService.approveSignupAuthorization
Call sites traced: AppViewModel.handlePubkyAuthApproval (parse failure takes the PubkyAuthInvalidRequestToast branch and hides the scanner, so a rejected link opens no sheet), PubkyProfileManager.approveSignupAuth, approveSignupAuthorization
CI: SwiftFormat and validate green; Run Tests, Run Integration Tests and build-local still pending at review time
Ruled out
signup_grantcaught by the new rejection:parseroutessignup_grantaway fromparseSignupbefore the check, so grant sign-up still goes throughPaykit.parsePubkyAuthUrl.- Empty
caps=slipping through as plain sign-up: the check testsvalues[$0] != nil, so a present-but-empty key is rejected, the same outcome as master'srequiredQueryValuefailure. - Plain sign-up losing its approval: on master a non-grant sign-up without relay values already had
authorizationUrl == niland returned early; the newguard request.isGrantSignupkeeps that. - Dropped
import BitkitCoreleaving unqualified symbols: noBitkitCore.reference remains in either file, and the remainingPubkyAuthDetails/parsePubkyAuthUrluses arePaykit-qualified.
Merge confidence: 4/5, no findings, but the unit and integration runs on this head had not finished when I reviewed it.
Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the run metadata available to this reviewer does not report an effort setting)
|
Triaged into 3.2.0 with its Android twin synonymdev/bitkit-android#1917: it removes a sign-up path Paykit no longer approves and lets bitkit-core drop its legacy |
A Pubky URL the Pubky parser rejects, such as a legacy relay/secret/caps signup link, no longer falls through to the core decoder and is not offered. The signup journey now names the signup_grant link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Parking this and converting it back to a draft. The plan for legacy Pubky auth has changed: support for requesting legacy auth goes away (apps that upgrade the Pubky SDK move to grant auth), but signers keep approving legacy requests, so older apps keep working with new versions of the homeserver, Pubky Ring and Bitkit. Bitkit is a signer here, so removing this sign-up path would break those apps. bitkit-core will restore the signer API that synonymdev/bitkit-core#217 removed ( |
Part of synonymdev/bitkit-core#205
Twin: synonymdev/bitkit-android#1917
This PR removes the legacy Pubky Ring sign-up-and-authorize path, so Bitkit no longer calls bitkit-core's legacy Pubky auth exports and bitkit-core can remove them (synonymdev/bitkit-core#205).
Description
pubkyring://signup, andpubkyauth://signupcarryingrelay,secretorcaps) with the existing "Invalid auth request" toast, because Pubky auth is going grant-only and requesting apps now sendsignup_grantinstead.approvePubkyAuth,parsePubkyAuthUrl,PubkyAuthDetails,PubkyAuthKindorPubkyErrorfrom bitkit-core.direct_signupstill ignores strayrelay,secretorcapsvalues, as Pubky Ring and Android do.pubkyauth://direct_signup?hs[&st], with or without strayrelay/secret/capspubkyauth://signup?hs[&st]pubkyauth://signup?…with any ofrelay/secret/capspubkyring://signup?…, includinghsalonerelay)pubkyring://direct_signup…pubkyauth://signup_grant…Bitkit does not register the
pubkyringscheme, so these links only arrive by scan or paste. The automatic clipboard prompt no longer offers them either: for a recognised Pubky link, the Pubky parser's result is final instead of falling back to bitkit-core's generic decoder.Out of Scope
pubkymodule exports themselves — chore: drop legacy pubky auth once ring sign-up uses grants bitkit-core#205, done in chore: remove the pubky module bitkit-core#217 (merged).pubkyring://signupwithoutrelay/secret/capsstays rejected, andpubkyring://direct_signupstays unhandled, as on master.BitkitCore.PubkyError…strings in the Pubky profile and contacts tests are error-message fixtures, not uses of the type, and are left unchanged.Design
N/A — no UI changes.
Preview
N/A
QA Notes
Setup
E2E_BUILDon an iOS simulator, Paykit UI enabled, wallet onboarded.printf '%s' "<link>" | xcrun simctl pbcopy <UDID>, then Scan → Paste, allowing clipboard access if prompted. This is the delivery route the pubky-auth suite already uses.pubkyring://signup?hs=5jsjx1o6fzu6aeeo697r3i5rx15zq41kikcye8wtwdqm4nb4tryo&relay=https%3A%2F%2Fhttprelay.pubky.app%2Finbox%2F&secret=e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3s&caps=%2Fpub%2Fexample%2F%3Arw. The same query onpubkyauth://signupis the second legacy form. Neither contacts the relay or homeserver.Journeys
None added or updated. The rejected-link flow (Scan → Paste → invalid request toast) is drivable through the pubky-auth suite's paste route but has no journey yet; see Gaps.
Manual Tests
N/A
Automated Checks
PubkyAuthRequestTests.swift— legacypubkyring://signupandsignuplinks withrelay/secret/capsare rejected as invalid;direct_signupignores those values and stays a plain sign-upPubkyAuthApprovalSheetTests.swift— plain sign-up, includingdirect_signupwith stray values, never authorizes an appScannerManagerTests.swift— scanning a legacy link shows the invalid request toast and opens no sheetPubkyAuthApprovalSheetTests.swift— grant sign-up still authorizes through the grant API without the removed Ring approvalShopPaymentRequestTests.swift— a legacy link is no longer expected to open the approval sheetClipboardPromptValidatorTests.swift— legacypubkyauth://signupandpubkyring://signuplinks are not offered by the clipboard prompt; plain,direct_signupandsignup_grantlinks still are, without falling back to the core decoderPubkyAuthRequestTests.swift— authorized Ring sign-up parsing, because that path no longer existsPubkyIdentityRepublishTests.swift— the Ring approval republish case, because that approval no longer existsEvidence
08e9626be(branch merged with masterf17214e92, bitkit-core0.8.0-rc15), iPhone 18 Pro simulator, iOS 27.2: the fullBitkitTestsbundle with CI's skip list passed (4,158 tests, 0 failures, 5 skipped: environment-gated live and regtest tests inSparkExitRegtestTests,UsdtNativeRecoveryIntegrationTestsandWakeGatewayLiveTests).--minversion 0.64.6line.Gaps
profile/signup-create-profile.xmlnow names thesignup_grantlink but was not re-run; the scanner unit test above checks the toast and no-sheet result..swiftformatrequires, was not run locally; CI's lint job is the authoritative check.UsdtWalletUITestsfailed at the camera permission alert, and it also failed on master;HomeHeaderUITestsfailed once and passed on re-run.Models used
claude-opus-5-5(reasoning:high)claude-opus-5-5(reasoning:high)🤖 Generated with Claude Code