Repository navigation
Deploy Portal Hub in one click with passkey-only owners - #17
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deploy Hub now takes a server from SSH access to a signed-in Hub that syncs:
/dev/net/tun, Tailscale runs in userspace mode. Portal opens the Tailscale pages in the browser and turns on private HTTPS.Owners sign in with passkeys only. Password sign-up, password sign-in and
bootstrap-ownerare removed.portal-hub owner-setup --mode setup|add|reset, which mints a one-time link: single use, valid for 30 minutes, stored as a hash./setup#token=.... Creating the passkey also signs Portal in through OAuth PKCE.Portal and Hub now share one version (0.6.19). A
v*release also publishes the Hub image, and the separatehub-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
scripts/test-hub-passkeys.mjs)🤖 Generated with Claude Code