Crate vault_mgmt_lib

Crate vault_mgmt_lib 

Source

Structs§

GetUnsealKeysFromVault
HttpForwarderService
Forward HTTP requests over a connection stream
InitRequest
InitResult
PodApi
Wrapper around the kube::Api type for the Vault pod
PodSealStatus
RaftConfiguration
RaftConfigurationData
RaftConfigurationDataConfig
RaftConfigurationServer
StatefulSetApi
Wrapper around the kube::Api type for the Vault statefulset
VaultVersion

Enums§

ExecIn

Constants§

LABEL_KEY_VAULT_ACTIVE
LABEL_KEY_VAULT_SEALED
VAULT_PORT

Traits§

GetRaftConfiguration
Get vault pod’s raft configuration
GetSealStatus
Get vault pod’s seal status
GetUnsealKeys
Get the unseal keys from a Vault secret
HttpRequest
Send HTTP requests
Init
Init a vault process
RaftJoin
Join a vault process to a raft cluster
StepDown
Step down vault pod from active to standby
Unseal
Unseal a vault process using the provided keys

Functions§

construct_table
exec
exec_pod
get_output
get_unseal_keys
Get the unseal keys by running the specified command
init
is_active
Check if the vault pod is active based on its labels Returns an error if the pod does not have the expected labels
is_pod_active
Returns true if the Pod is the active replica. This is determined by looking at the vault-active label.
is_pod_exporting_seal_status
Returns true if the Pod has the seal status label. This is determined by looking if the vault-sealed label exists.
is_pod_ready
Returns true if the Pod is ready.
is_pod_sealed
Returns true if the Pod is sealed. This is determined by looking at the vault-sealed label.
is_pod_standby
Returns true if the Pod is a standby replica. This is determined by looking at the vault-active label.
is_pod_unsealed
Returns true if the Pod is unsealed. This is determined by looking at the vault-sealed label.
is_seal_status_initialized
is_seal_status_sealed
is_sealed
Check if the vault pod is sealed based on its labels Returns an error if the pod does not have the expected labels
is_statefulset_ready
Returns true if the StatefulSet is considered ready. This means that all replicas are available and ready.
is_statefulset_updated
Returns true if the StatefulSet is considered updated. This means that all replicas are up-to-date.
list_sealed_pods
List all pods that are sealed
list_vault_pods
raft_configuration_all_voters
raft_configuration_any_leader
raft_join
statefulset_has_version
Returns true if the StatefulSet template is using the given version.

Type Aliases§

BytesBody