Repository navigation
Web: accounts scorecard, attributes, policy drafts and jobs (§10) - #24
Yoshiofthewire wants to merge 23 commits into
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process: ⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪🧪 PR contains tests⚡ Recommended focus areas for reviewStale Input String attributes use
Advisory only: this comment never gates the pull request. |
Security review - clearedDetail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kyguard-server-24, where it is readable by the operator and expires seven days after the last post.
gpt-6.1-sol using security-audit on behalf of Yoshi |
Autonomous review - 1/1 personas cleared
Merging remains a human decision; this bot never approves. gpt-6.1-sol using security-audit on behalf of Yoshi |
fd98ce6 to
4113285
Compare
90ecdd3 to
99e453c
Compare
4113285 to
cecef40
Compare
99e453c to
a5783f2
Compare
cecef40 to
f26bda4
Compare
a5783f2 to
f33e6ac
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of Yoshiofthewire The Guide's findings at a5783f2 are addressed at f33e6ac, except "Missing colors", which does not reproduce:
|
f26bda4 to
624394d
Compare
f33e6ac to
43347af
Compare
624394d to
04bf725
Compare
43347af to
47c8432
Compare
04bf725 to
25224be
Compare
6a7e9f1 to
91ec750
Compare
3d948f2 to
1777185
Compare
91ec750 to
e174105
Compare
One reporting page (Accounts): obvious filters for class, health, pool and account and owner attributes drive the table, the traffic light and one-click CSV/JSON export from the same query. Admins add accounts and edit owner, attributes and status there; descriptor details show the endpoint, CA and host-key digests. Attributes lists definitions (SCIM ones read-only), Policies drafts the next policy and shows its digest for kyguard-cli signing, and Jobs lists rotation runs and leases. The Overview shows the traffic light, health counts and a 1-of-1 Custodian warning. No screen handles a credential or signs anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…new asset useJSON clears the previous response when the URL changes or a load fails, so the table never shows another filter's rows under the export links. The first-rotation default uses local clock digits for the datetime-local input. An asset created by Add account is selected, so a retry or the next account reuses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Account details is a native modal dialog (focus moves in and stays in, Escape closes it, focus returns to the row). Writes that never reach the server now say so instead of failing silently. A reload of the same query keeps its rows until the answer arrives; only a new query clears them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion time The owner picker listed only the first 200 users. It now searches the directory on the server (2+ letters) and shows the current owner with a Clear button. A scheduled draft needs a valid first-rotation time; an empty one is refused inline instead of throwing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed draft delete now shows its error. Fully signed drafts show Ready. The vaulted (yellow) colour falls back to the shared ky-ui warning token for themes that do not define --warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decommissioned accounts leave the traffic light, so once closed their details were unreachable. Admins get a Decommissioned list on the Accounts page, backed by GET /api/accounts?status=decommissioned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1777185 to
937d12d
Compare
e174105 to
86dc471
Compare
# Conflicts: # web/dist/index.html # web/src/styles/theme.css # web/tsconfig.tsbuildinfo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note 🤖 Claude Opus 5.5 responding on behalf of Yoshiofthewire Missing Colors doesn't hold. Each dot is rendered as |
# Conflicts: # internal/api/inventory_handlers.go # web/dist/assets/index-CUm1t9UT.js # web/dist/index.html # web/tsconfig.tsbuildinfo
A second click while the first request was in flight created a second asset and account (Guide: Duplicate creation). A ref guards the submit and the Add button stays disabled until the first one finishes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note 🤖 Claude Opus 5.5 responding on behalf of Yoshiofthewire Duplicate creation: fixed in 2c53c96. The new vitest |
The account detail's text attributes kept a rejected value after the detail reloaded (Guide: Stale Input). A refused save puts the stored value back, and the input is keyed on the stored value so a reload shows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note 🤖 Claude Opus 5.5 responding on behalf of Yoshiofthewire Stale Input: fixed in a3da559. A refused attribute save now puts the stored value back in the input. The input is also keyed on the stored value, so a reload after another edit shows what is stored. The new vitest |
In one line: The web UI now has the reporting screens: one Accounts page with obvious filters, the traffic light and one-click CSV/JSON export, plus Attributes, Policies and Jobs, and a traffic-light Overview.
§13 Phase 1A items: "Web screens of §10" — items 1 (dashboard traffic light, health counts, 1-of-1 warning), 2 (accounts inventory, filters, export), 3 (attributes), 4 (policy drafts with digest), 5 (rotation runs and leases). Break-glass session count on the dashboard is not built (no API on this stack).
What changed
kyguard-clistill does all of that.web/distrebuilt with Node 26.13.1 (CI'sNODE_VERSION: "26").Review this
web/src/pages/Accounts.tsx: the filter → export link wiring (an export must contain exactly the rows shown).theme.cssadditions andweb/dist.Checked: round 6 at
012e7ca(this head, the whole stack): gofmt,go vet, fullgo test -race+ FIPS (GODEBUG=fips140=on) on SQLite (Major) and PostgreSQL 17 (k81), both exit 0. The bottom (#20 before rowan's broker-only83fc071,2cab36e) passed the same on SQLite and on PostgreSQL 17 (ownpostgres:17-alpineon Major). Web:npm ci, 52 vitest pass,tsc -b+vite buildwith Node 26.13.1;web/distcommitted from that build.Not checked: the Playwright browser suite in CI's container (runs in CI); a real broker's data.
Guide fixes: a failed filtered load no longer leaves the previous rows on screen (
useJSONclears on URL change and on error; test + mutation); the first-rotation default uses local time; an asset created by Add account is reused on retry. Second round (f33e6ac): account details is a native modal dialog (verified in Chromium: focus trapped, Escape closes, focus returns), unreachable writes are reported. The "missing colors" note does not reproduce (answered on the PR). Third round (47c8432): the owner picker searches the whole directory on the server (checked in Chromium); a scheduled draft needs a valid first-rotation time. Fourth round (91ec750): failed draft deletes are shown, fully signed drafts show Ready, and the yellow colour falls back to the ky-ui warning token in legacy themes. Fifth round (e174105): admins can list decommissioned accounts (new adminGET /api/accounts?status=active|decommissioned, tested) and reopen one to reactivate it.You need to: nothing.
Detail
More captures: filtered by owner department, policies, attributes (dark), jobs.
Stack: #20 inventory → #21 scorecard → #22 SCIM → #23 policy drafts → this PR, on #16.
Round 6 (alder):
maincame in through #20–#23.web/distconflicted (both sides rebuilt it); resolved by rebuilding from the merged source with CI's Node 26 (26.13.1).main's re-step-up dialog and this PR's screens are both in the bundle.GET /api/accounts(this PR's accounts list) goes throughmain's route registry with the other inventory routes: session class, admin only, no window (a read).AddAccount.submitcreates one asset and one account when Add is clicked twice(twoPOST /api/assets)puts the stored attribute value back after a refused save(expected 'CC2' to be 'CC1')Checks at a3da559 (web only): 54 vitest pass,
tsc -b+vite build(Node 26.13.1),web/distcommitted from that build. The Go code is unchanged since 012e7ca.🤖 Generated with Claude Code