Search forkrail

Search documentation, comparisons, and CLI commands.

Team, roles and sign-in

Add people by GitHub username, give each a role, and let them deploy from their own terminal without AWS credentials.

Add people

People sign in to the dashboard with GitHub, through a GitHub App that belongs to your install alone. There are no invitations or passwords: an owner adds a GitHub username under team Settings → Members, and that person opens the dashboard and chooses Continue with GitHub.

  • The page shows whose account a username is before you add it.
  • People are remembered by GitHub’s numeric id, so a renamed account is the same person and a freed username gives nobody access.
  • A removed member is signed out everywhere within half a minute, terminals included.

Roles

RoleCan
OwnerEverything a member can, plus add or remove members, change roles, rename the team, manage budgets and email, and see Infrastructure.
MemberDeploy, promote, roll back, redeploy, cancel, change settings and env vars, connect repositories and make projects.
DeveloperDeploy previews (from a terminal or by pushing), redeploy and cancel them, and change previews’ env vars. Nothing that touches production.
ViewerSee everything (deployments, logs, usage, env var names). Change nothing.

A developer reaches production one way: a commit merged to the production branch. Who may merge is up to GitHub’s branch protection.

Install owners

The install’s owners are kept outside the dashboard, and only someone with the AWS account can change them. They’re always owners, whatever the members list says, so this is also the way back in if you lock yourself out.

forkrail owners ls
forkrail owners add ada-lovelace # can sign in as an owner within a minute
forkrail owners rm ada-lovelace # the last one can't be removed

Deploy without AWS credentials

Team members need no AWS account of their own, only the CLI and the dashboard’s address:

  1. 1
    Sign the terminal in

    The CLI prints an address and a short code and opens the browser. Check the code matches and choose Yes, sign it in. On a machine without a browser, add --no-browser and open the address anywhere.

    forkrail login https://dashboard.example.com
  2. 2
    Work as yourself

    From then on the terminal acts as you, with your role.

    forkrail deploy
    forkrail deploy --prod
    forkrail whoami
  • Your source goes straight to S3, to an address signed for that one upload.
  • The login lasts 90 days after its last use. Account in the dashboard’s user menu lists your terminals and signs any of them out; so does forkrail logout.
  • A browser stays signed in for 30 days after its last use.
  • Some commands still need the install’s AWS credentials: stats, usage, limits, env migrate, and building on your own machine (--local, --prebuilt).

In CI

For a machine nobody sits at, set FORKRAIL_TOKEN (the token from a login) and FORKRAIL_API (the dashboard’s address) as environment variables instead of signing in. For most projects, deploying from GitHub needs no token at all.

.github/workflows/deploy.yml
- run: curl -fsSL https://forkrail.com/install | sh
- run: forkrail deploy --prod
env:
FORKRAIL_TOKEN: ${{ secrets.FORKRAIL_TOKEN }}
FORKRAIL_API: https://dashboard.example.com

Where it’s kept

People, members, sessions and terminal logins are in a DynamoDB table in your account that only the dashboard and the administrators you name can read. Sessions and tokens are stored only as hashes, so a copy of the table signs nobody in. Every change to the team is kept in an audit trail, and the table can be restored to any second of the last 35 days.

New to forkrail? Install it in your AWS account and deploy your first app in about 20 minutes.
Quickstart