-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support any Vault dynamic credentials secrets plugin in VaultCredenti…
…alsProvider This change is in preparation of support for dynamic Vault credentials for RabbitMQ. It renames the "database" dynamic credentials supports to use "dynamic" in the names in an effort to be clear about its use. Vault dynamic credentials all have basicallly identical responses so the credentials provider should support any of them easily. This does essentially 4 things. 1. Renames `VaultDatabaseCredentials`, `VaultDBManager` and supporting classes to use the naming "Dynamic" 2. Renames & deprecates `databaseCredentialsRole` to `credentialsRole` 3. `credentialsMount` config and adds this as a parameter to `VaultDynamicCredentialsManager.getDynamicCredentials` 4. Adds an `expires-at` property to the returned credentials which is calculated from the Vault lease duration.
- Loading branch information
Showing
16 changed files
with
294 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
.../src/main/java/io/quarkus/vault/runtime/client/dto/database/VaultDatabaseCredentials.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
.../main/java/io/quarkus/vault/runtime/client/dto/database/VaultDatabaseCredentialsData.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...el/src/main/java/io/quarkus/vault/runtime/client/dto/dynamic/VaultDynamicCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.quarkus.vault.runtime.client.dto.dynamic; | ||
|
||
import io.quarkus.vault.runtime.client.dto.AbstractVaultDTO; | ||
|
||
public class VaultDynamicCredentials extends AbstractVaultDTO<VaultDynamicCredentialsData, Object> { | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...rc/main/java/io/quarkus/vault/runtime/client/dto/dynamic/VaultDynamicCredentialsData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.quarkus.vault.runtime.client.dto.dynamic; | ||
|
||
import io.quarkus.vault.runtime.client.dto.VaultModel; | ||
|
||
public class VaultDynamicCredentialsData implements VaultModel { | ||
|
||
public String username; | ||
public String password; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 0 additions & 124 deletions
124
extensions/vault/runtime/src/main/java/io/quarkus/vault/runtime/VaultDbManager.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.