Repository navigation
chore(release): sync v1.9.0-rc.1 to main - #1660
Conversation
* fix(i18n): translate container detail tabs * test(i18n): cover every translated detail tab
* fix(approvals): preserve errors for null response bodies * fix(images): preserve errors for null response bodies
* fix(i18n): localize JSON response diagnostics * docs(i18n): clarify translation contribution workflows * test(docs): check the exact Crowdin link destination
fix(api): preserve settings and notification error responses
* docs(readme): refresh the published release candidate status * docs(contributing): align storage and pre-push guidance * docs(contributing): clarify workflow security gate conditions
* fix(i18n): translate French and Spanish approval screens * fix(i18n): complete approval translations for supported locales * fix(i18n): reuse translated dashboard widget titles
* fix(i18n): translate fleet update progress messages * fix(i18n): reuse translated preview boolean labels
* fix(i18n): localize API key failure messages * docs(changelog): keep API key fix clear of queued entries
* ci: capture bounded UI coverage resource diagnostics * fix(ci): track the sampler parent process identity * fix(ci): validate sampled Linux process states
…1290) Health gate for a disabled healthcheck, agent container update policy retention on the SQLite store, Docker Hub created-date debug wording, zlib/libexpat/OpenSSL image patches and the dependency advisories, ported from v1.7.0-rc.17. Refs issues 1284, 1280 and 1281.
…dvisories (#1291) Both advisories list the latest release as affected, so there is no version to move to. Both packages are dev-only (nodemon and artillery) and never ship in the image. Recheck by 2026-11-02.
* fix(store): skip the replacement stash when the agent replacement is stored An inventory pass or snapshot that lists a replacement flags the removal of its predecessor as replacementExpected, even when a real-time dd:container-added already stored the replacement and it inherited the update policy on insert. The unguarded stash then sat under the identity key and handed the policy to the next recreate, after the user had cleared it. deleteContainer now skips that stash for an agent-owned record when a same-identity, same-name record is still stored. The removal event keeps replacementExpected, so HA/MQTT discovery for the live replacement is untouched, and controller-local records keep the unconditional stash. Refs: #1280 * fix(store): keep a retained policy on the compose replica it came from Replicas of one compose service share the compose:project/service identity key, so after a compose down/up the policy one replica stashed could be taken by whichever replica was re-added first. A stash now records the canonical container name, and an agent-owned insert only takes an identity-key entry recorded under its own name, leaving another replica's entry for that replica. The name is persisted in a new nullable update_policy_retention_cache.container_name column (schema migration 5) and carried by the legacy store importer when present. An entry written before this change has no name. Under a compose key it is consumed and dropped, since applying it could misapply another replica's policy and dropping it only loses a policy in flight across the upgrade. Under a plain identity key the key already names the container, so it is still applied. Controller-local inserts keep the name-agnostic match that carries a policy across a compose rename. Refs: #1280 * fix(store): restore the later retained policy when both keys hold one An insert that found entries under both its identity key and its Docker id took the identity entry whenever one existed. After an agent to controller to agent move, that entry is the one the first move left behind, so it shadowed the policy the controller held when the container moved back. An expired identity entry also dropped a valid id entry. The insert still takes both entries, now discards expired ones and restores the entry stashed last, by expiresAt since every stash uses the same TTL. A tie, one delete stashing both keys, keeps the identity entry. Refs: #1280 * perf(store): skip and index the identity-sibling lookup deleteContainer ran the identity-sibling lookup on every agent removal, even for a record with no update-policy overrides, where the stash it guards is a no-op. The lookup now runs only when there is something to retain. The lookup filters on watcher and COALESCE(agent, ''), and the only index that served it was containers_watcher_status, which narrows to the watcher name (shared by every agent's local watcher) and then sorts by rowid. Schema migration 6 adds containers_watcher_agent on (watcher, COALESCE(agent, '')), which matches both terms and keeps rowid order, so the lookup on agent-owned inserts reads one watcher on one agent with no sort. Refs: #1280 * test(security): skip versionless lock entries in the September floor check The September runtime floor check split entry.version on every lockfile entry whose path matched a floored package, so a link entry (link: true, no version) failed the suite with a bare TypeError instead of a finding. Entries without a version are now skipped, and versioned entries keep the vetted-major and floor checks. The check moved into a helper so a node:test case can cover both paths against a fixture lockfile. Refs: #1280 * docs(changelog): note the retained update policy edge fixes Refs: #1280 * test(agent): cover the snapshot path of the stored-replacement stash skip A watcher snapshot that lists a replacement already stored by an earlier dd:container-added flags its predecessor's prune as replacementExpected, the same shape as the inventory pass. The test fails without the deleteContainer guard and pins that the snapshot path leaves no stash behind either. Refs: #1280 * test(store): cover a retained-policy take with no id key * fix(store): restore the most recently stashed policy when both keys hold one
…h findings (#1622) * feat(security): add an opt-in security fast lane for updates that fix 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. * fix(security): bind the fast lane to exact scanned digests and complete 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. * fix(security): require immutable digests and pin running scans for the 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. * fix(security): require digest-pinned scan references and a matching pulled 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. * fix(security): accept the manifest list digest in the fast lane install 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.
… actor (#1624) * fix(config): stop startup on an invalid watcher in env-only installs * fix(audit): keep reload-armed schedulers out of the request actor * fix(triggers): keep state alerts off action triggers * fix(watcher): fail closed on an invalid tag include or exclude regex * fix(watcher): route the tag filter error through lookupError
feat(security): show progress for long-running scans 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.
…s view (#1625) Adds the edge agent key panel on the Agents view, using the shared DataTable. Test fixtures use a fake public key marked gitleaks:allow.
… and silences (#1619) feat(notifications): alert on auth abuse and agent version mismatch, add quiet hours and silences Two new rules, auth-abuse and agent-version-mismatch, both off by default. Quiet hours (DD_ALERTS_QUIETHOURS_*) and ad-hoc silences (/api/v1/notifications/silences, audited) drop notifications for notification triggers only, count what they drop, and exempt security-alert and update-failed by default.
…ters (#1618) feat(tags): cap updates at the running major or minor and filter on running-version variables
test(api): freeze the clock in the notification silence route tests
* feat(updates): record the best candidate per update type and pick within the trigger threshold Containers now carry result.updateCandidates, the newest patch, minor and major tag measured against the running version after include/exclude, family, ceiling, transform and skip rules. The primary result is unchanged. A new trigger option, separateupdatetypes, makes a trigger whose threshold rules out the primary act on the best candidate inside it; the notification, approval item and update name that candidate. The container detail shows the candidates. * test(watcher): stub release-notes lookups in the fast-resync old-row test The post-watch release-notes enrichment does live lookups with a 5s budget, the same as the default test timeout, so a slow network timed the test out in CI.
…3 on log download (#1651) * fix(agent): map Portwing response_too_large to a typed error and a 413 on log download * refactor(agent): keep the too-large default message module-private
…#1623) * feat(watcher): watch a locally built image against its upstream base A locally built image with an explicit dd.registry.lookup.image label now looks up the declared base and reports a newer tag as a base image update (updateKind.baseImage). It is notification-only: request admission, auto dispatch, the Docker action and the Docker Compose action all refuse to run for a locally built image so a build is never replaced by the stock upstream image. Command actions are unaffected and can be wired to rebuild. * fix(watcher): skip local builds in a mixed compose batch A compose project often has one locally built service next to stock ones. triggerBatch now skips local builds with a warning and updates the rest, and only refuses when every container in the batch is a local build. * test(e2e): expect updateKindLabel in the default trigger title
#1621) The agent already runs the state alert classifier next to its Docker events, so it now ships the finished alert to the controller as dd:container-state-alert. The controller validates it, tags the container with the agent, drops anything a Drydock operation or rollback rename covers, and emits it like a local alert. Older agents send no such event and raise nothing.
Portwing agents now forward die, oom and stop events (dd:container_event on Edge, dd:container-event over Standard SSE). The controller feeds them to the same state alert tracker local watchers use, scoped per agent, so crashes, OOM kills and restart loops alert once and Drydock's own updates and rollbacks stay quiet.
…1620) * feat(watcher): add a file provider that watches a static image list DD_WATCHER_{name}_PROVIDER=file reads a YAML list of images and turns each entry into a synthetic container, so tag filters, registry auth and notification routing work unchanged. The file reloads on change and on the cron, and a bad or missing file keeps the last good list. These containers are notification-only: action triggers and the update API refuse them. * fix(api): resolve file-watcher trigger guard by resolved trigger identity
…ers (#1652) * feat(triggers): add GitHub dispatch and GitLab pipeline rebuild triggers * fix(triggers): derive the rebuild TLS opt-out from configuration
…1654) * docs(triggers): state that empty-list alert rules also run Command triggers * fix(web): prerender the site and stop per-request rendering (#1641) * fix(web): prerender every page by replacing the nonce CSP with a static header The per-request nonce made the root layout read headers(), so every docs and marketing page rendered on a function. The CSP is now served from next.config headers(), proxy.ts is gone, and pages are static or SSG. * fix(web): rate limit docs search and keep crawlers off old docs versions Archived docs versions canonicalize to the current docs (root when no counterpart) and are disallowed in robots.txt. Adds tests that every sitemap URL is a built route and every internal link on / and the docs landing resolves. * fix(web): walk src without a stat-then-read race in the CSP test (cherry picked from commit 7d6fbe8) * test(web): skip the built-site checks when .next is older than the sources
* perf(registries): share publish-date lookups per scan and stop cloning the container list in HA MQTT * style(registries): apply biome formatting
#1656) * perf(store): skip re-validating unchanged container rows and per-row operation lookups * style(store): apply biome formatting * test(api): cover the eligibility short-circuit when no operation is active
…ng agents (#1657) * fix(agent): skip Drydock version warnings and unsupported routes for Portwing agents * fix(agent): skip the agent-version-mismatch alert for Portwing agents * style(agent): apply biome formatting * refactor(agent): keep the Portwing env reveal message module-private * style(agent): apply biome formatting
…#1658) * fix(docker): send entrypoint notices to stderr so scan output stays clean * fix(api): document the skip scope on the update-policy request * docs: tidy the 1.9 changelog, add the downgrade note and correct scan and alert docs * chore(release): point renovate at dev/v1.9 and pre-stage the v1.8 docs archive * docs(changelog): note the entrypoint stderr and update-policy scope fixes
|
Important Review skippedToo many files! This PR contains 772 files, which is 672 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. Usage-priced reviews support at most 500 files.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
biggest-littlest
left a comment
There was a problem hiding this comment.
Approving the v1.9.0-rc.1 sync at efabee8: all required checks passed and the tree matches dev/v1.9.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Approving the v1.9.0-rc.1 sync at efabee8: all required checks passed and the tree matches dev/v1.9.
Sync
dev/v1.9tomainfor v1.9.0-rc.1. The tree matchesdev/v1.9exactly; the parents aremainanddev/v1.9. Release notes are the[1.9.0-rc.1]section of CHANGELOG.md.