Skip to main content

HashiCorp Vault

Fetch secrets from HashiCorp Vault to use as variables in your API requests.

Prerequisites​

  • HashiCorp Vault server (self-hosted or HCP Vault)
  • Vault token with read access
  • Secrets stored in KV v2 secrets engine

Configuration​

  1. Go to Settings > Secret Providers
  2. Click Add Provider
  3. Select Vault
  4. Fill in the configuration:
FieldDescription
NameDisplay name for this provider
AddressVault server URL (e.g., https://vault.example.com:8200)
TokenVault authentication token
Mount PathKV secrets engine mount path (default: secret)
NamespaceVault namespace (Enterprise only, optional)
Secret PathPath to the secret within the mount
  1. Click Test Connection to verify credentials
  2. Click Save

Secret Format​

Vault KV v2 secrets are stored as key-value pairs:

{
"API_KEY": "sk-xxx",
"DATABASE_URL": "postgres://user:pass@host:5432/db",
"JWT_SECRET": "your-jwt-secret"
}

Each key becomes a variable you can use as {{API_KEY}}, {{DATABASE_URL}}, etc.

Secret Path​

For a secret at secret/data/myapp/config:

  • Mount Path: secret
  • Secret Path: myapp/config

Vault Policy​

Minimum required policy:

path "secret/data/myapp/*" {
capabilities = ["read"]
}

For token lookup (connection test):

path "auth/token/lookup-self" {
capabilities = ["read"]
}

Authentication Methods​

Currently, Istek supports Token authentication. Generate a token with:

vault token create -policy=myapp-read -ttl=24h

Vault Enterprise​

For Vault Enterprise with namespaces, specify the namespace in the configuration. The namespace header will be included in all requests.

Usage​

Once configured, click Fetch Secrets to load the secrets. They will be available as variables in your requests:

GET {{API_URL}}/users
Authorization: Bearer {{API_KEY}}