Skip to content

Implementation plan / Session plan / Handover RC-1-S22

Handover RC-1-S22 Screens: ISE screens

Card: RC-1-S22. Issue: cema-care/his#36. Branch: session/RC-1-S22.

What was built and where

Two screens of the ISE workspace, each in its own folder. The change touches nothing else except this handover.

Folder Screen Workspace Contract
web/domains/ise/UI-ISE-007/ UI-ISE-007 Release and change console W19 IT operations, route /ise/ui-ise-007 contracts/ise/api/releases.v1.openapi.yaml
web/domains/ise/UI-ISE-008/ UI-ISE-008 Secret and certificate inventory W19 IT operations, route /ise/ui-ise-008 contracts/ise/api/secrets.v1.openapi.yaml

Each folder holds the same parts:

  • screen.ts registers the screen. A deep link /<route>/<releaseId> or /<route>/<itemId> opens a release or an item. That is how a task or a notification (EVT-ISE-007, EVT-ISE-005) opens it.
  • api/http.ts is the service layer. api/releases.ts and api/secrets.ts each have one function per contract operation, with the contract's types.
  • model.ts holds the presentation rules: words and tones of the states, the gate summary, and which actions are enabled, with the reason when one is not. The provider enforces every rule again.
  • The views:
  • UI-ISE-007: ReleaseConsole.tsx, panels.tsx (the five tabs) and ActionDialog.tsx (confirmations and the sign step).
  • UI-ISE-008: Inventory.tsx, ItemDetail.tsx and dialogs.tsx (register, complete rotation, revoke).
  • ui.tsx holds pieces the design system lacks, and failure.tsx maps failures to the screen states of Shell 13.
  • Tests:
  • component tests with a fake gateway shaped by the contract examples (*.test.tsx, test-support.ts);
  • stubs.test.tsx and check-against-stubs.sh, which run the screen against his-contract serve contracts/ise.

UI-ISE-007 follows the brief's layout:

  • List. Tag, state, target environment, change record state, blocking items and age. Filters for state, environment, "awaiting my approval" (provider side) and emergency changes.
  • Detail. A header with the emergency flag "Emergency change ยท review due [date]" where it applies, then the gate summary and the tabs Manifest, Evidence, Change record, Promotion history and Deployment.
  • Action bar. The current state on the left. Every unavailable action is listed with its reason.
  • Actions. Approve promotion to pre-production or to production, reject promotion, approve change record or approve emergency fix, record security sign-off, authorize rollback or forward-fix, close change record, and open the pipeline.
  • The sign step of PH-03. It is used for the four approvals. The dialog shows the approver's name and role, the release tag, the target environment and the resulting state, with no patient line. Its button repeats the action, and Enter does not confirm. It asks for re-authentication every time, with no repeat window, and three failed attempts cancel it with nothing changed.
  • Gate summary. It shows the provider's gate, plus the blocking rules the screen can see in the release itself: manifest incomplete, a signature not verified, a failed check or one that did not run, not reproducible, security sign-off missing, and no recovery plan. Each line names its rule, and a blocking finding links to UI-ISE-011.

UI-ISE-008 follows the brief's layout:

  • Summary. The rotation report of the current month: expiring, overdue, rotated and compliance.
  • List. Soonest expiry first. An Expiring item is shown in amber with the clock and the days left, and an item past its interval is shown as Overdue. Filters for type, state, owner, "expiring" and "overdue".
  • Detail. Policy, Binding, Access grants, Certificate (chain, revocation status, "Requested") and History (accesses, denials, rotations and revocations).
  • "Rotation by task". A list of the items that cannot rotate automatically and are expiring or overdue.
  • Actions. Register item, save rotation policy, save access grants, rotate now, complete rotation and retire old material, and one revoke action per type (Revoke certificate, Revoke secret, Revoke key, Revoke credential).
  • Revoke. The confirmation names the item, what it is bound to and the consumers that will stop authenticating. For suspected compromise it states that there is no overlap, that the bound interfaces are suspended and that an incident is raised.
  • No value is ever shown. No field asks for a secret value or private key, and the screen says that only metadata is shown.

How the screens call the service. The shell SDK has no service client yet. I followed the pattern of the sibling screen session RC-1-S21 (UI-ADM-001 and UI-ADM-002), which records it as a decision record on its own branch. That branch was not merged when this session ended, so this handover does not link to it.

  • Paths and headers. Each call goes to the gateway on the same origin, /ise/v1/... (ADR-HIS-062). It carries Authorization with the user's own credential, a new X-Correlation-Id, X-Purpose-Of-Use: HOPERAT and X-Facility. A command also carries an Idempotency-Key, which is kept across retries of the same intent, and an update carries If-Match.
  • Answers to screen states. 401 means the session ended, 403 no permission, 400 refused (naming the field), 404 not found, 409 or 412 changed. A 503 from the gateway's degraded path shows "Access cannot be checked" (CUX-67), any other 5xx unavailable.
  • A lost answer. The screen says "Checking whether this was recorded" and sends the same request with the same key once more. If that also gets no answer, it offers only "Check again" (CUX-36). The policy update has no idempotency key, so after a lost answer the screen reads the item back and compares before it says whether the update was saved.

