Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
176727a
Start working record for feature 455
claude Nov 30, 2026
0d6aa22
Write spec for feature 455
claude Nov 30, 2026
56701b9
Log the spec step of feature 455
claude Nov 30, 2026
aa8126d
Log the spec challenge of feature 455
claude Nov 30, 2026
8121a6a
Revise spec of feature 455 after the challenge
claude Nov 30, 2026
aab6671
Write plan and tasks for feature 455
claude Nov 30, 2026
611ec11
Add the plan challenge notes of feature 455
claude Nov 30, 2026
c262956
Add the skeleton of group G1
claude Nov 30, 2026
ab41c29
Add the failing tests of group G1
claude Nov 30, 2026
36d5f4b
Implement the formatter and split rescan layout of group G1
claude Nov 30, 2026
5a4d8d2
Cover the split rescan layout of group G1
claude Nov 30, 2026
269b54f
Log the skipped skeleton of group G2
claude Nov 30, 2026
f8eac4f
Add the failing tests of group G2
claude Nov 30, 2026
3f22a11
Implement the Runtime Containers page of group G2
claude Nov 30, 2026
14e6d6c
Cover the Runtime Containers page of group G2
claude Nov 30, 2026
62787eb
Log the documentation step of feature 455
claude Nov 30, 2026
c16210a
Log the coverage decision of feature 455
claude Nov 30, 2026
6408c9d
Stamp the code check of feature 455
claude Nov 30, 2026
293ce9f
Log review round 1 of feature 455
claude Nov 30, 2026
7775105
Log the decision on review round 1 of feature 455
claude Nov 30, 2026
e5bff40
Fix the findings of review round 1
claude Nov 30, 2026
3cd06c8
Stamp the code check after review round 1
claude Nov 30, 2026
12e40ed
Log the delta review of feature 455
claude Nov 30, 2026
89afb02
Log the PR approval of feature 455
claude Nov 30, 2026
188bb2d
Log the manual check of feature 455
claude Nov 30, 2026
b18d9b0
Accept decision record 0082
claude Nov 30, 2026
83ba319
Stamp the decision record status
claude Nov 30, 2026
de895ee
Remove squad working record
claude Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/areas/web-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ to read the state the other areas compute and to start manual scans; it computes
- The status of a vulnerability assessment, `Findings detected`, takes the tone of its highest severity with at least
one finding (critical, high, medium or low); without a counted known severity it is low. Any other status ignores
the severities, so `Failed` stays red. A severity chip uses the tone of its own severity; an unknown one is low.
- The runtime container list shows the highest active severity as chip (`Unknown` in the low tone), beside it the status chip for a status other than `Findings detected`, and the count line `{count} active Β· {n} critical, …` in the order critical, high, medium, low, unknown.
- The severity bar shows the active findings as segments in the order critical, high, medium, low, each as wide as
its count and at least 4 px; findings of an unknown severity count as low. A legend lists the counts and the bar
is announced as `Severity distribution: ...`. Without findings nothing is shown.
Expand All @@ -79,7 +80,7 @@ to read the state the other areas compute and to start manual scans; it computes
| `/my-images/{id}` | My Image details | One observed image: reference, latest scan, derived-runtime hint, running containers, base image chain, update findings with tag candidates, and β€” when there are any β€” vulnerability findings and its 20 most recent scan runs |
| `/observed-images` | Observed Images | The registration form and the manually registered images with latest scan, active update findings, derived-runtime hint and vulnerability status |
| `/observed-images/{id}` | Observed Image detail | One observed image: reference, latest scan, whether it is an own or a manual image, derived-runtime hint, running containers (own images only), base image chain, vulnerability findings and update findings with tag candidates; no scan history |
| `/runtime-containers` | Runtime Containers | Every currently known container with instance, tag (and the version an alias resolves to), CPU, memory and network usage with a short trend of up to the 12 latest samples, update state, available update and vulnerability status; a link to the own image when the container runs one |
| `/runtime-containers` | Runtime Containers | A panel `Container inventory` with the meta text `{n} containers on {m} Docker instances`; seven columns: container (name, tag with the version an alias resolves to, link to the own image), instance, CPU, memory and network usage with a trend of up to the 12 latest samples, update state with the available version, and vulnerabilities (chip, count line, last check, rescan, base image warning); [0082](../decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md) |
| `/runtime-containers/{instanceId}/{containerId}` | Runtime Container detail | One container: image and digest, Compose project, linked own image, update state and message, derived-runtime hint, base image chain, resource usage history, manual tag preference, available tag candidates, update findings, vulnerability findings and the scans of its 20 most recent snapshots; for a container of a Docker instance with Portainer enabled, the *Container actions* section with the 20 most recent action runs of the container |
| `/docker-instances` | Docker Instances | Configured Docker instances with endpoint, connection kind, latest runtime scan status and time, current resource usage and number of containers; with exactly one instance its current usage and usage history are shown on this page directly |
| `/docker-instances/{id}` | Docker Instance detail | The containers currently observed on one instance with linked own image and resource usage |
Expand All @@ -106,7 +107,7 @@ to read the state the other areas compute and to start manual scans; it computes
| Register and scan | Observed Images | Registers an image from name (trimmed), image reference and optional description ([Image catalog](image-catalog.md)), scans it immediately as a manual observed-image scan and opens its detail page; a reference already tracked as an enabled own image is rejected with an `Open own image` link to that image and starts no scan |
| Check image updates | Runtime Containers | Runs a manual runtime container scan of all enabled Docker instances |
| Refresh vulnerabilities | Scan History, shown only when vulnerability scanning is enabled | Runs a manual vulnerability refresh of all live images; the page also shows when the next scheduled refresh is expected |
| Rescan (per image) | Observed Images, My Images, Runtime Containers | Runs a manual vulnerability refresh of that one image version; next to it the time of the last check or "Never scanned"; the button is announced as `Rescan vulnerabilities` |
| Rescan (per image) | Observed Images, My Images, Runtime Containers | Runs a manual vulnerability refresh of that one image version; with it the time of the last check or "Never scanned"; the button is announced as `Rescan vulnerabilities` |
| Select / Clear selection | Runtime Container detail | Stores or removes a manual tag preference for that container ([Update detection](update-detection.md)); it does not change or redeploy the container |
| Start / Stop / Restart | Runtime Container detail, *Container actions* section | Starts, stops or restarts that container through Portainer after a confirmation, and records the action as an action run ([Container actions](container-actions.md)) |

