---
title: Deploy Infisical with AI on Blossom
url: "/deploy/infisical/"
canonical_url: https://blossom88.com/deploy/infisical/
markdown_url: https://blossom88.com/deploy/infisical.md
summary: Run Infisical on Blossom with managed PostgreSQL and Redis, and give a workload
  access to its own secrets.
categories:
- deployment
- secrets
- developer-tools
stack:
- TypeScript
- React
- PostgreSQL
- Redis
---

# Deploy Infisical with AI on Blossom

[Infisical](https://infisical.com/) stores application secrets and gives
people and workloads access to the projects they need.

![A demo secrets project in Infisical with the value masked.](/deploy/assets/images/infisical/project.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Infisical on Blossom and help me read a test secret with a machine identity.
>
> Follow this guide: https://blossom88.com/deploy/infisical/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Read a Test Secret

Add a sample value to a project and give a machine identity Viewer access.
Use its short-lived token to read the value through the API.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Use the official [standalone image](https://infisical.com/docs/self-hosting/deployment-options/docker-compose)
on port 8080. Link [managed PostgreSQL and Redis](https://docs.blossom88.com/docs/data/) as
`DATABASE_URL` and `REDIS_URL`. At startup, export `DB_CONNECTION_URI` from
`DATABASE_URL` and `SITE_URL` from `BLOSSOM_SERVICE_URL`, then run the image's
standalone entrypoint. Set stable `ENCRYPTION_KEY` and `AUTH_SECRET` values
and an `INITIAL_SETUP_ACTIVATION_TOKEN`. Use `/api/status` for readiness.
Keep [Blossom Account access](https://docs.blossom88.com/docs/apps/environment-access/)
enabled while creating the first administrator and completing invite-only setup.

Use the Community secrets management workflow and
[Universal Auth](https://infisical.com/docs/documentation/platform/identities/universal-auth)
for the test identity. A client using the gated HTTPS URL sends a Blossom
Environment access token in `X-Blossom-Access` and the Infisical access token
in `Authorization` when it reads the secret.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml
    blossom cache_instance:create --data redis.yml
    blossom environment_link:create --data database-link.yml
    blossom environment_link:create --data cache-link.yml
    blossom service:create --data web.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow
    blossom environment:access:token:create --environment environment-100 --name infisical-client --expires 30

</details>

## What You Get

- A private secrets workspace on your own deployment
- A machine identity scoped to the project it needs
