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

Tenant Import Feature #55

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Aug 28, 2024

Move a standalone agent from an arbitrary location into a multi-tenant multi-wallet agent.

Only works for multi-tenant, multi-wallet agents

Copies the standalone database to the location next to the admin wallet and then creates the wallet records and forward route mappings for the connection and did keys.

Should allow all the configs available through the api when creating a sub wallet to be declared from the command line.

Adds raw key support to this tool and the existing tools.

Tests it fairly well with automated testing, but only with postgres. sqlite is quite complicated for restarting agents. Creates an admin agent and a standalone on 2 different instances and volumes. Creates connection and a credentials flow through issuance and revocation. Runs the migration and then reruns the same flow with the existing connection.

Potential problems:

  • Is there possibly keys that need a foward route I don't know about and haven't tested?
  • passwords and security during migrations

Adds a couple other, not important features to the existing tools.

@jamshale jamshale force-pushed the tenant-import-feature branch from 32444b9 to 2edd75d Compare September 4, 2024 19:58
@jamshale jamshale changed the title Initial Tenant Import Commit Tenant Import Feature Sep 4, 2024
@jamshale jamshale marked this pull request as ready for review September 4, 2024 19:59
@jamshale jamshale requested review from esune and WadeBarnes September 9, 2024 18:17
Copy link
Member

@esune esune left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍🏻

@jamshale jamshale merged commit 8c810df into openwallet-foundation:main Sep 11, 2024
1 check passed
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.

2 participants