---
title: Deploy HashiCorp Vault with AI on Blossom
url: "/deploy/vault/"
canonical_url: https://blossom88.com/deploy/vault/
markdown_url: https://blossom88.com/deploy/vault.md
summary: Give one Vault client access to a test secret and check the same policy after
  replacing the Container.
categories:
- deployment
- security
stack:
- Go
- Raft
---

# Deploy HashiCorp Vault with AI on Blossom

[HashiCorp Vault](https://developer.hashicorp.com/vault) stores
secrets and controls which clients can read them. This recipe
uses a single Vault node to test a policy, then verifies it
still works after a Container replacement.

## Ask Your Agent

> **Ask your AI agent:** Deploy Vault on Blossom and help me give a test client read-only access to one secret.
>
> Follow this guide: https://blossom88.com/deploy/vault/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

- **Vault Community license** (Required): This recipe uses Vault Community. Review the [license](https://github.com/hashicorp/vault/blob/v2.2.2/LICENSE) for hosted or embedded offerings.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Vault | Store secrets, policies, and tokens in integrated Raft storage | Single Persistent Service |

## Deploy a Protected Vault

Use the official Vault Community image with integrated Raft
storage on a [Persistent Service Volume](/docs/apps/persistent-services/).
Keep the HTTPS endpoint behind Blossom Account access.
Initialize Vault and set up an unseal process for your team.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Run the image's `server` command and mount the Volume at `/vault/file`.
Use the vendor's [Raft and memory-lock settings](https://developer.hashicorp.com/vault/docs/configuration).
Use a TCP startup check on port 8200 so the Container can start before
Vault is initialized or unsealed.

    blossom environment:deploy --id environment-100 --follow

</details>

## Read One Test Secret

Create two synthetic secrets and give a reader access to only
one path. Check that the reader gets the allowed secret and Vault
denies the other request. Retire the bootstrap root token after setup.

> **Ask your AI agent:** Help me give a test reader access to one secret and verify that it can't read the other.

> Follow this guide: https://blossom88.com/deploy/vault/



![Verify the reader can open only one test secret.](/deploy/assets/images/vault/vault-reader-policy.webp)

## Unseal After Replacement

Replace the Vault Container on the same Volume. Unseal the
existing Vault and confirm that the same reader can access
the allowed secret and still gets denied at the other path.

> **Ask your AI agent:** Replace the Vault Container and help me verify the same reader policy after unsealing.

> Follow this guide: https://blossom88.com/deploy/vault/



![Unseal the existing Vault after replacing its Container.](/deploy/assets/images/vault/vault-sealed-after-replacement.webp)

## What You Get

A protected Vault with a tested reader policy and a working
unseal routine for Container updates.

## What You Get

- A Vault endpoint protected by Blossom Account access
- A reader policy limited to one test secret
- A working reader after replacing and unsealing Vault

Tested on Blossom: The same secret and reader policy survived replacing and unsealing Vault.
