Connected devices: app passwords on every instance (#895, v0.6.339) #898

Merged
Cordy merged 25 commits from connected-devices-895 into main 2026-10-14 02:23:47 +00:00
Owner

Closes #895. The spec is docs/superpowers/specs/2026-10-14-connected-devices-895-design.md and the plan is docs/superpowers/plans/2026-10-14-connected-devices-895.md. CHANGELOG v0.6.339.

What's in it:

  • App passwords ("Connected devices") on local, LDAP and OIDC instances. They are wired outside the browser-form provider, so a device password never opens a session or reaches admin functions (#890 holds).
  • Guided "Connect a device": choose the app, confirm it's you (10 min; OIDC is forced to re-authenticate with prompt=login, max_age=0 and auth_time), then get the setup steps for that app.
  • Device list: last used with address and app, Never used and Unused for N months markers, rename, disconnect, and a summary line.
  • Clean-up: devices unused for N months (default 12) are removed, after a week's notice. Devices that existed before the upgrade count from the upgrade.
  • Admin switch "Sync apps need app passwords", off by default:
    • a 30-day readiness list and Tell them;
    • refusals happen above the throttle (they are not failed sign-ins and claim no seat);
    • a one-per-day bell item for the person whose app was refused.
  • LDAP lifecycle (hardened C):
    • a device is paused at once when its account is not found or disabled;
    • records are kept for 30 days, then purged;
    • mass-miss guard with Acknowledge;
    • an outage never pauses.
  • Device approval, server side (RFC 8628 shape) for future Cairn apps:
    • a #connect approval page;
    • codes expire after 10 minutes;
    • limits per IPv6 /64 and on failed attempts;
    • Allow needs a recent confirmation.
  • Audit:
    • app-password-created/revoked/required-changed, devices-paused/resumed/mass-miss;
    • auth-signin (access tier) for ordinary accounts, folded per account, source and app.
  • Config-file and break-glass accounts can't hold devices (refused, plus a one-time purge at startup). 100 devices per account at most.
  • Docs across the handbook, "Connected devices (app passwords)".

Process: 11 tasks, each implemented and reviewed by a fresh subagent, with fix rounds; then a final review of the whole branch, including a docs drift check across the handbook, and one fix wave. Locally, the full go test, go vet and web tests (133) are green.

Closes #895. The spec is `docs/superpowers/specs/2026-10-14-connected-devices-895-design.md` and the plan is `docs/superpowers/plans/2026-10-14-connected-devices-895.md`. CHANGELOG v0.6.339. **What's in it:** - App passwords ("Connected devices") on local, LDAP and OIDC instances. They are wired outside the browser-form provider, so a device password never opens a session or reaches admin functions (#890 holds). - **Guided "Connect a device":** choose the app, confirm it's you (10 min; OIDC is forced to re-authenticate with `prompt=login`, `max_age=0` and `auth_time`), then get the setup steps for that app. - **Device list:** last used with address and app, *Never used* and *Unused for N months* markers, rename, disconnect, and a summary line. - **Clean-up:** devices unused for N months (default 12) are removed, after a week's notice. Devices that existed before the upgrade count from the upgrade. - **Admin switch** "Sync apps need app passwords", off by default: - a 30-day readiness list and **Tell them**; - refusals happen above the throttle (they are not failed sign-ins and claim no seat); - a one-per-day bell item for the person whose app was refused. - **LDAP lifecycle (hardened C):** - a device is paused at once when its account is not found or disabled; - records are kept for 30 days, then purged; - mass-miss guard with Acknowledge; - an outage never pauses. - **Device approval, server side** (RFC 8628 shape) for future Cairn apps: - a `#connect` approval page; - codes expire after 10 minutes; - limits per IPv6 /64 and on failed attempts; - Allow needs a recent confirmation. - **Audit:** - `app-password-created/revoked/required-changed`, `devices-paused/resumed/mass-miss`; - `auth-signin` (access tier) for ordinary accounts, folded per account, source and app. - Config-file and break-glass accounts can't hold devices (refused, plus a one-time purge at startup). 100 devices per account at most. - Docs across the handbook, "Connected devices (app passwords)". **Process:** 11 tasks, each implemented and reviewed by a fresh subagent, with fix rounds; then a final review of the whole branch, including a docs drift check across the handbook, and one fix wave. Locally, the full `go test`, `go vet` and web tests (133) are green.
test: gate German relative-time assertions on full ICU (CI small-icu) (#895)
All checks were successful
ci / test-and-build (pull_request) Successful in 4m23s
f82085aadd
Cordy merged commit 2d8e0440c0 into main 2026-10-14 02:23:47 +00:00
Cordy deleted branch connected-devices-895 2026-10-14 02:23:52 +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#898
No description provided.