Snapwake

DocsYour account

Accounts and access

Getting into the beta

There are two ways in:

  1. Apply on the website. The form asks for your GitHub login and a few words about what you want to run. When your application is accepted, you get an invite link.
  2. A direct invite from the Snapwake team.

An invite link works once, only for the GitHub account it was made for, and expires after 14 days. Someone else can't use your link, even if you forward it.

Signing in

Snapwake has no passwords and sends no sign-in emails. You sign in with GitHub, and Snapwake asks GitHub only for your public profile (read:user): no email address, no access to repositories. You are recognized by your GitHub account's permanent id, so renaming your GitHub login doesn't lock you out. If you lose access to GitHub, you lose access to Snapwake; recover your GitHub account first.

Two-step sign-in

Under Settings → Two-step sign-in in the console you can add an authenticator app (any TOTP app: 1Password, Google Authenticator, Authy and others) and get one-time backup codes. After that, signing in asks for a code after GitHub. Keep the backup codes somewhere safe; each works once.

After ten wrong codes in a row, code entry is locked for 15 minutes.

Your organization

Your account comes with one organization named after your GitHub login (with -2 added if that name is taken). Apps, secrets, usage and limits belong to the organization. Inviting teammates into an organization is not available yet.

The CLI's token

snapwake login gets a token for the CLI through your browser:

  1. The CLI asks Snapwake for a login code and opens the console's approval page.
  2. You sign in if you aren't already (with your second step, if you set one up).
  3. The page shows the code the CLI printed and the name of the computer asking. Check both, then approve.
  4. The CLI receives the token and saves it to ~/.flare/api.env, readable only by you.

The code waits 10 minutes for your approval. Each login creates a new token; earlier tokens keep working until you revoke them.

Listing and revoking tokens: the console's Settings page lists your CLI tokens by computer name and date. Revoke any you no longer use, and any on a computer you've lost.

A token acts for you in your organization. It stops working when you revoke it, if you lose access to the organization, or if the organization is suspended.

Using the CLI in CI

The CLI reads its address and token from ~/.flare/api.env, or from the environment variables FLARE_API and FLARE_TOKEN, which win. To deploy from CI, run snapwake login once on your machine, copy the two values from ~/.flare/api.env into your CI's secret settings, and revoke that token in the console when you no longer need it. There are no separate tokens for CI yet; the token acts as you.

Suspended organizations

If an organization is suspended, for example after an abuse report, all its tokens and console sessions stop working, its apps go to sleep and answer 403 <app> is suspended, and nothing is built. Write to support@snapwake.dev.

An organization that has used up its monthly usage is not suspended; it is paused. See Usage, plans and limits.