Repository navigation
feat: fixes and renewals: assign once, the scans decide when it is fixed - #60
Merged
Merged
Conversation
…y catalog Milestone 1 of the lifecycle and PQC migration program (PRD-023, internal). - internal/workflow: data-defined workflow templates (stages, transitions, fixed markers), strict validation, and a transition engine that enforces what no template can switch off: verified only on the product's own verification, approval only by a different signed-in person, exceptions with a reason and an end date, nothing marked done while a prerequisite is unfinished. Eight built-in templates. - Verification from evidence after the change: a finding absent from a complete scan or host upload, a certificate no longer served as the leaf anywhere it was and replaced by one valid for longer, a readiness level reached. - Migration 20: workflows, work_items, work_deps; history in audit_log. - API: /api/v1/work, /transitions, /verification, /dependencies, /api/v1/workflows (custom templates, administrators only), /api/v1/policy/catalog. OpenAPI updated. - internal/policy: embedded, validated catalog of standards documents and dated milestones (ADR-0022). The evaluation reads the IR 8547 dates from it, which fixes "disallowed after 2035" starting on 1 January 2035. - ADR-0021, ADR-0022, docs/work.md, RTM rows, CHANGELOG with upgrade note.
…ificate ownership, integrations, exports - Certificate owner and renewal method (certificate_lifecycle), audited. - Lifecycle monitor (serve --monitor-every, POST /lifecycle/check): work overdue, due soon, awaiting approval, exceptions ended, verified work that no longer holds, certificates expiring or expired, certificates changed with no work. Each event sent once to a webhook (JSON with HMAC-SHA256, or chat text), secret by environment variable reference, through the address guard, five attempts then failed. - Suggested work from the scans, each with its reason and catalog basis. - Work summary with a definition and denominator for every figure; readiness counts unscanned endpoints as unknown. - Integration registry: available vs planned, capabilities, auth, limits, health. - CSV export and an audit evidence pack.
…ications and integrations settings - #/work: status band with denominators, where the work stands, post-quantum key exchange out of scanned endpoints, Work / Needs attention / Suggested tabs, CSV and evidence-pack downloads. - #/work/ID: stage track, next steps (approval and verification explained), verification with Check now and Scan now, details, prerequisites, history in the workflow's own words. - Track: Plan hybrid key exchange on endpoints below L3, Track beside findings, Plan renewal and ownership on certificates. - Settings: Notifications (windows, webhook, format, secret by env var, events, test, check now, recent deliveries) and Integrations (available vs planned). - Help topic; docs/work.md rewritten; docs/lifecycle-walkthrough.md (the story and how each claim is tested); ADR-0023 connectors; RTM rows; README. - e2e: testing/e2e/work-phase.mjs (E2E-WK.1-16) wired into the journey.
… fields; menu test knows Work; health tie
…roval hint when sign-in is off
…redraws the attention tab
- A machine's uploaded inventory no longer verifies a finding. - A certificate replacement is one issued after the old certificate and valid now, whatever its lifetime; an incomplete scan waits; a deleted endpoint makes the result not verifiable. - A workflow carries its readiness target (L3 hybrid, L4 post-quantum certificate); work cannot aim lower or at a level already reached. - A rollback clears earlier approvals; exceptions end within a year; waiting on a vendor or the ecosystem needs an administrator; emergency work can be cancelled. - direct-change: a built-in workflow without approval, usable with sign-in off.
- The fix workflow: assigned, then only scans move it to fixed, back to came-back,
and off hold when the date passes. No verify step for people.
- GET/POST /api/v1/fixes, GET /api/v1/fixes/{id}, GET /api/v1/renewals,
POST /api/v1/renewals/expected; a ticket link on work; daily scans ensured.
- Webhook errors name the host only; a named but unset signing secret refuses to send.
- Only unfinished work hides a suggestion; undetermined endpoints counted apart.
Assign once (who, by when, optional ticket link); scans do the rest. Plain lists: Came back, Being fixed, To fix next, On hold, Fixed and still holding. One fix's page: where it stands, how to fix it, what has happened. Renewals: certificates by date, and changes nobody was assigned. Assign buttons on endpoints, findings and certificates. The workflow pages and their vocabulary are removed from the UI.
…s; plain wording for what a scan saw
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Fixes and Renewals: you give a problem an owner and a date, and every scan after that checks it. A fix is marked fixed only when a scan shows the problem gone, and it comes back if a later scan finds the problem again. Nobody can mark a fix as done by hand.
#/fixes): a progress line out of scanned endpoints, then Came back, Being fixed, To fix next, On hold, Fixed and still holding. One form, Assign: who, by when, an optional link to your own ticket. Also on an endpoint's page, beside a finding and on a certificate.#/fixes/ID): where it stands, how to fix it, what has happened. Scan now, Change owner or date, Put on hold, Drop it.#/renewals): served certificates by the date they run out; a renewal is done when every endpoint serves a certificate issued after the old one. Certificates that changed with nobody assigned are listed until someone says it was expected.serve --monitor-every) and a webhook (Settings, Notifications), JSON signed with HMAC-SHA256 or a chat message. The secret is the name of an environment variable.internal/workflow(workflows as data, API only:/api/v1/work,/api/v1/workflows),internal/policy(catalog of standards documents and dated milestones),internal/connector(registry: scanner and webhook available, the rest listed as planned).Schema 19 → 20 (additive):
workflows,work_items,work_deps,certificate_lifecycle,notifications.Docs:
docs/fixes.md,docs/lifecycle-walkthrough.md, ADR-0021, ADR-0022, ADR-0023.Tested locally
go test ./...: all packages pass.golangci-lint run ./...on Windows and withGOOS=linux: 0 issues.testing/e2e/journey.mjs, new phasefixes-phase.mjs, E2E-FX.*): 275 of 275.Known gaps