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

Implement automatic STS account provisioning #456

Closed
paullatzelsperger opened this issue Sep 12, 2024 · 0 comments · Fixed by #458
Closed

Implement automatic STS account provisioning #456

paullatzelsperger opened this issue Sep 12, 2024 · 0 comments · Fixed by #458
Assignees
Labels
dcp enhancement New feature or request

Comments

@paullatzelsperger
Copy link
Member

paullatzelsperger commented Sep 12, 2024

Feature Request

An extension will be implemented that automatically creates an STS "account" (StsClient), when the SecureTokenService (STS) is embedded in the IdentityHub runtime.

Several use cases exist for this:

  • ParticipantContextCreated: create the StsClient object with the default key pair, generate a random client secret
  • KeyPairRevoked: set the vault aliases for the private and public key to null
  • KeyPairRotated: set the vault aliases for the private and public key to null
  • DidDocumentPublished: obtain the default keypair and set it's privateKeyAlias and its key-id (from the did document). This feature can be disabled with a configuration value.

Note that when keys are revoked or rotated, and a new key is attached to the request, that will result in a KeyPairAdded event

Which Areas Would Be Affected?

add new extension to IH

Why Is the Feature Desired?

convenience

Solution Proposal

The extension should be so fault tolerant to only execute the aforementioned event handlers, if the STS modules are in fact present and an StsClientStore can be resolved.
In other words, adding this new extension to an IdentityHub that does not contain STS modules should not raise an error, but log an error. This simplifies the creation of an IdentityHub BOM.

@paullatzelsperger paullatzelsperger self-assigned this Sep 12, 2024
@paullatzelsperger paullatzelsperger added enhancement New feature or request dcp labels Sep 12, 2024
@github-actions github-actions bot added the triage all new issues awaiting classification label Sep 12, 2024
@paullatzelsperger paullatzelsperger removed the triage all new issues awaiting classification label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dcp enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant