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

BREAKING: Make single wallet config more explicit #3105

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Jul 17, 2024

This changes some naming and configuration to make the multitenant single wallet vs multi wallet settings and usage more clear. Askar wallets can use either the basic manager MultitenantManager which is used by default and creates a DB/wallet for each tenant. Or, it can use the AskarProfileMultitenantManager to create subwallets in a single DB/wallet. This has been renamed to SingleWalletAskarMultitenantManager for clarity, and the config changed to multitenancy-config: '{"wallet_type": "single-wallet-askar"}' from multitenancy-config: '{"wallet_type": "askar-profile"}'

Also fixed an issue with the upgrade check during startup that was using the base manager before initialization and creating subwallet db's on restart when in single wallet mode. I'm looking into this more because the BaseMultitenantManager is injected in many other places. Need to make sure they are also using the correct manager via the MultitenantManagerProvider.

Added some documentation in Multitenancy.md

Note: the multitenant_provider plugin needs to be update because it inherits this class. Already done in my forked repo.

Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
@jamshale jamshale marked this pull request as ready for review July 17, 2024 17:48
Copy link

sonarcloud bot commented Jul 17, 2024

@jamshale jamshale requested a review from esune July 17, 2024 18:37
@jamshale jamshale merged commit 0c0ddce into hyperledger:main Jul 17, 2024
8 checks passed
@ff137
Copy link
Contributor

ff137 commented Aug 8, 2024

NB: renaming {"wallet_type": "askar-profile"}' to '{"wallet_type": "single-wallet-askar"}' is not listed in the rc5 / rc6 changelogs :-) should probably be noted as a breaking change.

@jamshale
Copy link
Contributor Author

jamshale commented Aug 8, 2024

Yes, it should. I thought it had been listed. It is a critical change for multitenant single wallet deployments. @swcurran

@swcurran
Copy link
Member

swcurran commented Aug 9, 2024

OK - thanks. Will add in the next release.

@swcurran swcurran changed the title Make single wallet config more explicit BREAKING: Make single wallet config more explicit Aug 9, 2024
darshilnb pushed a commit to Northern-Block/aries-cloudagent-python that referenced this pull request Sep 5, 2024
* Make single wallet config more explicit

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Fix minor string tuple issue

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
Co-authored-by: Ian Costanzo <ian@anon-solutions.ca>
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.

4 participants