> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding HashiCorp Vault Secret Manager

export const PremiumBadge = ({noLink}) => {
  const badge = <span style={{
    display: 'inline-flex',
    alignItems: 'center',
    gap: '0.25rem',
    padding: '0.25rem 0.5rem',
    fontSize: '0.75rem',
    fontWeight: '600',
    borderRadius: '0.5rem',
    backgroundColor: '#FCD34D',
    color: '#92400E',
    marginLeft: '0.5rem',
    lineHeight: '1.2'
  }}>
      PREMIUM
    </span>;
  if (noLink) {
    return badge;
  }
  return <a href="https://www.usebruno.com/pricing" target="_blank" rel="noopener noreferrer" style={{
    textDecoration: 'none'
  }}>
      {badge}
    </a>;
};

You have the option to integrate [HashiCorp Cloud Vault <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/hcp), [Vault Enterprise Server <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/vault/docs/enterprise), or a [Local Vault server <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/vault/docs/install) as your secret provider.

## Setting Up Vault Server

To configure a **Vault server** secret provider, you can opt for either **Token** or **AppRole** authentication.

1. Go to the **Preferences** settings and navigate to the **Secrets Manager** section.
2. Click on the `+ Add Secret Provider` button.

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/1-secrets-home-window.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=24e2de46e436b8af7ea89d26d2878a6f" alt="vault-secrets" width="2468" height="1310" data-path="images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/1-secrets-home-window.webp" />

3. Choose **Vault Server** as the provider type and select your preferred authentication method.

<img src="https://mintcdn.com/bruno-a6972042/qa2L4fEUippGcR7C/images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/2-local-vault-secrets.webp?fit=max&auto=format&n=qa2L4fEUippGcR7C&q=85&s=ee8c540a20ac78a93e8544d39459d633" alt="vault-secrets-window" width="2610" height="1364" data-path="images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/2-local-vault-secrets.webp" />

4. Enter `http://localhost:8200` if using a local server, or the URL of the hosted server (e.g., `https://vault.example.com`).

5. Provide the necessary [Token <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/vault/docs/commands/token) or [AppRole <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/vault/tutorials/auth-methods/approle) credentials.

6. Click on **Add** to save the secret provider.

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/3-added-vault.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=7742a61a31f0f1266c59f4441d1d212e" alt="vault-added-screen" width="2468" height="1310" data-path="images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/3-added-vault.webp" />

## Setting up Vault Cloud

To set up a **Vault Cloud** secret provider, follow these steps:

1. Go to the  **Preferences** settings and navigate to the **Secrets Manager** section.

2. Click on the `+ Add Secret Provider` button.

3. Select **Vault Cloud** as the provider type.

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/4-vault-cloud-setup.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=4af2d3c89d477794983c56e4484ce1aa" alt="vault-secrets" width="2468" height="1502" data-path="images/screenshots/secret-variables/hashicorp-vault/adding-a-secret-provider/4-vault-cloud-setup.webp" />

4. Maintain the default settings for `Token Endpoint` and `Secrets Endpoint`, or modify them if necessary.

5. Provide the required [Client Credentials <strong><sup>↗</sup></strong>](https://developer.hashicorp.com/hcp/docs/hcp/admin/iam/service-principals).

6. Add one or more Projects (Apps) to the secret provider.

7. Click on **Add** to save the secret provider.
