Repository navigation
feat(dashpay): open mainnet OneLink invitations in the app - #1173
Conversation
Add applinks:dashpay.onelink.me so mainnet DashPay invitation OneLinks (template hirm) open the installed app, as dashpaytest.onelink.me already does on testnet. The routing is in place: continueUserActivity hands the link to DWInvitationLinkNormalizer, which unwraps af_dp from *.onelink.me. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe associated-domains entitlement adds ChangesAssociated Domains
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Feature Merge Risk: ⚪ Minimal · up to This change lets mainnet DashPay invitation links open the installed app, matching the existing testnet behavior. No concrete merge-blocking risk is evident. Confirm the first signed CI build and test a mainnet invitation link on a TestFlight build. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new domain opens the existing invitation flow without changing its validation or PIN/biometric authorization controls. No introduced authorization bypass was demonstrated. Signed-build link delivery and the underlying invitation claim’s crash-recovery guarantees remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Final review complete — no blockers (commit bfa870c) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The one-line entitlement change correctly claims the mainnet OneLink domain; the live AASA matches the release app ID and /hirm/* path, and existing invitation routing and validation support the long-form URL. Entitlement linting and executable mainnet/testnet normalization checks passed at the exact reviewed head, but the canonical build is blocked by DashUIKit requiring Swift tools 6.3 while the installed Xcode provides 6.1. No code defect was confirmed; signed-device verification remains an in-scope validation follow-up.
🟡 1 suggestion(s)
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: glm-5.3-flash (agent: phase1-reviewer, role: security-auditor); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — Adding one associated-domain entitlement is a small, well-contained configuration change that enables mainnet universal-link behavior without modifying invitation parsing, funds movement, or other critical logic. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer,glm-5.3-flash— security-auditor (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 80% left; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 13% left, 5h 100% left) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— security-auditor (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `DashWallet/dashwallet.entitlements`:
- [SUGGESTION] DashWallet/dashwallet.entitlements:11: Complete signed-device verification before release
The PR explicitly leaves the device check outstanding. The new entitlement, live AASA, release app ID, and long-form invitation normalization agree, but those checks do not establish that an installed signed build receives the universal link and reaches the invitation screen. Complete and record the planned TestFlight check before shipping: tap a mainnet /hirm/* link containing af_dp from another app, verify that Dash Wallet opens with the invitation prefilled, and check both cold and running app states. This is the remaining end-to-end evidence required by the repository's validation standard for deep-link changes.
| <array> | ||
| <string>applinks:invitations.dashpay.io</string> | ||
| <string>applinks:dashpaytest.onelink.me</string> | ||
| <string>applinks:dashpay.onelink.me</string> |
There was a problem hiding this comment.
🟡 Suggestion: Complete signed-device verification before release
The PR explicitly leaves the device check outstanding. The new entitlement, live AASA, release app ID, and long-form invitation normalization agree, but those checks do not establish that an installed signed build receives the universal link and reaches the invitation screen. Complete and record the planned TestFlight check before shipping: tap a mainnet /hirm/* link containing af_dp from another app, verify that Dash Wallet opens with the invitation prefilled, and check both cold and running app states. This is the remaining end-to-end evidence required by the repository's validation standard for deep-link changes.
source: glm-5.3-flash (phase1-reviewer: general, security-auditor)
|
Verified on device. TestFlight 9.1.3 (6) is 9.1.3 (4) plus this PR (branch
|
llbartekll
left a comment
There was a problem hiding this comment.
LGTM. Approving.
What I checked:
- Both app targets (
dashwallet,dashpay) sign withDashWallet/dashwallet.entitlementsin every configuration, so thedashpayscheme that ships to TestFlight picks this up. - The live AASA at
dashpay.onelink.melists44RJ69WHFF.org.dashfoundation.dashfor/hirm/*. That matchesDEVELOPMENT_TEAMand the bundle ID. - Routing:
continueUserActivity:(DASHPAY) →DWInvitationLinkNormalizer.isInvitationURL. It matches theonelink.mesuffix and unwrapsaf_dp. Nothing else in the app needs the new host. - Android's
InviteShareLinknow shares the brand domain with a trailing slash (/hirm/?af_dp=…), so new Android invites match the/hirm/*pattern. Your TF 9.1.3 (6) device check covers the end-to-end path.
Non-blocking notes:
- Every
/hirm/*URL now opens the app. When the normalizer can't unwrap a link (a short OneLink, or a non-invite link on that template),continueUserActivity:returnsNOafter iOS has already opened the app. The user lands on Home and nothing happens. Before this change they went to Safari and then the App Store. Android shares long links, so this is an edge case. If it comes up, a cheap follow-up is to show the paste/scan hint for a OneLink host that fails to unwrap, instead of returningNO. - Invites Android shared before
InviteShareLink(path/hirmwith no trailing slash, or thego.onelink.mehost) don't match the AASA, so they still open in the browser. That's expected and not fixable here.
Issue being fixed or feature implemented
DashPay invitation links on mainnet are AppsFlyer OneLinks on
dashpay.onelink.me(templatehirm). On iPhone they never open the installed app: the app does not claim that domain, and the template's AASA was empty. The template has now been fixed in AppsFlyer:https://dashpay.onelink.me/.well-known/apple-app-site-associationserves44RJ69WHFF.org.dashfoundation.dashfor/hirm/*. The testnet domaindashpaytest.onelink.me(/k7Pz/*) was already claimed.What was done?
applinks:dashpay.onelink.metoDashWallet/dashwallet.entitlements.application:continueUserActivity:already routes the link throughDWInvitationLinkNormalizer, which accepts*.onelink.meand unwraps the innerdashpay://invitefromaf_dp.af_dpin the URL are not resolved.How Has This Been Tested?
plutil -linton the entitlements file.https://dashpay.onelink.me/hirm/…?af_dp=dashpay%3A%2F%2Finvite%3F…link on an iPhone with the app installed; the app should open.-allowProvisioningUpdates, so the profile should update without a portal change. The first CI build confirms it.Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit
dashpay.onelink.mecan now open in DashWallet.