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

Set state to ACTIVE when creating new key pairs #284

Closed
paullatzelsperger opened this issue Feb 29, 2024 · 0 comments · Fixed by #286
Closed

Set state to ACTIVE when creating new key pairs #284

paullatzelsperger opened this issue Feb 29, 2024 · 0 comments · Fixed by #286
Assignees
Labels
api bug Something isn't working dcp

Comments

@paullatzelsperger
Copy link
Member

paullatzelsperger commented Feb 29, 2024

Bug Report

Describe the Bug

When new key pairs are created via the Management API, their state is set to CREATED, but never advances to ACTIVE.

Possible Implementation

  • When creating a participant, the key pair that was created alongside them should be set to ACTIVE.
  • The KeyPairDescriptor gets a new field isActive, which determines whether a key pair is set to ACTIVE or CREATED. defaults to true
  • When a new key pair is created, and the isActive flag is false, and the participant does not have an active keypair, a warning is logged
  • The key pair management API gets a new method POST "/v1/participants/{participantId}/keypairs/{keyPairId}/activate" that allows a state change CREATED -> ACTIVE, and returns a 400 in all other cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api bug Something isn't working dcp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant