Vault Connection¶
The Vault connection type enables integrations with the Hashicorp vault client.
Default Connection IDs¶
Hooks related to Vault use vault_default
by default.
Configuring the Connection¶
- Host (required)
The host to connect to.
- Schema
Vault mount point. Default value is
secret
- Login
Required when used
ldap
oruserpass
auth types, and you can use it to pass the username fortoken
auth type and the role id forapprole
andaws_iam
auth type.- Password
Required when used
ldap
,userpass
ortoken
.- Port
The port of the Vault host.
- Extra
Specify the extra parameters (as json dictionary) that can be used in Vault connection.
auth_type
: Authentication Type for Vault. Default istoken
. Available values are in (‘approle’, ‘aws_iam’, ‘azure’, ‘github’, ‘gcp’, ‘kubernetes’, ‘ldap’, ‘radius’, ‘token’, ‘userpass’)auth_mount_point
: It can be used to define mount_point for authentication chosen Default depends on the authentication method used.kv_engine_version
: Selects the version of the engine to run (1
or2
, default:2
).role_id
: Role ID for Authentication (forapprole
,aws_iam
auth_types). Deprecated, please use connection login insteadkubernetes_role
: Role for Authentication (forkubernetes
auth_type).kubernetes_jwt_path
: Path for kubernetes jwt token (forkubernetes
auth_type, default:/var/run/secrets/kubernetes.io/serviceaccount/token
).token_path
: path to file containing authentication token to include in requests sent to Vault (fortoken
andgithub
auth_type).gcp_key_path
: Path to Google Cloud Service Account key file (JSON) (forgcp
auth_type). Mutually exclusive with gcp_keyfile_dictgcp_scopes
: Comma-separated string containing OAuth2 scopes (forgcp
auth_type).azure_tenant_id
: The tenant id for the Azure Active Directory (forazure
auth_type).azure_resource
: The configured URL for the application registered in Azure Active Directory (forazure
auth_type).radius_host
: Host for radius (forradius
auth_type).radius_port
: Port for radius (forradius
auth_type).use_tls
: Whether to use https or http protocol for the connection.Example “extras” field:
{ "auth_type": "kubernetes", "kubernetes_role": "vault_role", }