Healthchecks

Workspace Secrets

Passwords and tokens your checks use, stored once and never shown again.

Overview

Lock a header, body or environment variable in a check's editor and its value is kept as a workspace secret. The value is:

  • stored encrypted, and never shown again after you save, only replaced;
  • sent only to the regions that run the check, and filled in when it runs;
  • replaced with *** in check results, error messages, browser-check console output and traces;
  • kept out of exports, so a workspace file is safe to commit.

Secrets are included on every plan, up to 500 per workspace.

Locking a value

Every header value, request body and browser-check environment variable has a lock next to it.

  • Credential-looking fields lock on their own: headers such as Authorization, X-Api-Key or Cookie, and variables named like PASSWORD, TOKEN or SECRET. Their value shows as dots while you type.
  • Any other field locks with a click on the lock: Keep secret. A request body that carries a password gets a reminder.
  • When you save the check, each locked value is stored as a secret named after the check and field (for example CHECKOUT_API_AUTHORIZATION) and the check keeps only a reference to it. In Authorization: Bearer …, only the token is secret.
  • Afterwards the field shows dots and the secret's name. Replace sets a new value; the lock's menu switches the field back to a plain value.

Sharing a secret between checks

The lock's menu lists the workspace's secrets under Use a shared secret: pick one and the field uses it. Replacing a shared secret's value changes it for every check that uses it, which the field tells you before you do.

Settings → Secrets lists every secret, where it may be sent and which checks use it. Add one there to share it from the start, or to set allowed hosts. Admins and Members manage secrets; Viewers see their names and usage.

In configs and uptimyctl

In a check's config, through the API or in a workspace file, a secret is a reference: {{secret.NAME}}. It works in HTTP and GraphQL URLs, headers and bodies (GraphQL variables too), MCP URLs and headers, and browser-check environment variables.

uptimyctl
printf %s "$TOKEN" | uptimyctl secrets set API_TOKEN --allowed-host api.example.com
uptimyctl secrets list
HTTP check config
{
  "steps": [
    {
      "name": "login",
      "request": {
        "method": "POST",
        "uri": "https://api.example.com/login",
        "headers": { "Authorization": "Bearer {{secret.API_TOKEN}}" }
      }
    }
  ]
}

A check can only be saved when every secret it references exists; uptimyctl plan names any that are missing. If a secret is deleted anyway, the check fails with secret NAME is not set before it sends anything.

Allowed hosts

Anyone who can edit a check can use a secret in it, and so could send it to a server of their choosing. Only send to limits a secret to the hosts you list: api.example.com, or *.example.com for any subdomain (not example.com itself).

  • A check that sends the secret anywhere else can't be saved.
  • When the check runs, every request is checked again after its values are filled in, redirects included: a request that would carry the secret elsewhere fails instead of being sent.
  • A secret limited to hosts can't be used in browser checks, because the script decides where values go.

Changing and deleting

A new value or new hosts take effect for every check that uses the secret within seconds. A secret can't be deleted while a check uses it; one locked in a check's editor is deleted for you when that check stops using it.

Screenshots in browser-check traces

Secrets are masked in a browser check's console output, step names, errors and in the text of its traces (actions, page snapshots, network data). Screenshots can't be masked: text typed into a field shows in them unless the field is a password input. Fill passwords into type="password" fields, and don't log secrets.

Values typed into a check

An unlocked value isn't a secret: it's stored with the check as typed and shows in exports. Lock anything you wouldn't paste in a chat.