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

Add an "auto delete" capability for credential and proof exchange records #2123

Open
tipusinghaw opened this issue Dec 3, 2024 · 2 comments

Comments

@tipusinghaw
Copy link

tipusinghaw commented Dec 3, 2024

Add the ability to "auto-delete" credentials and proof exchange records. using the global configurations and method-level parameters. That might help prevent the PII data and help with storage optimization.

@TimoGlastra
Copy link
Contributor

Yes I agree, that's a good one, and could be done immediately after emitting the error/success event. However this won't help for exchanges that are never completed.

You can quite easily build this on top of credo. Once you receive the completed/error event you delete the record. You can also run a cron script that deletes all records older than e.g. an hour every x minutes/hours/days.

We're working on some new models for storage that would also make it easy to find records that were created e.g. more than one hour ago.

@tipusinghaw
Copy link
Author

I was considering a flag-based implementation, similar to the preserve-exchange-record approach in ACA-Py. I agree that an event-driven implementation could be a more straightforward way to achieve this. Do you plan to incorporate a flag-based approach with global parameters in the future?

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

No branches or pull requests

2 participants