Provides implementation for the Vault Consul Secret backend APIs
Extends
- Vaulted
Methods
-
<inner> configConsulAccess( [mountName])
-
Configures the access information for Consul secret backend
Parameters:
Name Type Argument Default Description options.body.addressstring address of the Consul instance, provided as host:port
options.body.tokenstring Consul ACL token to use; must be a management type token
options.body.schemestring <optional>
HTTP URL scheme to use
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
consul path name the consul secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> createConsulRole( [mountName])
-
Creates or updates the Consul role definition
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the consul role
options.body.policystring base64 encoded Consul ACL policy
options.body.token_typestring <optional>
client type of token to create using this role ('client', 'management')
options.body.leasestring <optional>
lease value provided as a string duration with time suffix
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
consul path name the consul secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> deleteConsulRole( [mountName])
-
Removes a specified Consul role definition
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the consul role
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
consul path name the consul secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> generateConsulRoleToken( [mountName])
-
Generate a dynamic Consul token based on the role definition
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the consul role
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
consul path name the consul secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> getConsulRole( [mountName])
-
Retrieve a specified Consul role definition
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the consul role
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
consul path name the consul secret backend is mounted on
Returns:
- Type
- Promise