You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
main.tf | 1 year ago | |
run.sh | 1 year ago |
README.md
display_name | description | icon | maintainer_github | verified | tags | ||||
---|---|---|---|---|---|---|---|---|---|
Hashicorp Vault Integration (Token) | Authenticates with Vault using Token | ../.icons/vault.svg | coder | true |
|
Hashicorp Vault Integration (Token)
This module lets you authenticate with Hashicorp Vault in your Coder workspaces using a Vault token.
module "vault" {
source = "registry.coder.com/modules/vault-token/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_token = "s.1234567890"
vault_addr = "https://vault.example.com"
}
Then you can use the Vault CLI in your workspaces to fetch secrets from Vault:
vault kv get -mount=secret my-secret
or using the Vault API:
curl -H "X-Vault-Token: ${VAULT_TOKEN}" -X GET "${VAULT_ADDR}/v1/secret/data/my-secret"
Configuration
To configure the Vault module, you must create a Vault token with the the required permissions and configure the module with the token and Vault address.
Examples
Configure Vault integration and install a specific version of the Vault CLI
module "vault" {
source = "registry.coder.com/modules/vault-token/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
vault_cli_version = "1.15.0"
}