返回资讯中心
外部精选
软件工程
#开发者实时流

Sigillo 发布开源密钥管理器,可自托管替代 Doppler

来源标题:Open Source Doppler Alternative

Sigillo 是一个可自托管的开源密钥管理器,用于替代 Doppler 和 Infisical,用 sigillo run 命令将密钥以环境变量注入进程而非写入磁盘。它运行在用户自己的 Cloudflare 账户上,密钥采用 AES-256-GCM 加密,并会自动从进程输出中抹除高熵密钥值,防止密钥泄露到终端历史、CI 日志或 AI agent 上下文中。

Hacker News 最新k__2026/11/25 · 今天30 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Self-hostable secrets manager for humans & agents

Sigillo replaces .env files with a cloud-based secrets manager you can self-host. Prefix your commands with sigillo run and secrets are injected as environment variables, never written to disk.

instead of this

source .env && next dev

do this

sigillo run -- next dev

┌────────────────┐ sigillo run -- next dev │ App Worker │ │ │ (sigillo.dev) │ │ 1. fetch secrets │ │ │──────────────────────────────────────▶│ decrypt │ │ { DB_URL, API_KEY, ... } │ AES-256-GCM │ │◀──────────────────────────────────────│ │ │ └────────────────┘ │ 2. spawn child with env vars │ ▼ ┌──────────────┐ │ next dev │ │ (child) │ └──────┬───────┘ │ │ 3. stdout / stderr ▼ ┌───────────────┐ │ redaction │ high-entropy values replaced with * │ filter │ secrets never reach your terminal └──────┬────────┘ │ ▼ terminal (safe output)

Secrets are automatically redacted from process output so they never leak into agent context windows, CI logs, or terminal history.

Open-source alternative to Doppler and Infisical.

Why not Doppler or Infisical?

Self-hosted: runs on your own Cloudflare account. No centralized point of failure, no vendor lock-in. Your secrets never leave infrastructure you control.

Free: no per-seat pricing, no usage limits. Deploy it once, use it forever.

Open source: MIT licensed. Read the code, audit it, extend it.

Why teams need this

No more .env files: secrets live in the cloud and are easy to share across machines. No more "can you send me the .env?" on Slack.

Single source of truth: stop duplicating secrets across platforms. In CI, you only need the Sigillo token. Use built-in scripts to sync secrets to Cloudflare, Vercel, Docker, and more.

Collaborative secrets: share secrets between team members through organizations with role-based access, instead of brittle .env files or pasting keys in DMs.

Multi-environment management: manage dev, staging, and production secrets in one place. Switch between environments with -c production.

Why agents need this

Don't let agents read your secrets: agents should never see your raw secret values. Instead of giving agents access to .env files, use sigillo run to inject secrets into processes without exposing them.

Automatic output redaction: sigillo run replaces secret values in stdout/stderr with *, so secrets never enter your chat context window. Even if an agent runs printenv, it won't see the real values in the output.

Install skill for AI agents

npx -y skills add remorses/sigillo -g -y

This installs skills for AI coding agents like Claude Code, Cursor, Windsurf, and others.

curl (downloads the native binary to ~/.sigillo/bin):

curl -fsSL https://sigillo.dev/install.sh | bash

npm:

npm i -g sigillo

Run without installing via npx or bunx:

npx sigillo run -- next dev bunx sigillo run -- next dev

Quick start

  1. Add your secrets at sigillo.dev (or your self-hosted instance). Create a project, add environments, and paste in your secrets from the web UI.

  2. Login from the terminal (opens a browser for device flow authentication):

sigillo login

  1. Link your project (picks the default project and environment for this directory):

sigillo setup

This saves the project and environment for the current directory in ~/.sigillo/config.json (not in the repo). Run it in the project root if you have a single project, or in each subfolder of a monorepo. Since the config is local to your machine, you need to run sigillo setup again after cloning the repo on a new machine. Alternatively, skip setup entirely and always pass --project and --env (or -c) flags.

  1. Run your app with secrets injected as environment variables:

