Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Multi-Tenant] Tenanted Wallet Addresses #3114

Open
3 of 4 tasks
Tracked by #2893
njlie opened this issue Nov 20, 2024 · 1 comment · May be fixed by #3152
Open
3 of 4 tasks
Tracked by #2893

[Multi-Tenant] Tenanted Wallet Addresses #3114

njlie opened this issue Nov 20, 2024 · 1 comment · May be fixed by #3152
Assignees
Labels
pkg: backend Changes in the backend package.

Comments

@njlie
Copy link
Contributor

njlie commented Nov 20, 2024

Wallet Addresses should become tenanted as per the Multi-Tenancy design, and will be logically separated in the backend database by a tenantId row that serves as a foreign key on the tenants table.

  • Add tenantId row to walletAddresses table that is required and maps to an id on the tenants table.
  • Add tenantId to database queries on wallet addresses
  • Acquire tenantId from request headers on wallet address GraphQL requests and pass them into wallet address service logic.
  • Include tenantId in base URL of authServer and resourceServer fields of the current wallet address response.

Prerequisites

Pull Request

#3152

@njlie njlie added the pkg: backend Changes in the backend package. label Nov 20, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Rafiki Nov 20, 2024
@njlie njlie mentioned this issue Nov 20, 2024
38 tasks
@golobitch
Copy link
Collaborator

Add tenantId to queries on wallet addresses

Note: this means to add tenantId to SQL queries and not GraphQL queries. Just for the clarification :)

@njlie njlie moved this from Backlog to Todo in Rafiki Nov 25, 2024
@koekiebox koekiebox moved this from Todo to In Progress in Rafiki Nov 28, 2024
@koekiebox koekiebox linked a pull request Dec 5, 2024 that will close this issue
6 tasks
@koekiebox koekiebox moved this from In Progress to Ready for Review in Rafiki Dec 9, 2024
@mkurapov mkurapov removed a link to a pull request Dec 9, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package.
Projects
Status: Ready for Review
Development

Successfully merging a pull request may close this issue.

3 participants