Skip to content

feat(security): opt-in fast lane for updates that fix critical or high findings - #1622

Merged
scttbnsn merged 5 commits into
dev/v1.9from
feat/v1.9-security-fast-lane
Nov 19, 2026
Merged

scttbnsn merged 5 commits into
dev/v1.9from
feat/v1.9-security-fast-lane

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

An opt-in security fast lane. If a pending update fixes critical or high vulnerabilities in the running image, it skips the maturity, snooze and maintenance-window holds. Turn it on per container with dd.security.fastlane=true, or for everything with DD_SECURITY_FASTLANE=true. The label wins in both directions.

What counts as a fix. At least one critical or high vulnerability in the running image's scan is missing from the candidate's scan, and the candidate adds no new critical. Both scans have to be solid evidence:

  • Both are pinned scans of an immutable digest (repo@sha256:<64hex>, recorded as scannedRef) and match the digests being compared. A tag scan, a missing digest or a registry that returns a tag where a digest should be all count as no evidence.
  • Comparison uses full critical/high ID sets taken before the stored list is cut at 500 entries.
  • Same scanner, the candidate scan no older than the running one, and no scanner errors on either side, including a partial one.

Candidate scans for opted-in containers run once per candidate digest. They're shared across replicas and reused only while still comparable.

What it never skips. Excludes, thresholds, skip and reject entries, rolled-back candidates and approvals. An approval-required update still waits, flagged as a security fix. A blocked scan gate stays blocked.

Install is bound to what qualified. The update still pulls by tag, so after the pull the pulled digest has to equal the qualifying platform digest, or the manifest-list digest recorded alongside it at discovery for multi-arch images. Otherwise the install aborts before anything is recreated, it's audited, and the update goes back through the normal holds on the next cycle.

Every fast-laned admission writes a security-fast-lane audit entry. The container, its events and notifications carry securityFastLane with the fixed IDs (capped at 10), and the UI marks the update status and the approval row.

Limits:

  • It only applies where the candidate has a digest, which today means digest-watch containers. Tag-to-tag candidates don't qualify yet (roadmap).
  • Scanner and database versions aren't recorded, so the comparison uses scanner identity and time (roadmap).
  • Scans stored before this change don't qualify until they're rescanned.

This was reviewed over three Codex passes (5, 4, then 2 findings, all fixed) plus my own check of the multi-arch install binding.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 105 files, which is 5 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 59e9bab and bc45a5a.

Files ignored due to path filters: 2

  • CHANGELOG.md is excluded by !CHANGELOG.md
  • apps/web/src/lib/analytics-routes.generated.ts is excluded by !**/*.generated.*, !**/*.generated.*
Files selected for processing: 105

  • app/api/approvals.test.ts
  • app/api/approvals.ts
  • app/api/container/bulk-security.test.ts
  • app/api/container/bulk-security.ts
  • app/api/container/security.test.ts
  • app/api/container/security.ts
  • app/api/openapi/schemas.ts
  • app/model/audit.d.ts
  • app/model/container.fast-lane.test.ts
  • app/model/container.ts
  • app/model/update-eligibility.fast-lane.test.ts
  • app/model/update-eligibility.ts
  • app/registries/BaseRegistry.test.ts
  • app/registries/BaseRegistry.ts
  • app/registries/Registry.test.ts
  • app/registries/Registry.ts
  • app/security/digest.test.ts
  • app/security/digest.ts
  • app/security/fast-lane-candidates.test.ts
  • app/security/fast-lane-candidates.ts
  • app/security/fast-lane.test.ts
  • app/security/fast-lane.ts
  • app/security/scan.test.ts
  • app/security/scan.ts
  • app/security/scheduler.test.ts
  • app/security/scheduler.ts
  • app/triggers/providers/Trigger.test.ts
  • app/triggers/providers/Trigger.ts
  • app/triggers/providers/command/Command.test.ts
  • app/triggers/providers/docker/Docker.pulled-image-identity.test.ts
  • app/triggers/providers/docker/Docker.ts
  • app/triggers/providers/docker/fast-lane-guard.test.ts
  • app/triggers/providers/docker/fast-lane-guard.ts
  • app/triggers/providers/gotify/Gotify.test.ts
  • app/triggers/providers/ifttt/Ifttt.test.ts
  • app/triggers/providers/kafka/Kafka.test.ts
  • app/triggers/providers/mqtt/Mqtt.test.ts
  • app/triggers/providers/pushover/Pushover.test.ts
  • app/updates/request-update.test.ts
  • app/updates/request-update.ts
  • app/watchers/providers/docker/image-comparison.test.ts
  • app/watchers/providers/docker/image-comparison.ts
  • content/docs/current/api/index.mdx
  • content/docs/current/configuration/security/fast-lane.mdx
  • content/docs/current/configuration/security/index.mdx
  • content/docs/current/configuration/security/meta.json
  • ui/src/composables/useUpdateStatus.ts
  • ui/src/locales/ar/approvalsView.json
  • ui/src/locales/ar/containerComponents.json
  • ui/src/locales/ar/listViews.json
  • ui/src/locales/de/approvalsView.json
  • ui/src/locales/de/containerComponents.json
  • ui/src/locales/de/listViews.json
  • ui/src/locales/en/approvalsView.json
  • ui/src/locales/en/containerComponents.json
  • ui/src/locales/en/listViews.json
  • ui/src/locales/es/approvalsView.json
  • ui/src/locales/es/containerComponents.json
  • ui/src/locales/es/listViews.json
  • ui/src/locales/fr/approvalsView.json
  • ui/src/locales/fr/containerComponents.json
  • ui/src/locales/fr/listViews.json
  • ui/src/locales/it/approvalsView.json
  • ui/src/locales/it/containerComponents.json
  • ui/src/locales/it/listViews.json
  • ui/src/locales/ja/approvalsView.json
  • ui/src/locales/ja/containerComponents.json
  • ui/src/locales/ja/listViews.json
  • ui/src/locales/ko/approvalsView.json
  • ui/src/locales/ko/containerComponents.json
  • ui/src/locales/ko/listViews.json
  • ui/src/locales/nl/approvalsView.json
  • ui/src/locales/nl/containerComponents.json
  • ui/src/locales/nl/listViews.json
  • ui/src/locales/pl/approvalsView.json
  • ui/src/locales/pl/containerComponents.json
  • ui/src/locales/pl/listViews.json
  • ui/src/locales/pt-BR/approvalsView.json
  • ui/src/locales/pt-BR/containerComponents.json
  • ui/src/locales/pt-BR/listViews.json
  • ui/src/locales/ru/approvalsView.json
  • ui/src/locales/ru/containerComponents.json
  • ui/src/locales/ru/listViews.json
  • ui/src/locales/tr/approvalsView.json
  • ui/src/locales/tr/containerComponents.json
  • ui/src/locales/tr/listViews.json
  • ui/src/locales/uk/approvalsView.json
  • ui/src/locales/uk/containerComponents.json
  • ui/src/locales/uk/listViews.json
  • ui/src/locales/vi/approvalsView.json
  • ui/src/locales/vi/containerComponents.json
  • ui/src/locales/vi/listViews.json
  • ui/src/locales/zh-CN/approvalsView.json
  • ui/src/locales/zh-CN/containerComponents.json
  • ui/src/locales/zh-CN/listViews.json
  • ui/src/locales/zh-TW/approvalsView.json
  • ui/src/locales/zh-TW/containerComponents.json
  • ui/src/locales/zh-TW/listViews.json
  • ui/src/services/approval.ts
  • ui/src/types/container.d.ts
  • ui/src/views/ApprovalsView.vue
  • ui/src/views/AuditView.vue
  • ui/tests/composables/useUpdateStatus.spec.ts
  • ui/tests/helpers/audit-actions.ts
  • ui/tests/views/ApprovalsView.spec.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

