v0.6.406: two-step sign-in (#1046), guests and OCM from Spaces (#1036), API keys (#1108), security fix #1156 #1157

Merged
Cordy merged 177 commits from b6v07 into main 2026-11-11 15:32:45 +00:00
Owner

Batch 6 (b6v07), release v0.6.406.

  • #1046 Two-step sign-in:
    • authenticator app (TOTP), recovery codes, security keys and passkeys (WebAuthn, go-webauthn v0.18.2) as a second factor for local and LDAP accounts;
    • requirement for Nobody, Administrators or Everyone, with time to set it up and reminders;
    • admin reset rules;
    • account password refused over WebDAV for people with a factor;
    • shared "Confirm it's you" dialog;
    • addresses follow audit.ip.
  • #1036 Guests and OCM from Spaces:
    • guests by e-mail code, with the /g/ surface, the guest pages and the document editor for guests;
    • Outside domains (allow or block);
    • Users & access › Guests;
    • Open Cloud Mesh shares from Spaces with end dates and the space lifecycle, plus OCM wire fixes.
  • #1108 API keys:
    • admin-created, scoped, expiring keys behind a central gate, which never reach files, settings, admin roles or keys;
    • the API keys tab;
    • the OpenAPI reference at /api/v1/openapi.yaml;
    • restore pause.
  • #1156 (security): /s/ no longer serves shares to people and groups by their internal key.

Process: research, decisions, approved mockups, spec and plan, SDD waves W1 to W4 with reviews after each wave, fix rounds fx1 to fx5, a final whole-branch review and a focused re-review. All suites are green locally: build, vet, internal/api, cmd/cairnd, stacktest, the touched packages, web 2622 pass, a11y 79 files, deploy, config.

Docs live in the repo only (handbook, ARCHITECTURE.md, openapi.yaml). CHANGELOG v0.6.406, chart appVersion v0.6.406.

Batch 6 (b6v07), release v0.6.406. - **#1046 Two-step sign-in:** - authenticator app (TOTP), recovery codes, security keys and passkeys (WebAuthn, go-webauthn v0.18.2) as a second factor for local and LDAP accounts; - requirement for Nobody, Administrators or Everyone, with time to set it up and reminders; - admin reset rules; - account password refused over WebDAV for people with a factor; - shared "Confirm it's you" dialog; - addresses follow `audit.ip`. - **#1036 Guests and OCM from Spaces:** - guests by e-mail code, with the `/g/` surface, the guest pages and the document editor for guests; - Outside domains (allow or block); - Users & access › Guests; - Open Cloud Mesh shares from Spaces with end dates and the space lifecycle, plus OCM wire fixes. - **#1108 API keys:** - admin-created, scoped, expiring keys behind a central gate, which never reach files, settings, admin roles or keys; - the API keys tab; - the OpenAPI reference at `/api/v1/openapi.yaml`; - restore pause. - **#1156 (security):** `/s/` no longer serves shares to people and groups by their internal key. Process: research, decisions, approved mockups, spec and plan, SDD waves W1 to W4 with reviews after each wave, fix rounds fx1 to fx5, a final whole-branch review and a focused re-review. All suites are green locally: build, vet, internal/api, cmd/cairnd, stacktest, the touched packages, web 2622 pass, a11y 79 files, deploy, config. Docs live in the repo only (handbook, ARCHITECTURE.md, openapi.yaml). CHANGELOG v0.6.406, chart appVersion v0.6.406.
Cordy added 177 commits 2026-11-11 15:00:22 +00:00
# Conflicts:
#	internal/api/settings.go
# Conflicts:
#	internal/api/api.go
#	internal/api/settings.go
# Conflicts:
#	internal/api/spaceshares.go
# Conflicts:
#	cmd/cairnd/dxwire.go
#	cmd/cairnd/main.go
# Conflicts:
#	cmd/cairnd/dxwire.go
#	cmd/cairnd/mailforget1103fx4_test.go
#	cmd/cairnd/main.go
#	cmd/cairnd/rewind1104_test.go
#	internal/api/localusers.go
login.html: after a correct password the 200 step answer (second-factor or enrol) shows the second step (key first as a focused button with get() inside the click, Use another method, code, recovery code; wrong, used, 429 countdown, 410 Start again with the name kept, 423 locked, no WebAuthn), setup at sign-in (method choice, QR as one SVG path with a 4-module quiet zone black on white in every theme, manual key only without qr, key with name and prompt, recovery codes with Download .txt, Print, Copy and the tick) and the recovery-code landing; then:new-password runs the second step before the existing new-password form; an enrol answer from /auth/password/new opens setup with the reset lead. I18N block after password. webdist/login.html via make web.
Review W2 B2: the admin reset takes the record's canonical name
(secondfactor.Removed.User) for the session revoke, notices, the admin
check, devices and the audit, and ends only the reset source's sessions
(auth Revoker.RevokeUserOf; N4).
Review W2 S2: SecondFactorAPI.isConfig(source, name) exempts only local
configuration-file accounts (gate, account routes, readiness, reset
authority).
Review W2 N2: the API issuer uses secondfactor.CapIssuer.
Review W2 B1: the daily job treats an LDAP record's date as applying while
the requirement and dueFor are both admins (never clears a date it cannot
judge); configuration-file exemption local only in cmd too.
Review W2 S1: tests pin the purge hold while a mass-miss batch is open;
the job's own brake holds a cohort of LDAP records gone on one day past
the mass-miss guard (WARN).
Review W2 S3: /auth/enrol/done consumes the passed ticket's nonce in the
record (SecondStepper.SpendEnrol, Store.SpendOnce): no replay on another
instance.
Review W2 S4: the store emits failed for every counted failure (Told on
the 10th); cmd folds second-factor-failed per account and method per
10 min, the 10th on its own.
Review W2 N1: a sign-in setup is refused once the record holds a factor.
Review W2 N3: the pending-step map sweeps at most once a minute.
The rail entry Security replaces Change password (#account/password and
#account/security open it; the old rail id stays). The page holds the
password card (local: Change password; LDAP: secPwLdap; none for identity
provider accounts) and the Two-step sign-in card: the app row, security keys
and passkeys as a table (kind, sync state, copied-key and old-server chips,
the limit), recovery codes, the due banner, Turn off or tsReqNoOff, and the
reasons keys are unavailable. Dialogs set up or replace the app (QR as one
SVG path with a 4-module quiet zone, black on white in every theme, labelled
suQrAlt; the key in groups), add, rename and remove keys, turn off, and make
new codes (Download as text/plain, a print-only view, Copy, the tick), each
confirming through openConfirmDialog on 401 reauth-required. A removal's
confirmation offers only the methods the server named (new optional
openConfirmDialog option methods). Connected devices shows the two-step info
box and the apps refused since it was turned on; the refusal bell says
nDevRefusedTs for sub second-factor.

Tests: web/test/security1046.test.js, web/test/a11y/security1046.test.js;
existing rail and section tests follow the rename; the askDanger count +5.
# Conflicts:
#	web/test/qa693.test.js
# Conflicts:
#	web/test/qa693.test.js
# Conflicts:
#	docs/handbook/data-protection-operators.md
#	docs/handbook/index.md
#	docs/handbook/security-standards.md
# Conflicts:
#	docs/handbook/data-protection-operators.md
#	docs/handbook/index.md
#	docs/handbook/security-standards.md
#	docs/handbook/users-access.md
merge b6v07-fx5
All checks were successful
ci / test-and-build (pull_request) Successful in 6m19s
3920f9648f
Cordy merged commit bee68e7c6f into main 2026-11-11 15:32:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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: Cordy/Cairn#1157
No description provided.