-
Notifications
You must be signed in to change notification settings - Fork 244
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 Hashicorp Vault signing service #4749
feat: implement Hashicorp Vault signing service #4749
Conversation
...mmon/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVault.java
Dismissed
Show dismissed
Hide dismissed
...mmon/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVault.java
Dismissed
Show dismissed
Hide dismissed
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Dismissed
Show dismissed
Hide dismissed
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Dismissed
Show dismissed
Hide dismissed
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Dismissed
Show dismissed
Hide dismissed
c7e7fd9
to
645661d
Compare
645661d
to
0639c83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update the headers
...-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVaultSignatureService.java
Outdated
Show resolved
Hide resolved
3549d45
to
3edaa7f
Compare
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Show resolved
Hide resolved
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Outdated
Show resolved
Hide resolved
spi/common/boot-spi/src/main/java/org/eclipse/edc/spi/security/SignatureService.java
Outdated
Show resolved
Hide resolved
*/ | ||
public class HashicorpVaultClient { | ||
private static final String VAULT_DATA_ENTRY_NAME = "content"; | ||
public class HashicorpVaultHealthService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also move the renew
logic into the HashicorpVaultTokenRenewTask
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no argument there, but lets do this once #4720 is done, so we don't have to do it twice.
...ashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/health/HashicorpVaultHealthCheck.java
Outdated
Show resolved
Hide resolved
...mmon/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVault.java
Outdated
Show resolved
Hide resolved
...mmon/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVault.java
Outdated
Show resolved
Hide resolved
...mmon/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVault.java
Outdated
Show resolved
Hide resolved
...t/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVaultExtension.java
Show resolved
Hide resolved
...t/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/HashicorpVaultExtension.java
Outdated
Show resolved
Hide resolved
note that configuration values are not yet implemented. this should also come in |
f82b69a
to
55c06d9
Compare
What this PR changes/adds
This PR mainly adds the
SignatureService
interface and an implementation for it based on Hashicorp Vault.Why it does that
remote signing of content and key rotation
Further notes
the
HashicorpVault
implementation was slightly refactored and simplified. And by "slightly" i mean massively. TheHashicorpVaultClient
is now only responsible for token renewal and health checks and was thus renamed toHashicorpVaultHealthService
.I think, the token renewal stuff should get pulled out into a separate service too, but I'd wait for #4720 for that, and do it in a subsequent PR
Linked Issue(s)
Closes # <-- insert Issue number if one exists
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.