Skip to content

feat: make HashiCorp vault authentication extensible #4822

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

Merged

Conversation

ronjaquensel
Copy link
Contributor

@ronjaquensel ronjaquensel commented Feb 13, 2025

What this PR changes/adds

Refactors the vault-hashicorp module as outlined in this DR.

Why it does that

To make vault authentication extensible and thus enable using different authentication methods.

Further notes

In addition to what's already mentioned in the DR:

  • created HashicorpVaultTokenRenewService, which now contains the token look-up & renew methods previously located in the health service. I did not add them to the HashicorpVaultTokenRenewTask directly, to keep a separation between the methods for renewing the token and the periodic task triggering the token renewal.
  • created vault-hashicorp-spi, which as of now contains only the HashicorpVaultTokenProvider interface.
  • removed the token from HashicorpVaultSettings, as it is only used by the token provider now, and added it directly as a @Setting to the extension providing the token provider

Who will sponsor this feature?

me

Linked Issue(s)

Closes #4810
Closes #4751

@ronjaquensel ronjaquensel added enhancement New feature or request refactoring Cleaning up code and dependencies labels Feb 13, 2025
@ronjaquensel ronjaquensel requested a review from ndr-brt February 13, 2025 08:49
@ronjaquensel ronjaquensel self-assigned this Feb 13, 2025
@ronjaquensel ronjaquensel force-pushed the vault-authentication-refactor branch from 1010cbf to 611b5ec Compare February 13, 2025 09:01
@ronjaquensel ronjaquensel requested a review from ndr-brt February 20, 2025 13:36
@ronjaquensel ronjaquensel requested a review from ndr-brt February 21, 2025 09:22
@ronjaquensel ronjaquensel merged commit bb110c5 into eclipse-edc:main Feb 21, 2025
21 checks passed
@ronjaquensel ronjaquensel deleted the vault-authentication-refactor branch February 21, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make HashiCorp vault authentication extensible Refactor HAshicorpHealthService
3 participants