-
Notifications
You must be signed in to change notification settings - Fork 516
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
Add symlink to /home/indy/.indy_client for backwards compatibility #2443
Add symlink to /home/indy/.indy_client for backwards compatibility #2443
Conversation
Signed-off-by: Emiliano Suñé <[email protected]>
I've built ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.0-dev0 off this commit for testing. |
This doesn't feel like the right solution to me; this will mean that data will continue to be stored in the /home/indy directory, right? At what point do we actually make the switch to not having references back to indy-isms? What would be different about the solution at that point and now? |
Data will (can/should) actually be stored in |
The scenario we ran into was I migrated an agent from an indy-sdk based image to the askar only image. In doing so the PVC containing the tails files was mounted to |
These sorts of issues have been brought about due to the fact we've been using |
Ah I see. I had the source and target of the symlink swapped around. Thanks for explaining. This seems like a "necessary evil" unless we wanted to do an upgrade script that rewrites locations. |
As an aside about those tails locations, with the AnonCreds Rust changes, I believe this will no longer be an issue because the only time an actual tails file will need to exist will be when uploading it to the tails server. So a path won't be stored in the DB anymore. |
Please hold merging this PR until we've completed testing. Preliminary results:
|
Please let me know if after we test/merge this we need to do an RC2, or if it is safe enough to go to the final 0.10.0. |
I feel like this is innocuous enough to go straight into an official release, plus we're testing it on a custom image @WadeBarnes built before we merge it. |
With the #2409 fallout, I think we will need an RC2 anyway, unfortunately. |
Agreed |
Kudos, SonarCloud Quality Gate passed! |
This should resolve an issue happening when migrating an indy-based agent to an askar-only image: the home directories will change, however the database will contain references to previously created artifacts (specifically tails files in the case that triggered this fix) that will not be resolvable anymore.
Creating a symlink for
/home/indy/.indy-client/
pointing to/home/aries/.indy_client
should resolve issues with path resolution without needing to update path references stored in the database.We could potentially create a symlink between
/home/indy
and/home/aries
, but I don't like the idea of symlinking home directories.