One addition to that pattern. ServiceSettings.stepUp is the hook through which the host re-authenticates the user for the sign step (UI-ESS-001 step-up). It returns a stepped-up credential, which is used for that one approval request only.

  • Until a host supplies the hook, the screen offers no approval and says why. It never approves without re-authentication.
  • This changes no contract and no shared code. It is the shape the SDK's step-up should take (follow-ups), so the session wrote no decision record of its own.

Checks and their result

Node.js is not installed on this server. Every check ran in the node:22-bookworm container (pnpm 10.34.9 through corepack), as earlier sessions did. The integration environment was not needed: the screens are tested against the contract stub, which check-against-stubs.sh serves itself.

Check Command Result
Type check of the workspace pnpm build in web/domains/ise Passed
Component and accessibility tests pnpm test in web/domains/ise 54 passed (UI-ISE-007: 30, UI-ISE-008: 24). The 5 stub tests are skipped there, as designed
UI-ISE-007 against the ISE contract stub web/domains/ise/UI-ISE-007/check-against-stubs.sh 2 of 2 passed, and the stub recorded no violation
UI-ISE-008 against the ISE contract stub web/domains/ise/UI-ISE-008/check-against-stubs.sh 3 of 3 passed, and the stub recorded no violation
The shell with both screens pnpm build and pnpm test in web/shell Bundle built (ReleaseConsole and Inventory chunks). 19 passed, 1 skipped, plus the shared-version check
Static analysis platform/delivery-pipeline/bin/static-analysis web/domains/ise/UI-ISE-007 web/domains/ise/UI-ISE-008 No blocking finding
Secret scan platform/delivery-pipeline/bin/secret-scan code origin/main No finding
Links of this handover python3 docs/implementation_plan/tools/check_links.py Passed

Accessibility is checked in three places with axe-core (WCAG 2.0 to 2.2 A and AA): the list views, the item and release details, and the sign and revoke dialogs while they are open. Both dialogs open with the focus on "Cancel".

Requirements and test scenarios

Every test names its requirement, and its test scenario where one exists (session rule 5). The scenarios of D02-ISE section 15.2 that these screens touch are covered for their screen part only. The rest (rebuilds, pipelines, connections) belongs to the build sessions.

Requirement Test scenario Tests (describe titles)
FR-ISE-REL-002: manifest, signatures, promotion, PR-REL-002-2 to 5 TEST-ISE-024 FR-ISE-REL-002 TEST-ISE-024 UI-ISE-007 release list and detail, FR-ISE-REL-002 UI-ISE-007 approval of promotion with the sign step (PH-03), FR-ISE-REL-002 UI-ISE-007 screen states; against the stub: FR-ISE-REL-002 FR-ISE-REL-003 FR-ISE-SUP-002 UI-ISE-007 against the contract stub
FR-ISE-REL-001: evidence, a check that did not run counts as failed, open findings block TEST-ISE-023 FR-ISE-REL-001 TEST-ISE-023 UI-ISE-007 evidence and the gate
FR-ISE-REL-003: change record, PR-REL-003-1 and 3, rollback and forward-fix, close TEST-ISE-025 FR-ISE-REL-003 TEST-ISE-025 UI-ISE-007 change record, emergency fix and recovery
FR-ISE-SUP-001: SBOM reference TEST-ISE-036 ... FR-ISE-SUP-001 TEST-ISE-036 shows the seven manifest component types, each component's signature and the SBOM
FR-ISE-SUP-002: security evidence and sign-off, BR-ISE-022 TEST-ISE-037 FR-ISE-SUP-002 TEST-ISE-037 UI-ISE-007 security evidence and sign-off
FR-ISE-KEY-001: inventory, expiry, overdue, rotation, overlap, revocation, history, store unavailable TEST-ISE-026 FR-ISE-KEY-001 TEST-ISE-026 UI-ISE-008 inventory, summary and list, ... item detail, FR-ISE-KEY-001 TEST-ISE-026 WF-ISE-007 UI-ISE-008 rotation and revocation, FR-ISE-KEY-001 UI-ISE-008 registration and screen states; against the stub: FR-ISE-KEY-001 UI-ISE-008 against the contract stub
FR-ISE-KEY-003: certificate chain, revocation status, "Requested" TEST-ISE-028 (screen part) ... FR-ISE-KEY-003 shows a certificate asked for but not issued as Requested, ... shows policy, binding, access grants, certificate and history
FR-ISE-KEY-002: key status only (brief) The State column and badge of every item

Each test names the rule it checks in its own title: UX-ISE-003, UX-ISE-005, CUX-12, CUX-36, CUX-67, CFG-ISE-014, PR-KEY-001-2, WF-ISE-007, DE-ISE-012, BR-ISE-012, BR-ISE-021 and BR-ISE-022.

