Working with HashiCorp Vault
Number of APIs: 1
This collection shows how you can connect to Vault over API to configure your Qodex Environments.
Setup
Within the Collection Variables, you will find 3 variables. These should be configured correctly in order to gain access to Vault.
Variable | Description | Default |
---|---|---|
token | Your token used for access (passed to X-Vault-Token ) | empty |
engine | The storage engine you'd like to access | Qodex |
url | The base URL for your Vault instance | http://127.0.0.1:8200 |
Usage
- Ensure the Qodex Environment you wish to populate with Vault secrets is set as the active Environment.
- Run the
Configure
request. - Observe your Qodex Environment with values populated.
Assumptions
This Collection makes the assumption that your Qodex Environment will be named the same as your Vault Secret. The Pre-Request Script
inside the Configure
request retrieves the Environment's name programmatically. Should you wish to do things differently, delete this script and create a Collection Variabled named secret
with the name of your Vault Secret as the value.
- Configure Environment GET {{url}}/v1/{{engine}}/data/{{secret}}