… critical or high findings

A pending update that fixes at least one critical or high vulnerability ID
of the running image, and adds no new critical, now skips the maturity,
snooze and maintenance window holds for containers that opt in with
dd.security.fastlane=true or DD_SECURITY_FASTLANE=true.

dd.action.exclude, thresholds, approval, skip and reject entries and digest
pinning still apply. Fast-laned auto updates write a security-fast-lane
audit entry, the container carries a securityFastLane object with the fixed
IDs, approval rows are marked, and the UI shows a Security fast lane row.
The scheduled scan scans each pending candidate of an opted-in container
once so held updates have the evidence they need.
…te scans

Candidate scans now run against repo@digest instead of the mutable tag,
stamp only that digest, and the fast lane requires positive digest matches
for both the running and candidate scans. Scans record their full
critical/high ID sets before the stored list is cut off, any scan carrying
an error is rejected whatever its status, and a candidate scan older than
the running scan (or from another scanner) is rescanned once per candidate
digest and running scan instead of being compared. The scan-gate exception
for a blocked running image is removed.
…e fast lane

The running image is now scanned as repo@digest (scheduled and on-demand)
instead of by the mutable tag, and a shared isImmutableDigest check
(sha256 plus 64 lowercase hex) gates both scan paths and the evaluator for
the running and candidate digests, so a registry that falls back to the tag
as the digest never qualifies. Containers pending the same candidate digest
now share one candidate scan, reused across batches only where it is
comparable with each container's running scan.
…ulled digest

Every scan now records the reference it actually scanned, and the fast lane
only accepts running and candidate scans whose reference is pinned to the
digest being claimed, so tag scans stamped with a digest (including digest
cache copies) are never evidence. Bulk scans pin to the running digest like
the scheduled and on-demand paths, and the digest cache no longer serves a
tag scan for an immutable digest.

A fast-laned update pulls by tag, so after the pull the digest that arrived
must equal the candidate digest that qualified. Otherwise the install is
aborted before anything is recreated and a security-fast-lane audit entry
records the mismatch. Docker and Docker Compose share the guarded path.
…ll guard

For a multi-arch tag the candidate digest is the per-platform manifest the
registry picked from the list, while a pull by tag records the list's
digest locally, so the pulled-digest guard rejected nearly every multi-arch
image. The registry now also records the list digest (Docker-Content-Digest
of the list, validated as a sha256 digest) as result.indexDigest, set
together with result.digest at discovery so a stale index never pairs with a
new platform digest. The guard accepts either digest and still aborts on
anything else.
@scttbnsn
scttbnsn force-pushed the feat/v1.9-security-fast-lane branch from 4620e72 to bc45a5a Compare November 19, 2026 13:34
@scttbnsn
scttbnsn merged commit 31ba9ed into dev/v1.9 Nov 19, 2026
33 checks passed
@scttbnsn
scttbnsn deleted the feat/v1.9-security-fast-lane branch November 19, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant