-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add support for Vault TOTP secrets #7873
Conversation
extensions/vault/runtime/src/main/java/io/quarkus/vault/VaultTOTPSecretEngine.java
Show resolved
Hide resolved
@lordofthejars IMHO it is ready to go, all looks quite perfect to me, waiting for @vsevel 's feedback, cheers |
extensions/vault/runtime/src/main/java/io/quarkus/vault/runtime/client/OkHttpVaultClient.java
Outdated
Show resolved
Hide resolved
...t/runtime/src/main/java/io/quarkus/vault/runtime/client/dto/totp/VaultTOTPCreateKeyBody.java
Outdated
Show resolved
Hide resolved
@vsevel Added the comments you mentioned. |
...t/runtime/src/main/java/io/quarkus/vault/runtime/client/dto/totp/VaultTOTPCreateKeyBody.java
Outdated
Show resolved
Hide resolved
@Test | ||
public void readKey() { | ||
CreateKeyParameters createKeyParameters = new CreateKeyParameters( | ||
"otpauth://totp/Vault:[email protected]?secret=Y64VEVMBTSXCYIWRSHRNDZW62MPGVU2G&issuer=Vault"); |
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.
create a constant?
hello I have added only minor comments. |
@vsevel Last commit with latest changes on test side, now let's wait until the build result. Locally, it worked. |
extensions/vault/runtime/src/main/java/io/quarkus/vault/VaultTOTPSecretEngine.java
Outdated
Show resolved
Hide resolved
extensions/vault/runtime/src/main/java/io/quarkus/vault/runtime/VaultTOTPManager.java
Outdated
Show resolved
Hide resolved
@vsevel Second round done :) |
Hi Vincent @vsevel, please approve when you are totally happy with the PR and I'll be glad to merge |
@sberyozkin @vsevel Same here please :) #7891 |
@lordofthejars I just approved. very nice addition to the vault extension. thanks. |
Thank you very much to you for starting the vault extension and reviewing the PR. |
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 will have a quick look today, given Vincent and Sergey already are OK with it.
Can you squash the commits though?
@gsmet Done. |
@gsmet Thanks |
Merged, thanks! |
PR for adding support for Vault TOTP: https://www.vaultproject.io/api/secret/totp/index.html
When the PR is merged I'll send another PR with a new document explaining how to use it.
Fixes #7865