SNOWSTEAD DOCS Home Dashboard

Tokens

A token lets a machine read or write the caches you pick, until it expires or you revoke it.

What a token can do

  • Reads downloads from the caches it names. A private cache needs one for every read; a public cache needs none.
  • Reads and writes also uploads builds. Machines that read use what it uploads.

A machine that reads downloads what the cache already holds and uploads nothing. A machine that reads and writes also uploads what it builds, so other machines skip that work and use what it uploaded. Writing always needs a token that can write. You choose which machines get one.

The level covers every product you leave ticked: Nix, Go, sccache, and Bazel. Untick the ones a token shouldn't reach. Each token only reaches the caches you choose. Public caches need no token to read, so a token that only reads is for private ones.

Create one

In the dashboard, open Tokens and choose Create token. Name it after what will use it, like alice-laptop, github-actions, or build-server-2, so you know what stops working if you revoke it. Choose what it does: reads, or reads and writes. Neither is picked for you. Pick how long it lasts: 30 days, 90 days, a year, or Never. A token with no expiry works until you revoke it.

The token is shown once, right after you create it. We don't keep a copy, so copy it into your shell profile, your CI secrets, or the machine's netrc file before you close the dialog. If you lose it, revoke it and create another.

Revoke one

Choose Revoke next to the token. Anything using it stops working within seconds. Tokens that are about to expire are marked a week ahead, so you can replace them before builds start failing.