sigillo run -- next dev

That's it. No .env files, no copy-pasting keys. Go back to sigillo.dev any time to add, edit, or rotate secrets. The next sigillo run picks them up automatically.

Migrating from Doppler? See the Doppler migration guide.

The Quick Start above assumes you already have a project with secrets. This section walks through creating everything from scratch, either from the CLI or the dashboard.

Sigillo organizes secrets into a simple hierarchy:

Organization (my-company) │ ├── Project (api) │ ├── dev │ │ ├── DATABASE_URL = postgres://localhost/mydb │ │ ├── API_KEY = sk-dev-xxx │ │ └── AUTH_SECRET = random-dev-key │ ├── preview │ │ ├── DATABASE_URL = postgres://preview-host/mydb │ │ └── API_KEY = sk-preview-xxx │ └── prod │ ├── DATABASE_URL = postgres://prod-host/mydb │ └── API_KEY = sk-live-xxx │ └── Project (web) ├── dev │ └── NEXT_PUBLIC_API_URL = http://localhost:3001 └── prod └── NEXT_PUBLIC_API_URL = https://api.example.com

Each organization contains multiple projects. Each project has environments (dev, preview, prod by default). Secrets are scoped to a single environment.

Organizations group projects and team members together. You need one before creating any project.

sigillo orgs create --name my-company

Dashboard: Go to sigillo.dev and click "Create Organization" from the sidebar.

A project holds secrets for one app or service. Creating a project automatically gives you three environments: dev, preview, and prod.

sigillo orgs # find your org ID sigillo projects create --org <ORG_ID> --name my-app

Dashboard: Open your org, click "New Project", and give it a name. The three default environments are created for you.

sigillo setup saves the default project and environment for the current directory. This is a local-only setting stored in ~/.sigillo/config.json, not in the repository. After setup, every sigillo run in that directory (or any subdirectory) resolves the right secrets without extra flags.

Run it in the project root for single-project repos, or in each subfolder of a monorepo:

single project

cd my-app sigillo setup --project <PROJECT_ID> --env dev

monorepo

cd monorepo/api && sigillo setup --project api_xxx --env dev cd monorepo/web && sigillo setup --project web_xxx --env dev

Since the config lives on your machine (not in the repo), you need to re-run sigillo setup after cloning on a new machine. If you prefer not to run setup at all, you can always pass --project and --env explicitly:

sigillo run --project <PROJECT_ID> -c dev -- next dev

Without flags, sigillo setup shows an interactive picker. Use --project and --env for non-interactive/CI workflows.

Add the secrets your app needs. You can set real values now, or leave them empty and fill them in later from the dashboard.

sigillo secrets set DATABASE_URL "postgres://localhost:5432/mydb" -c dev sigillo secrets set API_KEY "" -c dev sigillo secrets set AUTH_SECRET "" -c dev

Repeat for other environments:

sigillo secrets set DATABASE_URL "" -c preview sigillo secrets set DATABASE_URL "" -c prod

For encryption keys or auth secrets, generate a real random value right away:

sigillo secrets set AUTH_SECRET "$(openssl rand -base64 32)" -c dev sigillo secrets set AUTH_SECRET "$(openssl rand -base64 32)" -c preview sigillo secrets set AUTH_SECRET "$(openssl rand -base64 32)" -c prod

Dashboard: Open your project at sigillo.dev/orgs/<ORG_ID>/projects/<PROJECT_ID>/envs/dev to add or edit secrets from the web UI. You can toggle between environments using the tabs.

sigillo secrets -c dev # list secret names (values hidden) sigillo run -c dev -- pnpm dev

Features

Feature Description

Secret injection sigillo run -- <cmd> injects secrets as env vars, no files on disk

Output redaction High-entropy values automatically replaced with * in stdout/stderr

File mount --mount .env writes secrets to the given file path, deletes it after the process exits

