Skip to content

fix(dashpay): share invite links the iOS wallet can open (#1586) - #1587

Merged
HashEngineering merged 3 commits into
masterfrom
fix/invite-link-ios-compat
Oct 7, 2026
Merged

HashEngineering merged 3 commits into
masterfrom
fix/invite-link-ios-compat

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Fixes #1586.

The iOS wallet has no AppsFlyer SDK: it only opens an invitation whose dashpay://invite payload rides in the URL as af_dp, and only from a domain it claims (dashpay.onelink.me / dashpaytest.onelink.me). Three things on the Android side broke that, on testnet and on mainnet:

  • The shared link was whatever AppsFlyer returned. A successful shortlink request yields a short OneLink with no af_dp, which iOS cannot resolve. iOS compatibility so far depended on that request failing (it returned 400 in every log we have). The shared link is now always the SDK's long link; AppsFlyer's answer is kept in Invitation.dynamicLink for reference only.
  • go.onelink.me fallback. When the app id is not part of the OneLink template (the _testNet3 package is not in k7Pz), the SDK never receives the template domain and builds the link on go.onelink.me, whose apple-app-site-association does not list the Dash app. Note the issue describes the <id>.app.appsflyersdk.com/<package> shape; that one comes from an empty APPSFLYER_TEMPLATE_ID_TESTNET (decompiled LinkGenerator.setBaseURL in SDK 6.17.0). InviteShareLink puts the build's brand domain back and adds a trailing slash so the path matches the AASA pattern /<template>/*. AppsFlyer serves /<template>/ exactly like /<template> (checked with iPhone and Android user agents).
  • avatar-url was percent-encoded twice (URLEncoder + Uri.Builder). Android undid it on read, but the platform SDK parser used by iOS decodes once and got https%3A%2F%2F... as the avatar URL. The link now encodes it once; reading still decodes links from older wallets.

Not fixed here, because it is AppsFlyer dashboard configuration: hashengineering.darkcoin.wallet_test is in no OneLink template, so its landing page still targets org.dash.dashpay.testnet on Android. Either give _testNet3 its own template or create test invitations from staging only.

Related PR's and Dependencies

How Has This Been Tested?

  • New unit tests: InviteShareLinkTest (7) and InvitationLinkDataTest (4, Robolectric), run with :wallet:test_testNet3DebugUnitTest.
  • Decoded a link generated by a current _testNet3 build and confirmed the go.onelink.me host and the double-encoded avatar-url.
  • Probed go.onelink.me, dashpaytest.onelink.me and dashpay.onelink.me AASA files and landing pages with curl.
  • Still to do on device: tap a link with the trailing slash on an iOS TestFlight build with the app installed; it should open the app instead of Safari.
  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Invitation links now use the configured brand domain when available, while preserving invitation details and providing a usable share link when the service does not return one.
    • Avatar links in invitations are decoded correctly, including links from older wallets, without altering percent-encoded characters.
    • Sharing and copying become available once a saved invitation has a share link.

The iOS wallet has no AppsFlyer SDK: it only opens an invitation when the
`dashpay://invite` payload rides in the URL as `af_dp`, and only from a
domain it claims (dashpay.onelink.me / dashpaytest.onelink.me). Three
things on the Android side broke that:

- The shared link was whatever AppsFlyer returned. A successful shortlink
  request yields a short OneLink with no `af_dp`, which iOS cannot resolve;
  iOS compatibility so far depended on that request failing. The shared
  link is now always the SDK's long link; the server answer is kept in
  `Invitation.dynamicLink` for reference.
- When the app id is not part of the OneLink template (the _testNet3
  package is not in k7Pz), the SDK never learns the template domain and
  falls back to go.onelink.me, whose AASA does not list the Dash app.
  InviteShareLink puts the build's brand domain back and adds the trailing
  slash so the path matches the AASA pattern `/<template>/*`.
- `avatar-url` was percent-encoded twice (URLEncoder + Uri.Builder). The
  platform SDK parser used by iOS decodes once and got a broken avatar URL.
  The link now encodes it once; reading keeps decoding legacy links.

Also sets `deep_link_value` alongside `af_dp`, the field AppsFlyer Unified
Deep Linking hands to a freshly installed app.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6ad293f-f9d8-492a-96df-b25b4845e9bd
📥 Commits

Reviewing files that changed from the base of the PR and between 61fe73e and c581247.

📒 Files selected for processing (4)
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/work/SendInviteWorker.kt
  • wallet/src/de/schildbach/wallet/ui/invite/InvitationFragmentViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/invite/InviteCreatedFragment.kt

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The invitation flow now handles encoded avatar URLs and normalizes eligible AppsFlyer OneLinks. It stores the share link with the invitation and reads it from the saved invitation for sharing and copying.

Changes

Invitation links and sharing

Layer / File(s) Summary
Invitation URL parsing and normalization
wallet/src/de/schildbach/wallet/data/InvitationLinkData.kt, wallet/src/de/schildbach/wallet/data/InviteShareLink.kt, wallet/test/de/schildbach/wallet/data/InvitationLinkDataTest.kt, wallet/test/de/schildbach/wallet/data/InviteShareLinkTest.kt
Avatar URL parsing avoids decoding values that already begin with an HTTP scheme. InviteShareLink.from conditionally replaces the fallback host, adds a trailing slash, and preserves the query and fragment. Tests cover these URL cases.
AppsFlyer link generation and DynamicLink fields
wallet/src/de/schildbach/wallet/data/DynamicLink.kt, wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt
TopUpRepository passes the raw avatar URL to invitation-link creation and normalizes the generated long link for DynamicLink.link. shortLink uses the AppsFlyer response or falls back to the long link. KDoc describes the DynamicLink fields.
Stored invitation link and share controls
wallet/src/de/schildbach/wallet/ui/dashpay/work/SendInviteWorker.kt, wallet/src/de/schildbach/wallet/ui/invite/InvitationFragmentViewModel.kt, wallet/src/de/schildbach/wallet/ui/invite/InviteCreatedFragment.kt
The worker no longer places the share link in its output data. The view model reads the link from the saved invitation, and the fragment enables and invokes sharing and copying only when the link is available.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: thepastaclaw

Merge Risk: ⚪ Minimal · up to c5812

Invitations share the iOS-compatible long link stored with the invitation. The earlier concern about oversized background-task output is addressed. No merge-blocking issues remain, though the iOS tap test is still pending QA.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 61fe7

The changed sharing path uses configured wallet domains and preserves the invitation payload without changing the inspected validation checks. No introduced security defect was established, but third-party deferred-link delivery and protection of sensitive invitation URLs remain incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The exposed credential is derived from the invitation's asset-lock transaction, not the wallet seed or encryption key. The directly evidenced authority is invitation-specific; a recipient obtaining many invitation URLs could obtain the corresponding capabilities across those invitations.

Security Findings and Attack Paths

  • observed — Source logs the invitation payload and generated URLs at info level. Direct payload logging and transmission to AppsFlyer predate this PR; the head adds a share-URL log and another parameter containing that payload. Expanded logging recipients, retention, or downstream disclosure were not established, so this is not retained as an introduced security finding.

Trust Boundaries and Controls

  • observed — Incoming direct and af_dp invitation URLs retain required-field checks. Subsequent validation inspects transaction existence, minimum credits, existing identity, private-key format/network, and lock parsing. The avatar decoder does not change these checks; they should not be interpreted as proof of every cryptographic ownership invariant.
  • inferred — Avatar normalization does not introduce a new network-fetch capability: the existing avatar consumer already passes supplied URLs to Glide. Preserving HTTP(S) percent escapes changes the requested representation, not the consumer's authority or ownership boundary.

Resilience and Maintainability Implications

  • observed — The callback-based suspension has no visible cancellation bridge, and checkInvites sets its one-process completion flag in finally even after failure. Both behaviors predate the PR. Repeated link generation still derives authority from the supplied asset-lock transaction rather than creating a new funding capability.

Hardening Proposals

  • proposed — Treat complete invitation URLs as credentials: redact them from logs and verify that deferred-link attribution, retention, and delivery do not distribute the private-key-bearing payload beyond intended recipients.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR implements the long-link payload and single-encoding changes for #1586. InviteShareLink.from replaces go.onelink.me and adds the AASA trailing slash. It does not replace the per-app fallbac… Handle the per-app fallback URL when the testnet template ID is empty, or ensure _testNet3 uses a configured testnet OneLink template. Produce and test a dashpaytest.onelink.me/<template>/... link that retains af_dp for the reported f…
Docstring Coverage ⚠️ Warning Docstring coverage is 4.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the main change: fixing DashPay invite links so the iOS wallet can open them.
Out of Scope Changes check ✅ Passed The changes remain connected to #1586. Link persistence and the invitation screen changes support sharing the longer URL without placing it in WorkManager output. The avatar URL encoding changes and l…
Full details: Linked Issues check

Explanation

The PR implements the long-link payload and single-encoding changes for #1586. InviteShareLink.from replaces go.onelink.me and adds the AASA trailing slash. It does not replace the per-app fallback host (&lt;id&gt;.app.appsflyersdk.com) described in #1586 when APPSFLYER_TEMPLATE_ID_TESTNET is empty. That URL also has the package path, not the required testnet template path. The updated tests cover go.onelink.me, not the per-app fallback case. Thus the reported failure can remain for a testnet build with an empty template ID.

Resolution

Handle the per-app fallback URL when the testnet template ID is empty, or ensure _testNet3 uses a configured testnet OneLink template. Produce and test a dashpaytest.onelink.me/&lt;template&gt;/... link that retains af_dp for the reported fallback case.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit c581247) · triage: normal

