App passwords: expiry + require-toggle, compact table + modal create, cache revocation fix #753

Merged
Cordy merged 11 commits from feat-751 into main 2026-09-25 19:41:20 +00:00
Owner

Closes #751

  • AppPassword gains ExpiresAt (zero = never): expired records vanish from listings, cannot authenticate, and are lazily purged on the next create.
  • Cache liveness fix: the provider's verified cache stores the matched record id and re-checks liveness on every hit — closes the live hole where a revoked (or expired) app password kept authenticating until process restart. RED test pins it.
  • New runtime setting appPwRequireExpiry (default off), toggled under admin Instance → Basic settings (slotted into adm-basic-fields next to Instance name, settings PUT merge preserved). When on: create without a date → 422; dialog prefills +3 months and marks the field required.
  • Account panel becomes the OpenCloud-style compact table (Name | Created | Expires | Actions; em-dash for never, ember + "in {n} days" inside 14 days); creation moves into a <dialog> (name + date, one-time secret + Copy in place). Server errors now reach the user (res.ok check — the api() Response lesson).
  • Create signature change fixed in oidc_common_test.go; qa749's inline-panel pin updated to the new modal (pin-inventory lesson from #749 — caught in the scout this time, zero extra runs).
  • i18n ×4 for all new copy.

Red-green: apppw751_test.go (3 tests) + qa751.test.js committed failing, one-shot spliced, full suite green on the first fix run.

Closes #751 - `AppPassword` gains `ExpiresAt` (zero = never): expired records vanish from listings, cannot authenticate, and are lazily purged on the next create. - **Cache liveness fix:** the provider's verified cache stores the matched record id and re-checks liveness on every hit — closes the live hole where a revoked (or expired) app password kept authenticating until process restart. RED test pins it. - New runtime setting `appPwRequireExpiry` (default off), toggled under admin **Instance → Basic settings** (slotted into `adm-basic-fields` next to Instance name, settings PUT merge preserved). When on: create without a date → 422; dialog prefills +3 months and marks the field required. - Account panel becomes the OpenCloud-style compact table (Name | Created | Expires | Actions; em-dash for never, ember + "in {n} days" inside 14 days); creation moves into a `<dialog>` (name + date, one-time secret + Copy in place). Server errors now reach the user (`res.ok` check — the api() Response lesson). - `Create` signature change fixed in `oidc_common_test.go`; qa749's inline-panel pin updated to the new modal (pin-inventory lesson from #749 — caught in the scout this time, zero extra runs). - i18n ×4 for all new copy. Red-green: `apppw751_test.go` (3 tests) + `qa751.test.js` committed failing, one-shot spliced, full suite green on the first fix run.
test(#751): RED — expiry + require-toggle 422 + revoked-cache hole
All checks were successful
scout-751 / scout (push) Successful in 1s
11f988d9cd
test(#751): RED — compact table, modal create with expiry, admin toggle, i18n ×4
All checks were successful
scout-751 / scout (push) Successful in 1s
5b5d08e9d4
chore(#751): splice v2 — set-apppwexp id count is 1 (label uses for=)
All checks were successful
scout-751 / scout (push) Successful in 1s
5072532046
chore(#751): one-shot — RED gates, splice, verify, commit, self-remove
All checks were successful
fix-751 / fix (push) Successful in 1m4s
scout-751 / scout (push) Successful in 2s
53d65d1e14
AppPassword gains ExpiresAt (zero = never): expired records vanish from listings, cannot authenticate, and are lazily purged on the next create. The provider's verified cache now stores the matched record id and re-checks liveness on every hit, closing the hole where a REVOKED (or expired) app password kept authenticating until process restart. New runtime setting appPwRequireExpiry (default off, admin Instance > Basic settings toggle) makes the expiration date mandatory for new passwords - 422 without one; no standard mandates expiry (NIST 800-63B), so it is a per-deployment choice. The account panel becomes an OpenCloud-style compact table (Name / Created / Expires / Actions, em-dash for never, ember within 14 days) with creation moved into a modal dialog: name + date field (prefilled +3 months and required when the toggle is on), one-time secret shown in the same dialog. i18n x4.
chore(#751): changelog one-shot for v0.6.279
All checks were successful
chg-751 / chg (push) Successful in 2s
db5bfb72d4
docs: changelog for v0.6.279 (#751)
All checks were successful
ci / test-and-build (pull_request) Successful in 1m31s
d9678b0267
Cordy merged commit f2566c6a58 into main 2026-09-25 19:41:20 +00:00
Cordy deleted branch feat-751 2026-09-25 19:41:23 +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#753
No description provided.