Files
tandClaude Opus 5.5 62b0f80b33
ci / test-guard (pull_request) Successful in 3s
ci / go (pull_request) Successful in 3m34s
ci / package (pull_request) Successful in 3m39s
ci / install-test (debian:13) (pull_request) Successful in 1m16s
ci / install-test (debian:12) (pull_request) Successful in 1m24s
ci / smb (pull_request) Successful in 1m15s
ci / e2e (pull_request) Successful in 3m6s
Remove passkey login
Owner's decision 2026-11-30 after a cost/value review. WebAuthn only works
when the UI is opened by host name with a trusted certificate; most homes and
small offices use an IP address and the self-signed certificate, where
passkeys don't work at all. For that it cost ~800 lines of security-relevant
code and 9 of the 11 Go dependencies (go-webauthn and what it pulls in: cbor,
go-tpm, jwt, uuid, mapstructure, msgp, …), each a source of update churn.

Removed: internal/app/passkeys, the /api/v1/auth/passkey/* and
/api/v1/me/passkeys* routes and their API description, auth.LoginVerified /
Failed / Blocked (only passkey login used them), the passkey button on the
login page, the Passkeys card on "My account", lib/webauthn.ts, the
dependencies (go mod tidy: go.mod now needs only pam and x/sys). F-AUT-6 is
marked dropped in 02-requirements with the reason. Password login, its
backoff and locked-account checks are unchanged.

Existing installations keep /var/lib/sharestead/passkeys.json; nothing reads
it any more (public keys only, no secret).

Effect: .deb 5.4 → 4.1 MB. Checked on CT 151: the passkey routes answer 404;
login, wrong password, self-service, own account, CSP and axe e2e tests pass
on desktop and phone.

Test changed because: these tests covered the removed passkey feature
(F-AUT-6, dropped by the owner) and are deleted with it:
internal/app/passkeys/passkeys_test.go; TestPasskeysNeedAHostName,
TestDeletingAUserForgetsTheirPasskeys, TestMyPasskeys,
TestPasskeyLoginIsBlockedDuringBackoff (internal/server);
TestPasskeyLoginOfLockedAccountIsRefused and the passkey half of
TestLockedAccountCantLogIn (internal/auth; its password half stays);
web/src/lib/webauthn.test.ts; the e2e test "passkeys: add one, log in with
it, remove it". The requirements they covered for passwords (backoff, locked
accounts, own account) keep their own tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:38:43 +01:00

11 lines
151 B
AMPL

module sharestead
go 1.27.4
require (
github.com/msteinert/pam/v2 v2.1.0
golang.org/x/sys v0.50.0
)
require golang.org/x/term v0.46.0 // indirect