Package io.quarkus.vault
Class VaultKubernetesAuthService
- java.lang.Object
-
- io.quarkus.vault.VaultKubernetesAuthService
-
@ApplicationScoped public class VaultKubernetesAuthService extends Object
This service provides programmatic access to the Kubernetes auth method. This may be used by admin clients that provision Vault for use from Kubernetes.
-
-
Constructor Summary
Constructors Constructor Description VaultKubernetesAuthService(VaultKubernetesAuthReactiveService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(VaultKubernetesAuthConfig config)Configure the Kubernetes auth method.voidcreateRole(String name, VaultKubernetesAuthRole role)Create or update a Kubernetes vault role.voiddeleteRole(String name)Delete a Kubernetes vault role through its name.VaultKubernetesAuthConfiggetConfig()Gives access to the currently configured Kubernetes auth method.VaultKubernetesAuthRolegetRole(String name)Returns the definition of a Kubernetes vault role.List<String>getRoles()Get the names of the existing Kubernetes vault roles.
-
-
-
Constructor Detail
-
VaultKubernetesAuthService
@Inject public VaultKubernetesAuthService(VaultKubernetesAuthReactiveService service)
-
-
Method Detail
-
configure
public void configure(VaultKubernetesAuthConfig config)
Configure the Kubernetes auth method.- Parameters:
config- configuration detail
-
getConfig
public VaultKubernetesAuthConfig getConfig()
Gives access to the currently configured Kubernetes auth method.- Returns:
- the configuration
-
getRole
public VaultKubernetesAuthRole getRole(String name)
Returns the definition of a Kubernetes vault role.- Parameters:
name- role name- Returns:
- the Kubernetes vault role
-
createRole
public void createRole(String name, VaultKubernetesAuthRole role)
Create or update a Kubernetes vault role.- Parameters:
name- role namerole- role attributes
-
deleteRole
public void deleteRole(String name)
Delete a Kubernetes vault role through its name.- Parameters:
name- role name to delete
-
-