Skip to content

Deploy Portal Hub in one click with passkey-only owners - #17

Merged
DigitalPals merged 1 commit into
mainfrom
feat/hub-passkey-deploy
Nov 6, 2026
Merged

DigitalPals merged 1 commit into
mainfrom
feat/hub-passkey-deploy

Conversation

@DigitalPals

Copy link
Copy Markdown
Owner

Deploy Hub now takes a server from SSH access to a signed-in Hub that syncs:

  • Portal installs Python 3 and Docker when they are missing. Docker's repositories are verified with embedded, pinned signing keys.
  • On servers without /dev/net/tun, Tailscale runs in userspace mode. Portal opens the Tailscale pages in the browser and turns on private HTTPS.
  • Portal asks for the sudo password at most once per run.

Owners sign in with passkeys only. Password sign-up, password sign-in and bootstrap-owner are removed.

  • Only the server administrator can create a setup link. They run portal-hub owner-setup --mode setup|add|reset, which mints a one-time link: single use, valid for 30 minutes, stored as a hash.
  • Portal mints that link over SSH and opens /setup#token=.... Creating the passkey also signs Portal in through OAuth PKCE.
  • SSH access is the recovery path. "Reset owner passkey" replaces every passkey and signs out every device.
  • Owners of existing password-based Hubs enroll a passkey, and their stored password is deleted.
  • Private HTTPS is now set up before the owner is created, because passkeys are bound to the Hub's HTTPS name.

Portal and Hub now share one version (0.6.19). A v* release also publishes the Hub image, and the separate hub-v* workflow is removed. A unit test and the release workflow fail on version drift.

The docs no longer describe the standalone portal-hub repository as current; it is retired.

Testing

  • Desktop, Hub and helper unit tests, including real WebAuthn ceremonies with a software authenticator
  • Chromium with a virtual authenticator (scripts/test-hub-passkeys.mjs)
  • Hub container test
  • Real SSH/sudo transport test

🤖 Generated with Claude Code

Deploy Hub now takes a server from SSH access to a signed-in, syncing Hub.
Portal installs Python 3 and Docker when missing (Docker's repositories are
verified with embedded, pinned signing keys), runs Tailscale in userspace mode
on servers without /dev/net/tun, opens the Tailscale pages in the browser and
enables private HTTPS. It asks for the sudo password at most once per run.

The Hub owner signs in with passkeys only. Password sign-up, sign-in and
bootstrap-owner are removed. `portal-hub owner-setup --mode setup|add|reset`
mints a one-time link (single use, 30 minutes, stored as a hash) that only the
server administrator can create. Portal mints it over SSH and opens
/setup#token=...; creating the passkey also signs Portal in through OAuth PKCE.
SSH access is the recovery path: Reset owner passkey replaces every passkey and
signs out every device. Owners of password-based Hubs enroll a passkey and lose
their stored password. Private HTTPS now comes before owner creation, because
passkeys are bound to the Hub's HTTPS name.

Portal and Hub share one version (0.6.19). A v* release also publishes the
Hub image, and the separate hub-v* workflow is removed. A unit test and the
release workflow reject version drift. The standalone portal-hub repository
is retired, and the docs no longer refer to it as current.

Tested with desktop, Hub and helper unit tests (including real WebAuthn
ceremonies with a software authenticator), Chromium with a virtual
authenticator (scripts/test-hub-passkeys.mjs), the Hub container test, and
the real SSH/sudo transport test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DigitalPals
DigitalPals merged commit e9032f1 into main Nov 6, 2026
9 checks passed
@DigitalPals
DigitalPals deleted the feat/hub-passkey-deploy branch November 6, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants