Throwaway test server for a second account (D328) #326
Open
opened 2026-11-03 12:46:43 +00:00 by kayg
·
6 comments
No Branch/Tag specified
main
mesh-compat-382
j444b-d381-key-wins-flood
j470b-server-mesh-rejoin
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#326
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner decision D328: a second, limited account for testing runs on a throwaway test server (for example
test.ssh.kayg.org), not through invites ("test server because invites would then belong to EE").Job J138 is read-only discovery and a plan. Findings and the plan are in the first comment. The repo is public: no secrets here.
J138 findings and plan (read-only discovery; nothing was changed on any host)
Base: origin/dev, checked 2026-11-03. Owner decision D328: "test server because invites would then belong to EE".
Findings
1. How public traffic reaches production
ssh.kayg.orgresolves to the public A record 49.205.172.130. It lands on Traefik 3.7.x on thefridge-ingressVM (10.69.0.99/10.69.69.99, 2 CPU, 4 GiB, idle). Traefik runs astraefik.serviceand is configured by/etc/traefik/traefik.yml./etc/traefik/dynamic/(watch: true). A new*.ymlthere is picked up without a restart./etc/traefik/dynamic/infraternal-ssh.yml. It is routerHost(ssh.kayg.org)onwebsecure, withtls.certResolver: cf. Its service is aloadBalancertohttp://10.69.0.89:7011withpassHostHeader: true. Port 80 redirects to 443.cf(Let's Encrypt, DNS-01 through the Cloudflare provider). Storage is/var/lib/traefik/acme.json. Each hostname gets its own certificate on first request. There is no wildcard certificate./etc/traefik/cloudflare-token, copied to/var/lib/traefik/cloudflare-token-runtimeby a unit drop-in. These are paths only. I did not read or use the token.--behind-proxy --trusted-proxy 10.69.0.99. The host's nftables (/etc/nftables/infraternal-host.nft, loaded byinfraternal-firewall.service) uses a default-drop input policy. It allows tcp 7011 only from 10.69.0.99 (on eth0) and 10.69.69.99 (on wt0). A second port needs its own nft rule.2. DNS
kayg.orgis on Cloudflare (NSjoel.ns.cloudflare.comandstella.ns.cloudflare.com).test.ssh.kayg.orgdoes not exist yet. The zone's*.kayg.orgwildcard does not cover it, becausessh.kayg.orgalready exists as a name and a wildcard does not reach below it. So the record must be created explicitly./var/lib/traefik/dns-backups/, which shows a past DNS edit (the Honcho cutover). Unverified: whether this token has Zone DNS Edit rights (A records) or only TXT/ACME rights. Checking means using the token (one read-only zone list), so I did not do it.3. Can the server run a second instance? Yes, with no code change. Every location is a flag:
--data <dir>(state, sqlite, CA material),--listen <addr:port>,--public-origin <https url>,--web-root,--behind-proxy,--trusted-proxy.--remote-listenand--remote-ca-dirare optional (production uses them for enrolled hosts).--public-origin(runtime.rs:573). The session and ceremony cookies are__Host-prefixed (host-only). A test server ontest.ssh.kayg.orgtherefore shares no passkeys or sessions with production./run/infraternalwhen running as root (crates/infraternal-agent/src/sessions.rs:184). A second root instance would share that directory with production. Run the test instance as a dedicated non-root user instead. Then the path becomes$XDG_RUNTIME_DIR/infraternal. SetXDG_RUNTIME_DIRto aRuntimeDirectory=of the test unit.docs/operations/deploy.md, a non-root server restarts with the CA locked. A passkey administrator must unlock it after each restart. That is fine for a throwaway server.4. Headroom on the production host (
root@10.69.69.89)/var/lib/infraternalis 5.1 MB. A release directory in/opt/infraternal/<rev>is 51 MB./opt/infraternal/ff93201e5and its binary are mode 555 root, world-readable, so a non-root user can run them.Plan (shortest safe path)
Legend: [me] = I can do it. [owner] = the owner must do it or give the go (production host, public DNS, or a credential).
ff93201e5binary as a non-root user with--listen 127.0.0.1:<port>, a throwaway--data, a--public-originandXDG_RUNTIME_DIR=<0700 dir>. Confirm that/healthzanswers and that the embedded agent starts under$XDG_RUNTIME_DIR/infraternal. Needs a build-slot. Nothing touches production.test.ssh.kayg.org A 49.205.172.130, DNS-only (grey cloud), TTL auto. The address is the same asssh.kayg.org. Alternative: the owner says "use the Traefik token" and I add it through the Cloudflare API after one read-only scope check. Say which.iifname "eth0" ip saddr 10.69.0.99 tcp dport 7012 acceptto/etc/nftables/infraternal-host.nftand load it live withnft add rule(no table reload, so there is no gap in the default-drop policy).10.69.69.89:useradd --system --home-dir /var/lib/infraternal-test --shell /usr/sbin/nologin infraternal-test, then/etc/systemd/system/infraternal-test.service: Thendaemon-reloadandenable --now infraternal-test. It never touchesinfraternal-server.service,/var/lib/infraternalor port 7011. No--remote-listen: the test server starts with the embedded host only. (If the second account must also see a remote host, add--remote-listen 10.69.69.89:7444plus a wt0 nft rule. It is not needed for the account test.)fridge-ingress: create/etc/traefik/dynamic/infraternal-test.yml(root, 0644, same as the sibling files), a copy ofinfraternal-ssh.ymlwith routerinfraternal-test, ruleHost(\test.ssh.kayg.org`),certResolver: cf, and serverhttp://10.69.0.89:7012`. Traefik reloads on its own. The certificate is issued on the first request by DNS-01 (about 1 minute). No Traefik restart and no edit of existing files.https://test.ssh.kayg.org, create the first administrator with a passkey, then unlock the CA. The tester creates the limited second account there.<rev>, change the two/opt/infraternal/<rev>paths in the unit, thendaemon-reloadandsystemctl restart infraternal-test. It restarts cold, so the owner or tester unlocks the CA again. The old<rev>directories stay in/opt/infraternal, so the test unit can keep an older revision. Check the rev against/opt/infraternal/first; do not point it at a pruned directory.rm /etc/traefik/dynamic/infraternal-test.ymlonfridge-ingress(Traefik drops the route).test.ssh.kayg.orgA record in Cloudflare (or [me] via API if approved in step 2).systemctl disable --now infraternal-test,rm /etc/systemd/system/infraternal-test.service,systemctl daemon-reload.rm -rf /var/lib/infraternal-test(this destroys the test accounts, as intended), thenuserdel infraternal-test./etc/nftables/infraternal-host.nftand from the live table (nft -a list chain inet infraternal_host input, thennft delete rule … handle N)./var/lib/traefik/acme.json. It is harmless and expires on its own. Removing it means hand-editing a secrets file, so I would leave it.Risks and open points
XDG_RUNTIME_DIRsetup is untested until step 1.scripts/verify fastrun (gate not applicable).Owner, 2026-11-03: DNS via the Traefik Cloudflare token: "yes". Go for the production-host changes (nft rule, infraternal-test user and unit, Traefik route): "sure". Admin of the test server: "since it's your test account, why don't you become admin?" The orchestrator will be its admin, using a software passkey (a virtual WebAuthn authenticator) whose credential stays on a build VM, mode 0600, never in the repo or logs. Order: J139 dev-VM verification, then the token scope check, DNS, nft, unit, route, then admin set-up.
J139 result: step 1 proven on a dev VM (nothing touched production or fridge-ingress)
Host:
infraternal-dev-01-compute01, userclaude(non-root). Binary: the existing~/deploy-ff93201e5-result(nix build of.#packages.x86_64-linux.defaultatff93201e5,bin/infraternalplusshare/infraternal/web). No build was needed. No repo change; gate not applicable.Setup. Two
infraternal serverprocesses side by side, each with its ownmktempdir (0700),--data <tmp>/X/data,XDG_RUNTIME_DIR=<tmp>/X/xdg,--web-root,--behind-proxy --trusted-proxy 127.0.0.1:--listen 127.0.0.1:17811 --public-origin https://A.example.invalid--listen 127.0.0.1:17812 --public-origin https://B.example.invalid, laterhttps://test.example.invalidEvidence.
server_ca_startup ... outcome="cold"theninfraternal server started listen=127.0.0.1:1781x ... behind_proxy=true./healthzreturns 200 on both.$XDG_RUNTIME_DIR/infraternal(not/run/infraternal): each has its ownplugins.sockandsessions/, ownerclaude, 0700 dirs. The listening unix sockets are all separate paths:A|B/xdg/infraternal/plugins.sock,A|B/data/restart/control.sock,A|B/data/setup-token.sock./run/infraternalon this VM is a root-owned 0700 dir (another root process uses it); its mtime was unchanged, so the non-root instances never touched it. That confirms thesessions.rs:184collision is avoided by running non-root.GET /returns 200 (1759 B, the SPA shell with#app), and/signinreturns 200. Sign-in itself is a client-side view, so this proves the shell and static files only, not a passkey ceremony.--datalogsserver_ca_startup outcome="cold"and serves 200. Itsplugins.sockis removed on exit and recreated on start./healthz200 before and after, its sockets still listening, 0 error/warn lines in A's log.pkill -fon the VM), temp dirs and my scripts removed,/tmp/j139*gone, no leftoverinfraternal serverprocesses.Plan unit text: no change needed to the flags. The
ExecStartflags,--behind-proxy --trusted-proxy,XDG_RUNTIME_DIRand the non-root cold/locked behaviour all work as written.Not tested here (needs the real host, say so before step 3):
User=,StateDirectory=,RuntimeDirectory=,LimitMEMLOCK,KillMode=process) andUMask=0077. I ran plain processes, not a unit. On the real host,systemd-analyze verifyplus the first start covers it.RuntimeDirectory=infraternal-testsetsXDG_RUNTIME_DIR=/run/infraternal-testin the unit'sEnvironment=, so the agent will use/run/infraternal-test/infraternal. The test confirmed the$XDG_RUNTIME_DIR/infraternalrule, but I did not see the agent write there under systemd.--listen 10.69.0.89:7012bind (not loopback) and the nft rule.Slip to disclose. While locating the brief I ran a stray
pkill -f "find / -name BRIEF"(one local, one over ssh). It only matched my own search. Nothing else on the VM was affected.J140 started. Plan: (1) read the first-run setup token from this instance's own socket (
infraternal-testuser only; production untouched), (2) run the setup wizard in Playwright Chromium on compute01 with a CDP virtual authenticator (ctap2/internal/resident/UV/PRF), (3) unlock the machine CA (D168), (4) export the credential + recovery key to~claude/.config/infraternal-test-admin/(0700/0600), plus a sign-in helper, (5) report whether Community can make a second account. No repo changes. Estimate: ~1 h.Finding so far: the token is served on
<data>/setup-token.sockand read withinfraternal server setup-token --data <dir>(cli.rs, runtime.rsstart_setup_token_socket). It is stored only in a 0600 file on compute01; not shown here.J140 report (no secrets below; the repo is public).
Done
<data>/setup-token.sock) viainfraternal server setup-token --data /var/lib/infraternal-testas theinfraternal-testuser. Production untouched. Stored in a 0600 file on compute01 only.hasPrf: true). Usernameorchestrator, display name "Orchestrator (Claude)". Passkey and recovery key (24 words) completed. The account exists and is signed in (screenshot attached: empty canvas, 1440x900).WebAuthn.getCredentialsgives credential id, rpId, private key, user handle and sign count, but no PRF secret (Chrome 149Credentialhas no such field). Saved with the recovery key and a sessionstorage-state.jsonin~claude/.config/infraternal-test-admin/(dir 0700, files 0600). Helper:~claude/infraternal-ops/test-admin-signin.ts.Blocked / not done
storage-state.json) opens the signed-in canvas with no passkey (the session is 30 days, sliding, D28). The Settings > Hosts screenshot did not show a readable CA row, so there is no CA-state evidence.test.ssh.kayg.orgalthough the public A record is 49.205.172.130. The helper falls back to a Chromium host-resolver rule in that case.Step 5: can Community make a second, non-admin account? No.
auth/http.rs:setup-start,registration-finish,login-*,add-start(a second passkey for the same user), recovery, device approval, API keys. There is no create-user, list-users or invite action.NOT EXISTS (SELECT 1 FROM users WHERE owner=1): once an owner exists,setup_checkreturnsSetupClosed.ee/directory exists on dev./remote/invitationsis for remote machines, not people.ee/; D154 G8 describes local users by invite link. D328: a second, limited test account runs on this throwaway server "not through invites", but nothing in the code creates one. That needs an owner decision and building; I built nothing.Needs a decision (orchestrator / kayg)
a) Keep one long-lived headless Chromium on compute01 holding a virtual authenticator that never restarts, and register a fresh passkey on it, via the recovery key (24 h wait, D25) or by resetting this empty throwaway instance (new setup token). Fragile: a reboot loses the PRF secret and with it the account.
b) Reset the empty instance and redo setup in one browser session that also does the CA unlock and any other PRF step. Needs the owner's go (deletes
/var/lib/infraternal-test).c) A test-only way to get PRF-capable sign-in (for example a software authenticator whose secret can be stored) is a repo change; I stopped there.
My browsers have exited (none of mine running).
infraternal-ops/j140-setup.tsis the one-shot setup script (contains no secrets).J141 report (no secrets below).
Result: done and proven. The admin
orchestrator("Orchestrator (Claude)") exists on https://test.ssh.kayg.org with a durable software authenticator, and the machine CA is unlocked.What I did
/var/lib/infraternal-test, start). I did this three times while diagnosing. Production (infraternal-server,/var/lib/infraternal) was never touched and is still active. All three backup dirs were empty setup-only instances and are deleted now that the new setup is proven.~claude/infraternal-ops/:sw-authenticator-page.js(injected withaddInitScript, test origin only) andsw-authenticator.ts(loads/saves state). It doesnoneattestation and ES256 assertions with a stored P-256 key. PRF is HMAC-SHA-256 under a stored per-credential secret over SHA-256("WebAuthn PRF\0" || input). It supportsevalandevalByCredentialand returnsprf.enabledon create. It returns realPublicKeyCredentialand response prototypes, so the app'sinstanceofchecks pass.~claude/.config/infraternal-test-admin/(dir 0700, files 0600):authenticator.json(key, PRF secret, credential id, user handle, counter) andrecovery-key.txt. The counter is incremented and saved on every assertion. The stale J140 files (credentials.json,storage-state.json) and the spent setup token are deleted.test-admin-signin.tsnow signs in from a fresh browser profile with it (--unlock-caoptional).j141-setup.tsis the one-shot setup script.Proof (same stored credential, fresh browser each time)
/remote/ca/statusisinitialized:true, locked:false.systemctl restart infraternal-test(log:server_ca_startup outcome="cold"), fresh sign-in: statuslocked:trueand the toast "The server restarted. Confirm your passkey once to reconnect your hosts." Unlock via the palette row with the stored credential: "Host connections unlocked", statuslocked:false, Settings > Hosts shows "Unlocked".Server config change you need to know about (owner-approved in this job)
The test unit had no
--remote-listen/--remote-ca-dir, so/remote/ca/*was not mounted (POST answered 405) and the CA could never be unlocked. This is why J140 saw no CA row. I added a drop-in on 10.69.69.89, test unit only:/etc/systemd/system/infraternal-test.service.d/remote-ca.conf. It repeats theExecStartand adds--remote-listen 10.69.69.89:7444 --remote-ca-dir /var/lib/infraternal-test/remote-ca. I added no firewall rule for 7444 (D291). The data dir/var/lib/infraternal-test/remote-cais 0700infraternal-test; recreate it after any data-dir reset.Removal steps:
rm /etc/systemd/system/infraternal-test.service.d/remote-ca.conf; rmdir /etc/systemd/system/infraternal-test.service.d; systemctl daemon-reload; systemctl restart infraternal-test. Delete/var/lib/infraternal-test/remote-cawith the instance.Observation (possible product issue, not fixed)
Right after first-run setup the palette shows no "Unlock host connections" row, although
/remote/ca/statusalready saysinitialized:false, locked:true. After a page reload the row appears. Repro: reset an empty instance with--remote-listenset, run setup, open the palette (Ctrl+Shift+K), type "Unlock": no match until reload. Not investigated further.Toast "This terminal request is not valid. Try opening a new window."
consoleview (canvas.layout.apply), and about 1.6 s later the console sendsssh.session.open{}. About 160 ms later the server answers{"error":"terminal unavailable","reason":"invalid"}. The client mapsreason: invalidto that toast (apps/tracer/src/terminal-refusal.ts:13).ssh.session.openwith{}is valid inwebsocket.rs(BrowserTerminalOpen { host_id: Option }, fixed 80x24), so theinvalidcomes from the infraternal agent.crates/infraternal-agent/src/daemon.rs:291mapsPermissionDenied/InvalidInput/InvalidDatafrom the open toOpenRefusal::Invalid.infraternal-test(uid 994, nologin shell).logins::account(crates/infraternal-agent/src/logins.rs:~35-60) resolves the person's nameorchestratoras a host account. There is no such OS user, and a non-root agent returnsPermissionDenied("preferred account is absent on a rootless host") instead of falling back as root does. Production runs as root, where the missing account falls back to root with a note. I did not create an OS user or change the unit to test this, and the journal has no line for it.ff93201e5.orchestratoron the test host and reload. If the shell opens, the cause is confirmed.Evidence screenshots attached below (1920x1080 desktop, no secrets).