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

VDR: For a SubjectID it should be possible to create a new DID after deactivation #3409

Open stevenvegt opened 2 months ago

stevenvegt commented 2 months ago

If we want users to provide a subjectID so they can map it to their internal customer administration, a deactivation of a subject should not be permanent. Currently it is not possible to recreate a DID for a subject with a disabled DID:

level=warning msg="CreateSubject failed" error="could not store DID documents: subject already exists" module=VDR operation=CreateSubject operationID=CreateSubject requestURI=/internal/vdr/v2/subject user="<nil>"
reinkrul commented 2 months ago

We could create DIDs for methods with no active DIDs for the particular subject. Would also provide a (manual) upgrade path for when we add a new DID method.