Organizations Multi-tenant orgs with admin/member roles and invite links

Projects & environments Organize secrets into projects with dev/preview/production environments

Audit log Append-only event log tracks every secret change with user attribution

API tokens Scoped to project or single environment, SHA-256 hashed, shown once

Device flow RFC 8628 login for CLI and agents, no copy-pasting tokens

AES-256-GCM encryption Every secret encrypted at rest with a random 12-byte IV

Download formats Export as json, env, yaml, docker, dotnet-json, xargs

Web UI Full management dashboard with Doppler-style hidden values

Self-hostable Runs on Cloudflare Workers + D1, deploy your own instance

REST API OpenAPI-documented API for building custom integrations

CLI reference

sigillo login

Authenticate via device flow or bearer token.

sigillo login # interactive device flow sigillo login --token sig_xxx # save existing API token sigillo login --api-url https://my-instance.dev --scope . # custom instance, scoped to current dir

sigillo setup

Save the default project and environment for the current directory. This is stored locally in ~/.sigillo/config.json, not in the repo, so it needs to be done on each machine after cloning. Run it in the project root, or in each subfolder of a monorepo. You can skip setup entirely by always passing --project and --env flags to other commands.

sigillo setup # interactive project/env picker sigillo setup --project proj_abc --env dev # non-interactive

sigillo run

Execute a command with secrets injected as environment variables.

sigillo run -- next dev # inject secrets from the configured env sigillo run -c dev -- next dev # use the dev environment sigillo run -c preview -- next dev # use the preview environment sigillo run -c production -- next build # use the production environment sigillo run -- printenv # verify which vars are injected (values redacted) sigillo run --command 'echo $MY_SECRET' # shell string mode sigillo run --mount .env -- npm start # write to file, clean up after sigillo run --mount config.json --mount-format json -- next dev # mount as JSON sigillo run --disable-redaction -- ./my-script.sh # opt out of output redaction

Use --command when you need shell features like &&, pipes, redirects, or $VARIABLE expansion. Wrap the command in single quotes so your parent shell does not expand secret variables before Sigillo injects them.

Wrong: your shell expands $DATABASE_URL before sigillo starts

sigillo run --command "psql $DATABASE_URL -c 'select 1'"

Right: $DATABASE_URL expands inside sigillo's child shell

sigillo run --command 'psql $DATABASE_URL -c "select 1"'

Put non-secret env vars before sigillo run, especially in package scripts. This keeps regular build flags visible while secrets still come from Sigillo.

{ "scripts": { "deployment": "CLOUDFLARE_ENV=preview sigillo run -c preview --command 'vite build && wrangler deploy --env preview'" } }

Output redaction is enabled by default. Secret values with high entropy (>=3.5 Shannon bits, >=16 chars) are replaced with * in stdout/stderr. This prevents secrets from leaking into agent context windows or CI logs.

When you run sigillo run through a package manager script (pnpm run, bun run, npm run), the package manager adds node_modules/.bin to PATH before Sigillo starts. Sigillo inherits that PATH and passes it to the child process, so local binaries like vite, tsc, wrangler are all available without prefixing with pnpm exec or npx.

in package.json scripts, local bins just work:

sigillo run -- vite build # vite found via node_modules/.bin sigillo run -- wrangler deploy # wrangler found via node_modules/.bin sigillo run -- tsc --noEmit # tsc found via node_modules/.bin

same with --command:

sigillo run --command 'vite build && wrangler deploy'

This also works when running sigillo run directly with pnpm exec or bunx:

pnpm exec sigillo run -- vite dev bunx sigillo run -- next build

If you installed Sigillo globally (via curl or npm i -g), running sigillo run outside a package manager script means node_modules/.bin is not in PATH. In that case, use the full path or prefix with npx/pnpm exec inside the child command, or run Sigillo from a package script instead.

sigillo secrets # list secret names sigillo secrets get DATABASE_URL # get a single value sigillo secrets get DATABASE_URL --force #

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →