Sign in through a trusted proxy
Sign in through a trusted proxy
Section titled “Sign in through a trusted proxy”When Stapler Squad is reached through a reverse proxy and local sign-in is required, anonymous visitors land on the login page instead of the dashboard. You sign in with a one-time link rather than a passkey.
Sign in with the command
Section titled “Sign in with the command”- Open the UI at the proxy address. The login page shows a sign-in command.
- Type your workspace name in Workspace name. The page remembers it.
- Choose Copy command and run it in a terminal on your computer. The command uses the
workCLI (work ssh <workspace> -- ...), so your computer needsworkand access to the workspace, and the server must listen onlocalhost:8543there. It prints a link ending in/auth/local-login?code=.... - Open the link in the same browser that shows the login page. The link works once and expires after 60 seconds; if it fails, run the command again.
On a phone, run the command on a computer, copy the link to the phone, paste it into Paste the sign-in link and tap Open link. Then check again.
Sign in with a passkey
Section titled “Sign in with a passkey”If the workspace owner turned on passkeys for this address and a passkey is saved, the login page also shows Sign in with passkey. The sign-in steps stay below it: if the passkey does not work, the page says “Passkey did not work. Use the command below, then add a passkey for this address in Account.”
To add one, sign in with the command, open Account and choose Add a passkey for your address. The passkey works only at that address, lasts until you remove it (removing your last passkey for that address ends your sessions there only and sends you to the sign-in page, where the command still works), and is listed on Account with its address (the list shows only passkeys for the address you are on). Your device asks for a fingerprint, face or PIN each time. Passkey sessions last 12 hours, like command sessions. Passkeys need HTTPS and a passkey-capable browser; otherwise the page shows “Passkeys need HTTPS and a passkey-capable browser” in place of the passkey button.
Owners: the feature flag is passkey_proxy_enabled (off by default). See the how-to “Sign in to the UI through a trusted proxy” for how to enable it for one workspace and how to roll it back.
Account chip and session row
Section titled “Account chip and session row”After you sign in, the account chip in the header (900px and wider) and in the navigation drawer footer (above 768px) shows how you signed in and roughly how much time is left. Open it for Account and Sign out. On a phone, the same session row and Sign out are in the More sheet. Sign out ends only your Stapler Squad session.
Expiry banner
Section titled “Expiry banner”A sign-in session lasts 12 hours. A banner appears 10 minutes before it ends and updates at 2 minutes. It carries the same sign-in command, so you can renew without leaving the page.
Session-expired overlay
Section titled “Session-expired overlay”When the session ends, a dialog appears over the page with the sign-in command. You can collapse it to a bar to read what is on screen; run the command and open the link to continue.