Skip to content
cloudhost
Secrets

Every environment's secrets, in one place.

Set your API keys, database passwords and service tokens once for production, preview and development. Functions and apps read them with no network call, servers and CI with a token, and every read and change is recorded. Values are encrypted at rest with a key for each team.

What you get

  • With every project

    Every project has its own secrets from the moment it is created; there is nothing to make or name. Production, preview and development each have their own values, and a preview branch can have its own.

  • Versions and rollback

    Every change is a new version, with its time, author and note. Go back to an earlier one with one command.

  • Sealed variables

    The function sees a stand-in, never the value. The platform fills the value into the URL and headers of requests to the variable's allowed hosts only, so neither the code nor anyone running code in it can send it anywhere else.

  • Tokens scoped to a project

    Give a server, CI or script a token that sees one project only: read-only or read-write, all environments or some, with an expiry date.

  • An audit trail

    Which person or token read or changed which secret, in which environment, from which address. A value never appears in it.

  • A key no server holds whole

    Each team's key is split over several servers in separate data centres and is never whole anywhere. Opening a value takes answers from at least two of them, so one stolen server reveals nothing.

  • Short-lived credentials

    Ask for a SQL database or cache password that expires on its own: made fresh each time and revoked when its time is up, with nothing left to rotate.

  • Rotation reminders

    Say how many days a project's or a secret's values should live. When one is due, the team hears in the notification centre and by email; set a new value or generate a random one.

  • env.SECRETS in functions and apps

    Every function and app reads its own project's secrets with env.SECRETS.get("NAME"), or each secret as env.NAME, with no binding to add; another project's through a connection. No network call and no token in your code; changes arrive without a redeploy.

  • run -- and pull in the CLI

    cloudhost run -- <command> starts any program with an environment's secrets as its environment variables and writes nothing to disk. secrets pull puts the non-sensitive values in .env.local.

  • Import from a file

    cloudhost secrets import brings in a whole .env file. Values are read from the file, not the command line, so they stay out of your shell history.

  • A REST API

    Any program, anywhere, reads its secrets with an HTTPS request and a project token. The same API the dashboard and the CLI use.

  • An SDK

    new Secrets({ token }) for TypeScript, in Node, browsers and functions, and the same SDK for Go, with a short in-memory cache so rotations arrive without a restart.

Five ways into a project's secrets

Set them from the CLI, run with run --, seal a variable, read env.SECRETS in a function, and REST from anywhere else.

cloudhost secrets settings --project shop --rotate-days 90
printf %s "$STRIPE_KEY" | cloudhost secrets set STRIPE_KEY --project shop --env production
cloudhost secrets list --project shop

Per secret and per read

You pay for the secrets kept each month and for reads, taken from your wallet with the rest of your usage. Reading env.SECRETS in a function is not counted. It comes out of the month's credit first.

Questions

Store your first secret

One project, three environments, one command.

Sign-up is by invite for now. If you have a code, create your account.

Sign up withEmail codeSMS code