NFR-ISE-008 Usability was a design input. These choices serve it:

  • every status is shown in words, never by colour alone (UX-ISE-002);
  • red is never used on these consoles, because no state on them endangers patient care now (CUX-15, UX-ISE-008);
  • each action's label names its effect;
  • every action that is unavailable says why;
  • the screens can be used by keyboard throughout (React Aria);
  • times are local with their zone, and in UTC on request (UX-ISE-005).

The NFR's own measure is an observed task-based evaluation with at least five representative users per role, which a session cannot run. It is for the slice's readiness work.

Differences from the brief, specification or contract, and why

  • Rejection. A rejected promotion makes the release Rejected (PR-REL-002-4, D02-ISE 4.3), as the contract and the RC-1-S02 handover direct. The brief assumed the release keeps its state.
  • The pre-production state. The brief enables "Approve promotion to pre-production" for a Signed release. The contract and section 4.3 have the state Awaiting Pre-production Approval, so the action is enabled there.
  • Not in contract version 1, so not shown:
  • health check results, release notices with recipients, the change failure rate (KPI-ISE-009) and an "Open deployment" link on UI-ISE-007;
  • trust anchors (FR-ISE-KEY-003, a later slice, as RC-1-S02 recorded) on UI-ISE-008.

The screens show nothing for these and invent no data. Because the health check result is not in the contract, the provider checks the precondition "a health check failed or a defect was found". - Rollback and forward-fix need the recorded plan. The brief says that the platform engineer executes the recorded plan (FR-ISE-REL-003 behaviour 6), and a production change needs a recovery plan (PR-REL-003-1). So "Authorize rollback" and "Authorize forward-fix" are enabled only for a Deployed release that says which environment it is deployed to and whose change record holds a plan of that kind. Otherwise they are disabled with the reason. The screen never assumes an environment. - "Security evidence present" for "Record security sign-off" (FR-ISE-SUP-002 behaviour 3) means that the release's evidence records a threat model, a secure code review and a dependency scan that ran (threat-model, secure-code-review, dependency-scan). A penetration test is needed only where it is appropriate to the change, which the screen cannot judge, so it is shown but not required. Remediation status is in the vulnerability register (UI-ISE-011). - The consumers named on revoke are the item's binding and its access grants. The contract has no list of consumers apart from these. - "Rotation by task" lists the items the inventory marks "By task" that are expiring or overdue. It is not yet the work list component of OV-01, because no rotation task type exists in the ESS contracts (follow-ups). - Suspension on suspected compromise. The brief routes it through the one "Suspend interface" dialog of UI-ISE-002, which is not built and not in this slice. The revocation's suspectedCompromise makes the provider suspend the bound interfaces. The confirmation states this and links to the interface registry, where interfaces are resumed. - When UI-ISE-008 disables rotate and revoke. The watermark asAt shows how old the store's metadata is (CUX-53). Rotate and revoke are disabled when the store cannot be reached: the last refresh failed, or the screen has not read the store for more than 5 minutes, as the brief says. An old watermark from a store that answers does not disable them. - Permissions. The screens have no source of the user's permissions other than the provider's answer. Actions are therefore enabled by record state. A 403 says who may act: the security engineer for policy, grants and revocation, and an independent approver for PR-REL-002-5.

Questions for a person

None. Nothing in this card needed a ruling on clinical, financial or access behaviour.

Follow-ups outside the card

  • Shell SDK (a session owning web/shell):
  • a service client with the behaviour described above (the two api/http.ts copies here, and RC-1-S21's in ADM);
  • a step-up provider from sign-on (UI-ESS-001) in the shape of ServiceSettings.stepUp;
  • a CSS.escape stand-in in workspace-kit/test-setup.ts, because jsdom lacks it and the React Aria modal needs it. Each test-support.ts here carries one meanwhile.
  • Also note: React Aria's live announcer stays in document.body across the tests of a file, so axe should run on the view or the dialog, not on document.body.
  • Design system: a section, an inline notice, a disabled action with its reason, a modal confirmation whose button ignores Enter, a select, a multi-line text field, a checkbox, a label and value summary, and a time display with UTC on request. Today they are built in each screen folder (ui.tsx, dialogs.tsx).
  • ISE contract, a compatible minor version:
  • on the release: the health check result after deployment, the release notices with recipients and their status, the change failure rate, and the deployment tool's link;
  • on a cryptographic item: the consumers that use it;
  • for UI-ISE-008: trust anchors, when FR-ISE-KEY-003's slice comes.
  • ISE contract example: the example release in releases.v1 records CI checks only, with no threat-model or secure-code-review. Against the stub, the sign-off is therefore not offered, and only the component tests record one. An example release with security evidence would let the stub test record it too.
  • ESS workflow: a task type for rotation tasks (PR-KEY-001-2), so that "Rotation by task" becomes a configuration of the OV-01 work list.
  • UI-ISE-002 (later slice): the one "Suspend interface" dialog. Once it exists, revocation for suspected compromise should open it (OV-113).
  • RC-1-S26 (integrate): it may run both check-against-stubs.sh scripts beside the slice scenario, since the pipeline does not run them.