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.

VariableDescriptionDefault
tokenYour token used for access (passed to X-Vault-Token)empty
engineThe storage engine you'd like to accessQodex
urlThe base URL for your Vault instancehttp://127.0.0.1:8200

Usage

  1. Ensure the Qodex Environment you wish to populate with Vault secrets is set as the active Environment.
  2. Run the Configure request.
  3. 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.

  1. Configure Environment GET {{url}}/v1/{{engine}}/data/{{secret}}