Secrets broker for CI and developers

The CLI asks for one project’s secrets; a person approves in a 120-second window and a one-time claim releases them. Nothing lands in a config file.

Every secret request in one console. A person answers it.

The list keeps the project, the client, the reason and the decision. Open a request to see the machine, its fingerprint and the names of the keys it would reveal.

How a secret request gets approval. Scope, a person, a window, a claim.

Scopes each secret request to one project

The login names the projects this machine may ask for. One request covers one project and one environment.

Projects this machine may request
3 of 4
  • billing-api · production
  • web · preview
  • worker · staging
  • docs · development

Waits for approval from a person

The card shows the machine, its fingerprint and the key names. It arrives in the console or in Feishu, and expires after 120 seconds.

  • JJjokcy approved billing-api6 keys · claim issued to runner-07Result
  • Feishu card answeredThe buttons swap for the result card
  • WEweb request expiredNo one answered in 120 seconds

Sets a no-approval window

At approval time you can skip the card for an hour, a day or a week. Every claim is still written to the audit log.

After this approval
1 of 3 on
  • Skip the card for 1 hourbilling-api · production only
  • Skip the card for 1 dayOne day of deploys
  • Skip the card for 7 daysA week, still audited

Injects secrets at runtime

The package carries the varlock plugin: varlock run asks for the project, then injects the keys for that one run.

billing-api zsh main
~/billing-api$varlock run -- bun dev
6 of 6 keys
DATABASE_URLpostgres12ms
STRIPE_SECRET_KEYstore9ms
RESEND_API_KEYinfisical14ms
S3_ACCESS_KEYstore8ms
Claimused once(1)
Keys6 injected(6)
Approvedin 14s
~/billing-api$

A person approves each secret

The claim is good once. Every request, every decision and every claim is written to the audit log.

The secret store keeps ciphertext. Infisical works the same way.

Every value in the built-in store is encrypted with AES-GCM. Connect Infisical for a project that already lives there: both sources coexist, and the client knows only the connection slug, the project and the environment.

AES-GCM
at rest in the built-in store
0600
on the CLI config in ~/.config/ecluse
401
when the machine fingerprint changes
ENVenv.schema TSvarlock.ts ecluse()
# @plugin(@ecluse/cli)
# ---
DATABASE_URL=ecluse(
  provider="infisical",
  project="billing-api",
  env="production",
  key="DATABASE_URL")
The value never lands in a file.

Install the CLI and request a secret

One package, @ecluse/cli: the ecluse command and the varlock plugin. The broker runs beside it.

Commands
login, whoami, logout
CI
ECLUSE_TOKEN for unattended runs
API reference
/api-reference on the broker
zsh · billing-api
$ bun add -D @ecluse/cli
$ bunx ecluse login --project billing-api
Open /activate and type K4H9-Q2MD
runner-07 · linux x64 · fingerprint 9f3c e2a1
Confirm the machine in the browser: billing-api, production
✔ logged in · 1 project, 1 environment
 
$ bunx varlock run -- bun run dev
Waiting for approval… approved in 14s
✔ one claim, one use
  DATABASE_URL
  STRIPE_SECRET_KEY
  RESEND_API_KEY
  S3_ACCESS_KEY
  SESSION_SECRET
 
$ bunx ecluse whoami
runner-07 · build · billing-api · 1 project
$ bunx varlock run -- bun run dev
Waiting for approval… approved in 14s
✔ one claim, one use
$ 
 
$ 

Questions

What people ask before the first request.

Confirm this machine K4H9-Q2MD
Host
runner-07
User
build
Platform
linux x64

Projects this machine may request

  • billing-api · production
  • web · preview
  • docs · development
Confirm and choose projects

Does a secret request work with varlock?

Yes. @ecluse/cli ships the varlock plugin, so varlock run asks for the project’s secrets and injects them for that run.

What happens when no one approves a secret request?

The request expires after 120 seconds and the CLI gets nothing. It can ask again, and a person still has to answer.

How does a CI job get secrets without a person?

The job uses ECLUSE_TOKEN. Without a token there is no one to approve the request, so nothing is handed out.

What happens when a secret request runs on a new machine?

The CLI gets a 401 and you log in again. The login state sits in ~/.config/ecluse, readable by you alone (0600).

What else does the CLI do?

Three commands: ecluse login pairs the machine, whoami lists its projects and logout revokes it.

Where does the broker run?

As a Docker image with SQLite, on Cloudflare Workers with D1, or as a local Bun process.

Can one secret request cover two projects?

No. A request names one project and one environment; anything else is a new request and a new approval.