Skip to content

feat: land the 2026-10-22 batch into 1.8 (8 changes) - #1466

Merged
scttbnsn merged 13 commits into
dev/v1.8from
batch/v1.8-20261022-2039
Oct 23, 2026
Merged

scttbnsn merged 13 commits into
dev/v1.8from
batch/v1.8-20261022-2039

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Batched landing window for dev/v1.8: 8 changes, each squashed to one commit, CI runs once for the batch. Each change was reviewed and tested on its own branch; the combined branch passed the full local pre-push gate (coverage, lint, build) before push.

  • feat(notifications): show recent skips per trigger
  • fix(approvals): keep below-threshold candidates in the queue instead of marking them auto-applied
  • fix(ui): set the document direction for right-to-left locales
  • fix(docker): keep anonymous volumes when recreating a container
  • fix(compose): refuse to flatten an image set through a variable
  • fix(store): snapshot before migrating and refuse a database from a newer build
  • fix(webhooks): accept a static secret so Docker Hub, Quay, Harbor and ACR can call registry webhooks
  • fix(docker): recreate containers that share a namespace with an updated container
  • docs(readme): join the comparison footnotes into one blockquote (batch fix-up)
  • test: bring the webhook doc guard and route scope list up to the registry auth modes (batch fix-up)
  • test: cover the RTL direction branch and the docker recreate paths (batch fix-up)
  • fix(webhooks): verify the registry HMAC without branching on request data (batch fix-up)
  • refactor(ui): load trigger skips by offset instead of an append flag (batch fix-up)

feat(notifications): show recent skips per trigger

