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

fix: ensure profile names are unique #3470

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Jan 27, 2025

The profile.name property is expected to be unique. When using single-wallet-askar, it is not unique and is always multitenant_sub_wallet or whatever the wallet for all the profiles is called. This causes problems in a few key areas. This fix uses the profile_id (when present, i.e. when using single-wallet-askar) to make sure profile.name is unique. I will open an issue to further detail the extent of this problem so we can discuss how far back we need to go.

@dbluhm dbluhm linked an issue Jan 27, 2025 that may be closed by this pull request
@jamshale
Copy link
Contributor

I'll look into why that test is failing...

@jamshale
Copy link
Contributor

So... Maybe this could be done better but the AskarAnoncredsProfile class needs to be updated with this change as well. https://github.com/openwallet-foundation/acapy/blob/main/acapy_agent/askar/profile_anon.py#L57

This is why the failing test is happening. It's reloading the sub-wallet profile as Anoncreds and then getting the sub-wallet name again instead of the id.

@dbluhm dbluhm force-pushed the fix/unique-profile-name branch from 4042125 to 3f80a4d Compare January 27, 2025 22:17
@dbluhm dbluhm enabled auto-merge January 27, 2025 22:17
@dbluhm dbluhm merged commit ef1ab19 into openwallet-foundation:main Jan 27, 2025
9 checks 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.

Cache bleeding between wallets in single-wallet-askar
2 participants