Interface DbSecrets
- All Superinterfaces:
Secrets
Database secrets engine API.
All methods block the current thread. This implementation is not suitable for reactive programming.
Use DbSecretsRx
in reactive code.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfigure
(DbConfigure.Request<?> request) Configure a database.static DbSecrets
create
(DbSecretsRx reactive) Create blocking DB secrets from its reactive counterpart.createRole
(DbCreateRole.Request request) Create or update a role definition.delete
(DbDelete.Request request) Delete a database configuration.default DbDelete.Response
Delete a database configuration.deleteRole
(DbDeleteRole.Request request) Delete a database role.default DbDeleteRole.Response
deleteRole
(String name) Delete a database role.get
(DbGet.Request request) Get credentials from the/creds
endpoint.default Optional<DbCredentials>
Get credentials from the/creds
endpoint.list
(ListSecrets.Request request) List database connections.
-
Field Details
-
ENGINE
Database secrets engine.Documentation: https://www.vaultproject.io/docs/secrets/databases
-
-
Method Details
-
create
Create blocking DB secrets from its reactive counterpart.- Parameters:
reactive
- reactive DB secrets- Returns:
- blocking DB secrets
-
list
List database connections. -
get
Get credentials from the/creds
endpoint.- Parameters:
name
- name of the credentials- Returns:
- credentials
-
get
Get credentials from the/creds
endpoint.- Parameters:
request
- request with at least the name- Returns:
- get DB response
-
createRole
Create or update a role definition.- Parameters:
request
- role request- Returns:
- when the role is created
-
configure
Configure a database.- Parameters:
request
- configuration options - see specific database types- Returns:
- when the database is configured
-
delete
Delete a database configuration.- Parameters:
name
- name of the database configuration- Returns:
- when the database configuration is deleted
-
delete
Delete a database configuration.- Parameters:
request
- delete request with at least name configured- Returns:
- delete database configuration response
-
deleteRole
Delete a database role.- Parameters:
name
- name of the role- Returns:
- when the role is deleted
-
deleteRole
Delete a database role.- Parameters:
request
- request with at least the role name configured- Returns:
- delete database role response
-