1.8 records why a notification was skipped, but only the container detail panel showed it. Looking at a trigger, you couldn't see what it had skipped.

  • GET /api/v1/triggers/{type}/{name}[/{agent}]/skips returns the trigger's recent skips newest first (limit default 50, max 200, offset), each with container id and name, reason code and time. read scope, 404 for an unknown trigger. It reads the existing in-memory skip store (one entry per trigger and container, reset on restart), no new storage. Registered ahead of the /:type/:name/:agent catch-all. OpenAPI and the "Why didn't I get a notification?" docs updated.
  • A skips panel in the Triggers detail panel (notification providers) and in the Notifications view for each trigger a rule uses, with readable reasons (the container panel's text), paging, and a link to the container. Strings in all 17 locales.

When the 1.7 /api/v1/notification-triggers routes are forward-ported, the skips route needs the same successor path.

fix(approvals): keep below-threshold candidates in the queue instead of marking them auto-applied

Found by the competitor research, reproduced here. With update mode auto, an action with auto=all and threshold minor ("auto-apply minor and patch, approve majors"), a major candidate never reached the approval queue: isAutoDispatchable only checked that the winning action resolved to auto, so reconcile resolved the row as auto-applied, while the action's own auto path skipped it for being below threshold. The major was silently dropped.

  • isTriggerThresholdReached in app/model/action-policy.ts makes the same isThresholdReached call (same 'all' default) as Trigger.ts, and isAutoDispatchable now requires the winning action to reach it. A below-threshold major stays pending.
  • Update eligibility reports actionPolicy.state as manual when the auto winner's threshold isn't reached, so the UI badge no longer says Auto for an update that won't auto-apply.
  • Judged on the dispatch winner, since only the highest-ranked auto action dispatches; both directions are tested. Manual and notify modes unchanged.

Failing before the fix: reconcile "keeps a major candidate pending when the auto action threshold is minor" and approval "a major below an auto action threshold of minor is queued, not auto-dispatched".

fix(ui): set the document direction for right-to-left locales

Two fixes from the competitor research.

  • Right-to-left locales. Arabic shipped, but setI18nLocale only set lang, so the page stayed left-to-right. It now sets dir too (Intl text info, with ar/he/fa/ur as fallback), at boot and on locale change. The app shell, tab bar, notification bell, detail panel and data table use logical spacing and alignment classes, the mobile sidebar slides from the correct side, and navigation chevrons flip.
  • README comparison and roadmap. The comparison was compiled 2026-08-29 and WUD has since shipped 9.0 to 9.5. Its column is updated from the release notes (RBAC, scoped tokens, hooks, 33 triggers, 25 registries; rollback, webhooks and lifecycle marked partial with notes), with new rows for orchestrator watchers, scoped API keys and one-shot mode, every cell checked against each project's docs. Dozzle goes in an "Also compared" line. A v1.9.0 "Policy depth & Ecosystem" row is added to the roadmap table. All 7 READMEs.

fix(docker): keep anonymous volumes when recreating a container

Data loss on update. Recreating a container (docker and dockercompose actions, and self-update, which all go through cloneContainer) copied the old HostConfig verbatim. An anonymous volume (an image VOLUME path with no named volume or bind, e.g. postgres run without a data mount) has no entry there, so the daemon created a fresh empty volume for the replacement and the old one, with the data, was left orphaned. Reproduced on a real engine: a marker written to /data was gone after an update.

  • Volume mounts whose destination the image declares and nothing in HostConfig covers are carried over as name:/dest[:ro] binds to the same volume, as docker compose does.
  • --mount type=volume,target=... entries with no source (Compose anonymous declarations use this shape) get their source filled from the existing volume, keeping their options.
  • Destinations are normalized everywhere (trailing slashes), so an existing dbdata:/data/ bind doesn't get a duplicate that would make create fail after the old container is gone.
  • The source inspect isn't mutated, so rollback is unchanged. Nothing removes containers with v: true, so the reused volume is never deleted.

Verified on the NAS for both the image-VOLUME and source-less --mount cases. Codex pass 1 found the normalization and source-less cases; both fixed with tests. Backported to 1.7 separately.

fix(compose): refuse to flatten an image set through a variable

Found by the whole-app research. The compose action rewrote an image set through a variable (image: ${IMAGE}, repo/app:${TAG}, ${REG}/app:${TAG:-1.0}) to a literal tag, silently breaking an env-driven setup, and never touched .env. A test pinned that behavior.

Now any compose interpolation in the service's image: ($VAR, ${VAR}, ${VAR:-d}, ${VAR-d}, ${VAR?e}, ${VAR:?e}; $$ escapes excluded) makes the update fail before any lock, backup, write or container change, with an error naming the variables and saying to update them in .env. Dry runs, preview and recreate refuse the same way. Writing the new tag back into the env file is planned for 1.9. Docs: "Images set through a variable" in the Docker Compose action page.

fix(store): snapshot before migrating and refuse a database from a newer build

The SQLite store's migration chain starts in 1.8, so this is the release to protect it.

  • Snapshot before migrating. When an existing database has pending migrations, Drydock first writes dd.sqlite.pre-migration-v<schema>-<UTC timestamp> next to it with VACUUM INTO (consistent, includes WAL content, mode 0600), keeps the newest 3, and skips fresh databases. If the snapshot can't be written (disk full, permissions) startup stops instead of migrating unprotected.
  • Refuse a database from a newer build. If the database's applied schema version is above the highest migration this build ships (a downgrade, or self-update rolling back after the new build migrated), startup exits with an error naming both versions, the path, and the two ways out (run a newer build, or restore the pre-migration snapshot).
  • Self-update rollback against a guarded old image now exits with that error in docker logs instead of running on a schema it doesn't understand; images before this change can't check, which the docs say.

Storage docs get a "Migration snapshots and downgrade protection" section; the SQLite entry in DEPRECATIONS.md mentions it.

fix(webhooks): accept a static secret so Docker Hub, Quay, Harbor and ACR can call registry webhooks

Found by the whole-app research. Registry webhooks only accepted an HMAC signature, which Docker Hub, Quay, Harbor and ACR can't produce, so five of the six payload parsers have been unreachable without a signing relay since 1.4.x.

  • Per-provider auth modes, DD_SERVER_WEBHOOK_REGISTRIES_<PROVIDER>_MODES (comma list of hmac, path, query, bearer; default hmac, so nothing changes until you opt in), with a shared DD_SERVER_WEBHOOK_STATICSECRET or per-provider ..._SECRET (16+ chars, __FILE supported). Startup rejects unknown modes and static modes with no secret.
  • New routes POST /:provider (bearer header, ?secret=, or HMAC) and POST /:provider/:secret; the bare HMAC route is unchanged. The payload must parse as the provider in the URL.
  • Secrets are compared in constant time, never logged (the one failed-auth warning masks the path and drops the query) and never echoed; a failure-only rate limiter (20 per 15 minutes per IP) sits alongside the existing one.
  • Webhook docs: per-registry setup for Docker Hub, Quay, Harbor, ACR, GHCR and ECR, plus a note that URL secrets land in registry-side logs and should be dedicated and rotatable. OpenAPI updated.

fix(docker): recreate containers that share a namespace with an updated container

Two update gaps found while confirming the anonymous-volume bug on a test host.

  • Containers that join an updated container's network namespace (network_mode: container:<name> / service:<name>) kept pointing at the old, removed container id and lost networking. Drydock now recreates those dependents after the owner updates, in dependency order, from their running image id, with one shared old-to-new id map. A failed recreate restores the original and is reported on the update's audit entry and lastError without failing the owner's update. Rollback (health monitor and manual) runs the same pass against the restored owner. AutoRemove dependents are refused up front.
  • Services whose image is defined in a file pulled in by a compose include: were never updated. Included files are now resolved and placed right after their including file and before later override files, so the override still wins when both set the image.

Builds on the anonymous-volume fix, so recreated dependents keep their anonymous volumes too.

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 22, 2026 11:44pm UTC
drydockdemo-website Ready Ready Preview Oct 22, 2026 11:44pm UTC

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 106 files, which is 6 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 09632d7 and f1432e8.

⛔ Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing: 106
  • DEPRECATIONS.md
  • README.de.md
  • README.es.md
  • README.fr.md
  • README.md
  • README.pl.md
  • README.pt-BR.md
  • README.zh-CN.md
  • app/api/backup.test.ts
  • app/api/backup.ts
  • app/api/component.test.ts
  • app/api/component.ts
  • app/api/openapi.test.ts
  • app/api/openapi/index.ts
  • app/api/openapi/paths/index.test.ts
  • app/api/openapi/paths/index.ts
  • app/api/openapi/paths/triggers.test.ts
  • app/api/openapi/paths/triggers.ts
  • app/api/openapi/schemas.ts
  • app/api/route-scope-completeness.test.ts
  • app/api/trigger-skips.test.ts
  • app/api/trigger-skips.ts
  • app/api/trigger.test.ts
  • app/api/trigger.ts
  • app/api/webhooks/registry-auth.test.ts
  • app/api/webhooks/registry-auth.ts
  • app/api/webhooks/registry.e2e.test.ts
  • app/api/webhooks/registry.test.ts
  • app/api/webhooks/registry.ts
  • app/approvals/reconcile.test.ts
  • app/configuration/index.test.ts
  • app/configuration/index.ts
  • app/main.test.ts
  • app/main.ts
  • app/model/action-policy.ts
  • app/model/approval.test.ts
  • app/model/approval.ts
  • app/model/update-eligibility.test.ts
  • app/model/update-eligibility.ts
  • app/store/db/migrations.test.ts
  • app/store/db/migrations.ts
  • app/store/db/pre-migration.test.ts
  • app/store/db/pre-migration.ts
  • app/store/index.migration-safety.test.ts
  • app/store/index.test.ts
  • app/store/index.ts
  • app/triggers/notification-skips.test.ts
  • app/triggers/notification-skips.ts
  • app/triggers/providers/docker/ContainerUpdateExecutor.test.ts
  • app/triggers/providers/docker/ContainerUpdateExecutor.ts
  • app/triggers/providers/docker/Docker.test.ts
  • app/triggers/providers/docker/Docker.ts
  • app/triggers/providers/docker/HealthMonitor.test.ts
  • app/triggers/providers/docker/HealthMonitor.ts
  • app/triggers/providers/docker/SharedNamespaceDependents.test.ts
  • app/triggers/providers/docker/SharedNamespaceDependents.ts
  • app/triggers/providers/dockercompose/ComposeIncludes.test.ts
  • app/triggers/providers/dockercompose/ComposeIncludes.ts
  • app/triggers/providers/dockercompose/Dockercompose.compose-exec-and-hooks.test.ts
  • app/triggers/providers/dockercompose/Dockercompose.map-and-process-compose.test.ts
  • app/triggers/providers/dockercompose/Dockercompose.test.ts
  • app/triggers/providers/dockercompose/Dockercompose.ts
  • content/docs/current/configuration/storage/index.mdx
  • content/docs/current/configuration/triggers/docker-compose/index.mdx
  • content/docs/current/configuration/triggers/index.mdx
  • content/docs/current/configuration/webhooks/index.mdx
  • ui/src/boot/i18n.ts
  • ui/src/components/AppTabBar.vue
  • ui/src/components/DataTable.vue
  • ui/src/components/DetailPanel.vue
  • ui/src/components/NotificationBell.vue
  • ui/src/components/TriggerSkipsPanel.vue
  • ui/src/layouts/AppLayout.vue
  • ui/src/locales/ar/listViews.json
  • ui/src/locales/de/listViews.json
  • ui/src/locales/en/listViews.json
  • ui/src/locales/es/listViews.json
  • ui/src/locales/fr/listViews.json
  • ui/src/locales/it/listViews.json
  • ui/src/locales/ja/listViews.json
  • ui/src/locales/ko/listViews.json
  • ui/src/locales/nl/listViews.json
  • ui/src/locales/pl/listViews.json
  • ui/src/locales/pt-BR/listViews.json
  • ui/src/locales/ru/listViews.json
  • ui/src/locales/tr/listViews.json
  • ui/src/locales/uk/listViews.json
  • ui/src/locales/vi/listViews.json
  • ui/src/locales/zh-CN/listViews.json
  • ui/src/locales/zh-TW/listViews.json
  • ui/src/services/trigger.ts
  • ui/src/types/api.d.ts
  • ui/src/views/NotificationsView.vue
  • ui/src/views/TriggersView.vue
  • ui/tests/boot/i18n.spec.ts
  • ui/tests/components/AppTabBar.spec.ts
  • ui/tests/components/DataTable.spec.ts
  • ui/tests/components/DetailPanel.spec.ts
  • ui/tests/components/NotificationBell.spec.ts
  • ui/tests/components/TriggerSkipsPanel.spec.ts
  • ui/tests/helpers/data-view-stubs.ts
  • ui/tests/layouts/AppLayout.spec.ts
  • ui/tests/layouts/rtl-logical-classes.spec.ts
  • ui/tests/services/trigger.spec.ts
  • ui/tests/views/NotificationsView.spec.ts
  • ui/tests/views/TriggersView.skips.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

Comment @coderabbitai help to get the list of available commands.

Comment thread app/api/webhooks/registry-auth.ts Fixed
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…data

The verifier already returns invalid for a missing or empty signature, so
run it whenever hmac is an allowed mode and track whether a signature was
sent separately from the match result.
The Show more button called load(true) from the template, which static
analysis can't see, so the append conditionals read as constant. Pass the
offset instead and keep the load-more handler in script.
@scttbnsn
scttbnsn merged commit e48e453 into dev/v1.8 Oct 23, 2026
60 of 61 checks passed
@scttbnsn
scttbnsn deleted the batch/v1.8-20261022-2039 branch October 23, 2026 00:10

This branch was successfully deployed

2 active deployments
Preview – drydock-website — f1432e83 Deployed Oct 22, 2026 by vercel[bot]
Preview – drydockdemo-website — f1432e83 Deployed Oct 22, 2026 by vercel[bot]
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.

2 participants