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

Resources must have a participantId property #240

Closed
paullatzelsperger opened this issue Jan 26, 2024 · 0 comments · Fixed by #241
Closed

Resources must have a participantId property #240

paullatzelsperger opened this issue Jan 26, 2024 · 0 comments · Fixed by #241
Assignees
Labels
breaking-change Will require manual intervention for version update enhancement New feature or request

Comments

@paullatzelsperger
Copy link
Member

Feature Request

All resources in IdentityHub must have a property participantId by which they can be associated with the ParticipantContext that owns them.
Semantically, this is similar to an SQL foreign key relation, although in practice it will only be a loosely coupled business key.

Which Areas Would Be Affected?

DidDocumentResource, VerifiableCredentialResource, KeyPairResource

Why Is the Feature Desired?

to separate participant boundaries, e.g. when validating API requests or when determining affected resources after a modifying operation

Solution Proposal

Add a property participantId to every resource and initialize it during object creation.

@paullatzelsperger paullatzelsperger added breaking-change Will require manual intervention for version update enhancement New feature or request labels Jan 26, 2024
@paullatzelsperger paullatzelsperger self-assigned this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Will require manual intervention for version update enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant