Repository navigation
feat: land the 2026-10-22 batch into 1.8 (8 changes) - #1466
Conversation
…of marking them auto-applied
… ACR can call registry webhooks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo 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
⛔ Files ignored due to path filters: 1
📒 Files selected for processing: 106
You can disable this status message by setting the
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. Comment |
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.
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
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}]/skipsreturns the trigger's recent skips newest first (limitdefault 50, max 200,offset), each with container id and name, reason code and time.readscope, 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/:agentcatch-all. OpenAPI and the "Why didn't I get a notification?" docs updated.When the 1.7
/api/v1/notification-triggersroutes 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 withauto=alland thresholdminor("auto-apply minor and patch, approve majors"), a major candidate never reached the approval queue:isAutoDispatchableonly checked that the winning action resolved toauto, so reconcile resolved the row asauto-applied, while the action's own auto path skipped it for being below threshold. The major was silently dropped.isTriggerThresholdReachedinapp/model/action-policy.tsmakes the sameisThresholdReachedcall (same'all'default) asTrigger.ts, andisAutoDispatchablenow requires the winning action to reach it. A below-threshold major stays pending.actionPolicy.stateasmanualwhen the auto winner's threshold isn't reached, so the UI badge no longer says Auto for an update that won't auto-apply.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.
setI18nLocaleonly setlang, so the page stayed left-to-right. It now setsdirtoo (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.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 oldHostConfigverbatim. An anonymous volume (an imageVOLUMEpath 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/datawas gone after an update.HostConfigcovers are carried over asname:/dest[:ro]binds to the same volume, asdocker composedoes.--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.dbdata:/data/bind doesn't get a duplicate that would make create fail after the old container is gone.v: true, so the reused volume is never deleted.Verified on the NAS for both the image-
VOLUMEand source-less--mountcases. 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.
dd.sqlite.pre-migration-v<schema>-<UTC timestamp>next to it withVACUUM 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.docker logsinstead 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.
DD_SERVER_WEBHOOK_REGISTRIES_<PROVIDER>_MODES(comma list ofhmac,path,query,bearer; defaulthmac, so nothing changes until you opt in), with a sharedDD_SERVER_WEBHOOK_STATICSECRETor per-provider..._SECRET(16+ chars,__FILEsupported). Startup rejects unknown modes and static modes with no secret.POST /:provider(bearer header,?secret=, or HMAC) andPOST /:provider/:secret; the bare HMAC route is unchanged. The payload must parse as the provider in the URL.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.
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 andlastErrorwithout failing the owner's update. Rollback (health monitor and manual) runs the same pass against the restored owner.AutoRemovedependents are refused up front.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.