Sunbird-RC / community

Repo to enable discussions, issue tracking & documentation for the Sunbird-RC projects
MIT License
12 stars 23 forks source link

[FEAT]: Cleanup expired credentials / attestations based on TTL configured for the attestation. #145

Open dileepbapat opened 2 years ago

dileepbapat commented 2 years ago

What is the feature request for?

Registry Core

What problem/inconvenience (if any) will this feature solve?

In addition to certificate validity registry custodian can decide to set TTL on verifiable credentials after which sunbird-rc would clear attestations.

TTL (in hour) Per attestation type 0 - do not store attestation (need to evaluate async cases) [n] - store until n hours, any request after that should get attested / pulled again from credential source -1 - can store indefinitely or until cred expires or owning entity exists.

Describe the feature clearly.

Add a new command that does ....

Sreejit-K commented 4 months ago

Discussion on Jun 6 :

Discussion on Jun 10 :

Attestation flow changes :

Loop through all the attestations and check for credentails with current date expiry time and do a soft or hard delete

What do you mean by cleanUp? Make it configurable. We have to deep dive into the current flow and figure out where to add this env