Expand Down Expand Up @@ -341,6 +342,8 @@ never their values.
map to tones in one mapping, beside the chip colors of unconverted pages.
- [0080](../decisions/0080-the-dashboard-counts-the-containers-advisories-and-own-images-it-lists.md) β€” The dashboard
counts the containers, advisories and own images it lists.
- [0082](../decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md) β€” The
runtime container list names the highest active severity and keeps a failed check's status beside it.

## Not here

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 0082: The runtime container list names the highest active severity and keeps a failed check's status beside it

- **Status:** Accepted
- **Date:** 2026-11-30
- **Area:** Web UI
- **Source:** Issue #455
- **Supersedes:** β€”

## Context

The flat refresh (#450) gives the Runtime Containers list a Vulnerabilities column of its own. Issue #455 replaces the
*Runtime vulnerabilities* chip and the compact severity chips by one chip and one line: the highest severity present
and `{count} active Β· {breakdown}`. The list item carries two independent values: the image version's stored
assessment status and its active findings. A failed or unavailable check leaves the findings of an earlier check active
while the status turns `Failed` or `Unavailable`. Until now the count line showed the stored assessment message, which
after such a check is the failure message, so the failure was visible. A severity chip alone would hide it.

## Options considered

1. **Severity chip, and the status chip beside it whenever the status is not `Findings detected` (chosen)** β€” the
failed check stays visible in the row as a red `Failed` chip; such rows show two chips.
2. **Severity chip only** β€” the mockup's look in every row, but after a failed check the row looks as if the findings
were current, and nothing says the check failed.
3. **Status chip only, in the tone of the highest severity** β€” one chip per row, but `Findings detected` says less than
the severity the issue asks for, and a failed check would still lose its severity.
4. **Keep the assessment message as the count line** β€” shows the failure text, but the line no longer carries the
severities the removed chips showed.

## Decision

With active findings the Vulnerabilities cell of the runtime container list shows the highest active severity as its
chip and the severity counts as its count line; a status other than `Findings detected` is shown as a second chip
beside it. The texts, tones and order are stated in [Web UI](../areas/web-ui.md).

## Consequences

The stored assessment message no longer appears on the list; the detail page still shows it. The pages converted later
in #450 (My Images, Observed Images) can take the same cell; whether they do is decided in their issues.
1 change: 1 addition & 0 deletions docs/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,5 @@ once in the [area document](../areas/README.md) of the record's area, and the re
| [0079](0079-statuses-map-to-tones-in-one-mapping-beside-the-chip-colors-of-unconverted-pages.md) | Statuses map to tones in one mapping, beside the chip colors of unconverted pages | Accepted | 2026-11-28 |
| [0080](0080-the-dashboard-counts-the-containers-advisories-and-own-images-it-lists.md) | The dashboard counts the containers, advisories and own images it lists | Accepted | 2026-11-29 |
| [0081](0081-the-navigation-row-shows-from-1360-px-and-a-drawer-below.md) | The navigation row shows from 1360 px, and a drawer below | Accepted | 2026-11-29 |
| [0082](0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md) | The runtime container list names the highest active severity and keeps a failed check's status beside it | Accepted | 2026-11-30 |
<!-- project:end index -->
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
<div class="vulnerability-rescan-control">
<span class="table-secondary">@(CheckedAtUtc is DateTimeOffset checkedAtUtc ? $"Checked {TimestampFormatter.Format(checkedAtUtc)}" : "Never scanned")</span>
<MudTooltip Text="Rescan for vulnerabilities now">
@{
RenderFragment rescanButton = @<MudTooltip Text="Rescan for vulnerabilities now">
<MudIconButton Icon="@Icons.Material.Filled.Refresh"
Class="dug-icon-button"
aria-label="Rescan vulnerabilities"
Disabled="@_isBusy"
OnClick="RescanAsync" />
</MudTooltip>
</div>
@if (string.IsNullOrWhiteSpace(_errorMessage) == false)
</MudTooltip>;
}
@if (LeadingContent is not null || TrailingContent is not null)
{
<span class="table-secondary">@_errorMessage</span>
<div class="vulnerability-rescan-control vulnerability-rescan-control--split">
<div class="vulnerability-rescan-control__details">
@LeadingContent
<span class="table-secondary">@CheckedText</span>
@if (string.IsNullOrWhiteSpace(_errorMessage) == false)
{
<span class="table-secondary">@_errorMessage</span>
}
@TrailingContent
</div>
@rescanButton
</div>
}
else
{
<div class="vulnerability-rescan-control">
<span class="table-secondary">@CheckedText</span>
@rescanButton
</div>
@if (string.IsNullOrWhiteSpace(_errorMessage) == false)
{
<span class="table-secondary">@_errorMessage</span>
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using DockerUpdateGuard.Data.Entities;
using DockerUpdateGuard.Images.Interfaces;
using DockerUpdateGuard.Infrastructure;
using DockerUpdateGuard.UI;

using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -46,6 +47,18 @@ public partial class VulnerabilityRescanControl
[Parameter]
public EventCallback OnRescanned { get; set; }

/// <summary>
/// Optional content shown above the last check time; when this or TrailingContent is set, the control renders its split layout with the rescan button in its own column
/// </summary>
[Parameter]
public RenderFragment? LeadingContent { get; set; }

/// <summary>
/// Optional content shown below the last check time and a failed rescan's error; when this or LeadingContent is set, the control renders its split layout with the rescan button in its own column
/// </summary>
[Parameter]
public RenderFragment? TrailingContent { get; set; }

/// <summary>
/// Service-scope factory
/// </summary>
Expand All @@ -58,6 +71,11 @@ public partial class VulnerabilityRescanControl
[Inject]
public ILogger<VulnerabilityRescanControl> Logger { get; set; } = null!;

/// <summary>
/// Text of the last check time, or the hint that the image was never scanned
/// </summary>
private string CheckedText => CheckedAtUtc is DateTimeOffset checkedAtUtc ? $"Checked {TimestampFormatter.Format(checkedAtUtc)}" : "Never scanned";

#endregion // Properties

#region Methods
Expand Down
Loading