Secrets and rotation

Keep your apps’ secrets in one audited place and rotate them without downtime

API keys and signing keys end up in config files, chat threads and three copies of the same value. When one has to change, nobody is sure where it lives or who read it last.

The usual cost

What you would otherwise build

  • A place for secrets that is not a config file in a repository
  • Rotating a key without a window where half your fleet has the old one
  • Sharing one secret between two apps without the copies drifting apart
  • Knowing who or what read a secret, and when

What TenancyEngine covers

Versioned and encrypted

Each secret is stored in versions. Every version is encrypted with its own data key, and that key is wrapped by a master key held outside the database.

Per environment

Secrets belong to an application environment, so Development, Staging and Production can hold different values under the same key.

Rotation with a grace window

A rotation creates a pending version, promotes it, and keeps the previous version readable for a grace period (24 hours by default) before destroying it. You can also set an automatic rotation policy in days for secrets TenancyEngine generates.

Shared by grant, not by copy

Give a second application access to a secret with a grant. It is one record, so the two apps can never drift apart. Both must be in the same organization.

An audit trail without values

Every read and write is recorded with who, which version and when. The record never contains the value, and the console routes never return one.

How it goes

From empty project to first customer

  1. Add a secret to an application environment in the console. The value is write-only.
  2. Create an organization API key with the secrets.read scope and give it only to the service that needs the value.
  3. Read the current value from the runtime API at startup, or whenever you refresh configuration.
  4. Rotate with a grace window, confirm the new value works, and let the old version expire.

Which plan fits

The secret store is available through the console and the runtime API. Check the pricing page for the current plan limits, since separate Development and Staging environments start on Growth and Starter runs in Production only.

See plans and limits

Honest limits

What to know before you commit

  • Reading secret values needs an organization API key with the secrets.read scope. No other scope or composite scope includes it, on purpose.
  • Secrets you paste in are rotated only when a person pastes the next value. Automatic rotation applies to values TenancyEngine generates.
  • TenancyEngine holds the secret and your app reads it. It does not push values into your hosting platform for you.

Try it on the free plan

One app and five customers, no credit card required.

Request access Other use cases