@HashEngineering HashEngineering changed the title fix(dashpay): share invite links the iOS wallet can open (#1586) fix(dashpay): share invite links the iOS wallet can open (MO-1088, #1586) Sep 30, 2026

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

The invitation compatibility changes are focused, and all 11 added unit tests passed with the testnet wallet variant compiling successfully. Independent reproduction confirmed one blocking regression: duplicating the invitation payload in the shared URL can exceed WorkManager's output limit after funding has already been broadcast. The credential-logging observation is valid but repeats an existing exposure and is retained only as a separate follow-up.

🔴 1 blocking

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (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: normal by gpt-6.1-sol (effort low) — This is a contained but multi-file behavioral change to invitation-link construction and parsing, including URL encoding, AppsFlyer fallback handling, and repository logic with new tests, but it does not affect funds, cryptography, consensus, key handling, or storage migrations.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort xhigh); agent phase1-reviewer, muse-spark-1.3-contributor — security-auditor (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 13% left, 5h 100% left), glm-5.3-flash (not used above high effort; tier asks max)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort high); agent phase2-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 `wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt`:
- [BLOCKING] wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt:693-698: Keep the long invitation URL out of WorkManager output Data
  Returning shareLink as shortLink causes SendInviteWorker to persist the full URL and then include it in workDataOf(KEY_APPSFLYER_LINK to invitation.shortDynamicLink) at lines 139–145. WorkManager limits serialized Data to 10,240 bytes. This URL now contains the entire invitation twice, in af_dp and deep_link_value, including the hexadecimal InstantSend lock whose size grows with the funding transaction's input count. An independent SDK 6.17.0 reproduction with a 64-input-sized ISDLOCK produced a 10,806-character shared URL, and constructing the worker output threw IllegalStateException: Data cannot occupy more than 10240 bytes when serialized. The equivalent single-payload URL fit in 6,078 bytes of output. Fragmented wallets can require this many inputs, and the funding path does not impose a smaller input-count limit. The worker catches the exception and reports failure after broadcasting funding and saving the invitation; retrying reuses the same oversized saved URL. Keep the compatible URL in Room, pass only an invitation identifier through WorkManager, and load the sharing URL from the database in the consumer.
Out-of-scope follow-up suggestions (2)

These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.

  • Redact invitation credentials from diagnostic logs and support attachments — InvitationLinkData.create embeds the decrypted asset-lock private key in the pk parameter. Before this PR, TopUpRepository already logged both the complete invitation payload and generated URL. WalletApplication sends INFO messages to logcat and wallet.log, and ContactSupportViewModel can attach those files to support reports. Someone receiving an exported log could obtain the credential needed to claim an unused invitation's funded identity credits. The added share-link log repeats the same credential exposure through the same logging sinks rather than introducing a new disclosure boundary.
    • Follow-up: Track a separate remediation to redact invitation credentials from generation and incoming-link logs, with regression coverage for diagnostic exports.
  • Invite WIF private key written to logcat in AppsFlyer link logs — Out of scope as an inline PR finding: the base version of createAppsFlyerLink already logged invitationLinkData.link, the SDK-generated long URL, and the service response in full. The new shareLink and deep_link_value logs repeat the same credential through existing sinks. The concrete diagnostic-export exposure is consolidated into the separate follow-up, without carrying forward the unsupported claim that the asset-lock transaction can simply be imported and swept.
    • Follow-up: Consider creating a separate issue or author/maintainer-requested PR for this.

Nothing reads it: Android uses the legacy conversion listener, which
delivers af_dp, and iOS reads af_dp from the URL itself. Duplicating the
payload made the shared link ~57% longer for no consumer.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review — Final validation — Phase 1 + Phase 2

