Repository navigation
feat(ui): show scan progress - #1642
Merged
Merged
Conversation
scttbnsn
requested review from
ALARGECOMPANY and
biggest-littlest
as code owners
November 19, 2026 03:35
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Scanner and cosign commands log still scanning every 30 seconds until they exit, fail or time out. A container carries a transient, in-memory securityScanState of scanning while a scheduled, on-demand or bulk scan of it runs, announced through the existing container-updated SSE event and shown as the Scanning chip in the list.
scttbnsn
force-pushed
the
feat/v1.9-scan-progress
branch
from
November 19, 2026 15:07
a16c66e to
0a3755a
Compare
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.
Long security scans looked like nothing was happening. This adds two signals.
runCommandlogsstill scanning <image> (<n>s)every 30 seconds. It stops on success, failure, timeout and abort. The Trivy DB warm-up names the command, since it has no image.securityScanState: 'scanning'in the API and indd:container-updatedSSE events, so a page loaded mid-scan sees it too. It's an in-memory refcount per container, so concurrent scans of the same container are fine and a restart starts clean. The scheduled, bulk and on-demand scans all set and clear it.The UI reuses the existing "Scanning" chip, which until now only lit up from the scan-started event, so there are no new locale keys. State changes go straight to SSE clients rather than the internal event bus. Otherwise every scan would look like a container lifecycle change to the audit log, MQTT, Prometheus and agents.
Scans of a candidate update image don't mark the running container, because they describe the new image, and the update flow already shows its own scanning phase. A container that's being rescanned keeps counting as scanned, so the dashboard security counts don't flicker.