nuts-foundation / nuts-node

The reference implementation of the Nuts specification. A decentralized identity network based on the w3c ssi concepts with practical functionality for the healthcare domain.
https://nuts-foundation.gitbook.io
GNU General Public License v3.0
25 stars 16 forks source link

Pruning short-lived credentials #3001

Open reinkrul opened 7 months ago

reinkrul commented 7 months ago

With OpenID4VP, the Authorization Server will issue an EmployeeCredential (to the user's session wallet) for each initiated OpenID4VP flow. These will all be stored in the issuer's SQL database, never cleaned up.

Potential solutions:

The requirements question behind it is; when would an issuer be cleaning up issued VCs?

woutslakhorst commented 7 months ago

These particular credentials do not have a CredentialStatus entry so they are non-revocable. Therefore there's no use in storing them in the issuer DB. They are also not issued via an API but via an internal interface. Primary use of the issuer DB is to search for revocable VCs.

For auditing purposes I would store them at the usage side, not the issuing side.