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

feat: implement StsAccountProvisioner #458

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Sep 12, 2024

What this PR changes/adds

Implements the StsAccountProvisioner which creates, updates and deletes StsClient entries as a result of certain IdentityHub management actions.

Here's how it works:

  • the STS client is generated explicitly when a ParticipantContext is created
  • revoked and rotated events are synchronized to the STS client
  • deleting a ParticipantContext deletes the StsClient

Why it does that

convenience and comfort

Further notes

  • KeyPairAdded and KeyPairRevoked now carry the KeyPairResource instead of just the ID
  • KeyPairAdded and KeyPairRevoked now carry the (nullable) description of the new key

Linked Issue(s)

Closes #456

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added the enhancement New feature or request label Sep 12, 2024
@paullatzelsperger paullatzelsperger marked this pull request as draft September 13, 2024 07:32
@paullatzelsperger
Copy link
Member Author

paullatzelsperger commented Sep 13, 2024

marked as draft b/c the client-secret generator is still missing

added in 4a7e741

@paullatzelsperger paullatzelsperger marked this pull request as ready for review September 13, 2024 08:14
* @param parameters Optional generator arguments, such as a salt value
* @return a randomly generated client secret.
*/
String generateClientSecret(@Nullable Object parameters);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'parameters' is never used.
@paullatzelsperger paullatzelsperger force-pushed the feat/456_implement_sts_account_provisioner branch from 2601d03 to 7b1d9ec Compare September 16, 2024 11:05
@paullatzelsperger paullatzelsperger force-pushed the feat/456_implement_sts_account_provisioner branch from 56f0b37 to 1808d46 Compare September 16, 2024 13:43
@paullatzelsperger paullatzelsperger force-pushed the feat/456_implement_sts_account_provisioner branch from 1808d46 to a1c28cf Compare September 16, 2024 14:21
Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things to cleanup

@paullatzelsperger paullatzelsperger merged commit 1b426a8 into eclipse-edc:main Sep 17, 2024
16 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/456_implement_sts_account_provisioner branch September 17, 2024 09:49
paullatzelsperger added a commit to paullatzelsperger/IdentityHub that referenced this pull request Sep 17, 2024
* feat: implement StsClientProvisioner

* handle deleted event

* DEPENDENCIES

* added StsClientSecretGenerator

* add embedded STS and STS API to IH runtime

* AccountProvisioner is called explicitly by ParticipantContextService

* implement key-revoked and key-rotated callbacks

* add new keypair descriptor to revoke/rotate event

* make provisioner transactional

* pr remarks

* updated wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement automatic STS account provisioning
3 participants