The invitation-link changes address the stated iOS compatibility requirements, but always returning the long URL still exposes invitation creation to WorkManager's output-size limit. Independently inspecting Dash's lock serialization and reproducing the exception with WorkManager 2.9.1 confirms that removing deep_link_value does not resolve the prior blocker.

🔴 1 blocking

1 carried-forward finding(s) already raised on this PR; not re-posting as new inline comments.

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: low by gpt-6.1-sol (effort low) — The diff makes small, contained changes to invitation URL selection, host/path normalization, and backward-compatible avatar decoding with focused tests, without changing funds movement, cryptography, key handling, or other critical surfaces.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer, glm-5.3-flash — security-auditor (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 98% left, weekly 78% left; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 13% left, 5h 100% left)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort medium); agent phase2-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 `wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt`:
- [BLOCKING] wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt:693-698: Keep the long invitation URL out of WorkManager output Data
  (existing thread: https://github.com/dashpay/dash-wallet/pull/1587#discussion_r4147359376)
  The long URL returned as DynamicLink.shortLink is saved as invitation.shortDynamicLink and then placed in SendInviteWorker's output Data at line 144. WorkManager limits serialized Data to 10,240 bytes. Removing deep_link_value eliminates the duplicate payload, but InvitationLinkData.create() still embeds the complete hex-serialized InstantSend lock in af_dp; each funding input contributes another 36 bytes, or 72 URL characters. Funding uses wallet coin selection without a small input-count bound. A single-payload URL containing a 150-input lock measures 11,355 characters even without campaign or preview parameters, and passing it to the actual WorkManager 2.9.1 Data.Builder reproduces IllegalStateException: Data cannot occupy more than 10240 bytes when serialized. The funding transaction has already been sent and the invitation saved when this exception is caught and reported as worker failure, so the creation screen leaves its share/copy controls disabled. This PR makes that failure unavoidable for sufficiently large locks even when AppsFlyer successfully returns a short link. Keep the long share URL in InvitationsDao, return the funding address or another invitation identifier through WorkManager, and load the saved URL in the UI.
Out-of-scope follow-up suggestions (1)

These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.

  • Invitation claim private keys are included in diagnostic logs — TopUpRepository logs the complete af_dp payload and long invitation URL, including the WIF claim key. WalletApplication enables INFO logging to both logcat and rolling wallet log files, and the support flow collects those log files. The same secret-bearing payload was already logged at the PR base, so the additional share-link log does not introduce a distinct exposure requiring this PR to expand its scope.
    • Follow-up: Track a separate change to redact invitation claim-key material from all invitation logs, including nested af_dp payloads.

@HashEngineering HashEngineering changed the title fix(dashpay): share invite links the iOS wallet can open (MO-1088, #1586) fix(dashpay): share invite links the iOS wallet can open (#1586) Sep 30, 2026
@HashEngineering HashEngineering added this to the 11.9.2 milestone Sep 30, 2026
WorkManager caps serialized output Data at 10 KB. The share link embeds
the hex InstantSend lock, which grows by 72 characters per input of the
funding transaction, so a fragmented wallet could push the worker's
output over the limit after the funding transaction was already sent.
The link is only ever stored in the invitation table now; the created
screen reads it from the Room row it already observes by user id.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review — Final validation — Phase 1 + Phase 2

Reviewed the complete diff at c581247 and verified no in-scope defects. The prior WorkManager output-size issue is fixed; the reported memo-overwrite regression is pre-existing, not introduced by this PR. Validation was static only: the supplied CI snapshot shows check passing and build still in progress, and on-device iOS universal-link validation remains outstanding.

🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 5: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.1-sol (effort low) — The diff changes invitation URL construction, backward-compatible decoding, and asynchronous sharing state across several components, but does not introduce large or intricate changes to a critical surface.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 15% left, 5h 100% left), glm-5.3-flash (not used above high effort; tier asks max)
  • Fresh final gate: an independent Phase-2 review ran after iterative findings were reconciled
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort high); agent phase2-reviewer, gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort high); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.

