> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/open-source/use-harness-open-source/pipelines-1/samples/vault.md).

# Vault

This guide covers configuring continuous integration pipelines for projects that have a Vault dependency.

## Example <a href="#example" id="example"></a>

In the below example we demonstrate a pipeline that launches Vault as a background step. The vault server will be available at `vault:8200`, where the hostname matches the background step name.

```yaml
kind: pipeline
spec:
  stages:
  - spec:
    type: ci
      steps:
      - name: vault
        type: background
        container: vault:1.0.0-beta2
        spec:
          envs:
            VAULT_DEV_ROOT_TOKEN_ID: dummy

      - name: test
        type: run
        container: vault:1.0.0-beta2
        spec:
          envs:
            VAULT_ADDR: http://vault:8200
            VAULT_TOKEN: dummy
          script: |-
            sleep 5
            vault kv put secret/my-secret my-value=s3cr3t
            vault kv get secret/my-secret
```
