Skip to content

SDP-1614: Generate unique wallet creation tokens - #705

Merged
philipliu merged 6 commits into
feature/c-accountsfrom
philip/sdp-1614-update-token-generation
Jun 13, 2025
Merged

SDP-1614: Generate unique wallet creation tokens#705
philipliu merged 6 commits into
feature/c-accountsfrom
philip/sdp-1614-update-token-generation

Conversation

@philipliu

@philipliu philipliu commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

What

This implements the wallet creation token generation as part of the receiver invite flow.

Why

Tokens are currently hardcoded.

Known limitations

N/A

Checklist

  • Title follows SDP-1234: Add new feature or Chore: Refactor package xyz format. The Jira ticket code was included if available.
  • PR has a focused scope and doesn't mix features with refactoring
  • Tests are included (if applicable)
  • CHANGELOG.md is updated (if applicable)
  • CONFIG/SECRETS changes are updated in helmcharts and deployments (if applicable)
  • Preview deployment works as expected
  • Ready for production

@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 12, 2025 17:00 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 12, 2025 17:00 — with GitHub Actions Inactive
@stellar-jenkins

This comment was marked as duplicate.

@philipliu
philipliu force-pushed the philip/sdp-1614-update-token-generation branch from 4a32139 to eba549f Compare June 12, 2025 21:38
@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 12, 2025 21:38 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 12, 2025 21:38 — with GitHub Actions Inactive
@stellar-jenkins

This comment was marked as duplicate.

@philipliu
philipliu force-pushed the philip/sdp-1614-update-token-generation branch from eba549f to 082774c Compare June 12, 2025 21:52
@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 12, 2025 21:52 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 12, 2025 21:52 — with GitHub Actions Inactive
MtnDBConnectionPool db.DBConnectionPool
AnchorPlatformBaseSepURL string
MessageDispatcher message.MessageDispatcherInterface
EmbeddedWalletService services.EmbeddedWalletServiceInterface

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I need to make sure that this is properly injected after #704 is merged.

@philipliu
philipliu marked this pull request as ready for review June 12, 2025 22:04
CREATE TABLE embedded_wallets (
token VARCHAR(36) PRIMARY KEY DEFAULT public.uuid_generate_v4(),
token VARCHAR(36) PRIMARY KEY,
tenant_id VARCHAR(36) NOT NULL,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🏗️ The presence of tenant_id here is indicative that there may be a logic/architecture issue. We shouldn't need to reference tenant ids in these tables, as this whole schema belongs to the same tenant.

Whenever we query this embedded_wallets table, we're only getting results for this tenant_id. So we shouldn't need to be passing around the tenant ID to any of the Wallet methods or store it in any of the tables.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this makes sense. Here's the PR #707

@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 13, 2025 19:48 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 13, 2025 19:48 — with GitHub Actions Inactive
@philipliu
philipliu force-pushed the philip/sdp-1614-update-token-generation branch from 15717da to aa75f9d Compare June 13, 2025 19:52
@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 13, 2025 19:52 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 13, 2025 19:52 — with GitHub Actions Inactive
@philipliu
philipliu had a problem deploying to Anchor Integration Tests June 13, 2025 20:00 — with GitHub Actions Failure
@philipliu
philipliu temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) June 13, 2025 20:00 — with GitHub Actions Inactive
@philipliu
philipliu temporarily deployed to Anchor Integration Tests June 13, 2025 20:05 — with GitHub Actions Inactive
@philipliu
philipliu merged commit 2fadfca into feature/c-accounts Jun 13, 2025
@philipliu
philipliu deleted the philip/sdp-1614-update-token-generation branch June 13, 2025 20:35
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.

3 participants