No unresolved findings remain from the prior review on this head.
Out-of-scope follow-up suggestions (1)

These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.

  • Redact bearer invitation credentials from application and support logs — InvitationLinkData.create() embeds the decrypted asset-lock private key in the pk parameter. TopUpRepository.kt:685–689 and InviteHandlerViewModel.kt:86–105 log invitation URLs or payloads; WalletApplication persists INFO messages, and ContactSupportViewModel can attach those log files to support reports. A recipient of logs containing an unclaimed invitation could extract its bearer key and claim the funded invitation. The base revision already logs the full long URL, af_dp payload, and parameter map; the added share-link message duplicates this existing exposure.
    • Follow-up: Track a separate security follow-up to remove or redact private-key-bearing invitation URLs and parameter maps from generation, attribution, inbound handling, and exported diagnostic logs.

@HashEngineering
HashEngineering merged commit a8de1f0 into master Oct 7, 2026
3 checks passed
HashEngineering added a commit that referenced this pull request Oct 16, 2026
…sdk-phase-1-v11.9.1

Brings in #1619, phase-1's own port of master's #1587 (iOS-compatible
invite links), which this branch also carries from master. The shared
files (InviteShareLink, DynamicLink, InviteShareLinkTest) were identical.
The four conflicted invite files take #1619's side:

- TopUpRepository: #1619 logs only the shape of the share link, not the
  links themselves, which carry the invitation's bearer key.
- InviteCreatedFragment / InvitationFragmentViewModel: equivalent
  share-enable rule and doc comment; #1619's wording kept.
- InvitationLinkDataTest: same avatar-url cases under #1619's names.
- InvitationLinkData: auto-merged with looksLikeUrl() defined twice (both
  sides added it); taken as #1619's file.

This branch's own changes in those files (awaitRestored barriers, the
payment-still-confirming invite failure) are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invitation links from the _testNet3 flavor use the AppsFlyer fallback domain and never open on iOS

2 participants