Repository navigation
feat: land the 2026-10-22 batch into 1.8 (12 changes) - #1465
Conversation
…ification skip reasons
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo many files! This PR contains 174 files, which is 74 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: 3
📒 Files selected for processing: 174
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❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Batched landing window for
dev/v1.8: 12 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.fix(ci): scan only the sync commit message on dev to main sync PRs
The Closing Keywords Guard builds its commit text from
git log BASE..HEAD. A dev to main sync head is made withgit commit-tree <dev tree> -p main -p dev, so its first parent is the PR base and that range walks every dev commit since the branch cut. It flagged 44 oldFixes/Closeslines on the rc.4 sync, so the guard failed on every sync and we had to read past it.When the head is a merge whose first parent is the base, the step now scans only the sync commit's own message. Every other PR keeps the full range. The title and body checks are unchanged.
Tests build both shapes in a temp repo: the sync shape ignores old dev messages, and a linear PR still scans every commit. actionlint and zizmor are clean.
perf(registry): list only newer tags on GHCR repositories that exceed the page limit
Follow-up to #1454 (REG-PERF-1). That fix continues a truncated listing from the current tag, but every check still reads the first 50 pages before getting there, about 3 minutes per container in #1453's log.
Registries now say whether they list tags in creation order. GHCR does, so once an image's listing hits the page limit, the next checks within 24 hours list only the tags after the current one: two requests for immich-machine-learning. After 24 hours the next check does a full listing again. If the tail-only pass fails or returns nothing (a re-pushed current tag such as
latestmoves to the end of GHCR's order), that call falls back to the full listing. The truncation map is per registry instance and capped at 1000 images.Registries that list alphabetically keep the full path, because a tail from the current tag there can miss a higher version that sorts earlier (v10 vs v9).
refactor(ui): delete the updateOperation prop and its store bridge
DR-89 slice 5, the last one. Slices 2 to 4 (#1445, #1446, #1448) moved every view onto the operations store, so the container's
updateOperationfield and the SSE pipeline bridge that kept it in sync are dead weight. This deletes both.updateOperationis gone from the UIContainertype and the mapper's derivation.ApiContainerInput.updateOperationstays, since the store seeds from the API payload.useContainerSsePatchPipelinelosesresolveStoreOperation,attachOperationWhenAvailable, the deferred watchers and timers, and every row write of the field. Display holds andlastUpdateFailureReasonwrites are unchanged.ContainersView.preserveTransientUiFieldsdrops the operation branch, the display hold stops injecting the field, andresolveOperationincontainer-update.tsis required.tests/architecture/updateOperationGuard.spec.tsfails on any whole-wordupdateOperationinui/srcoutside the mapper and the store, with fixtures for the optional field, bracket access and destructuring forms.Tests for the deleted bridge are removed; tests for behavior that still exists now assert on the hold or the store. Behavior is unchanged. Codex review: no runtime regressions found, ship after tightening the guard (done).
test(ui): gate toast calls outside the update lifecycle layer
DR-90. With DR-89 done, update outcomes reach the user from the operations store through
useGlobalUpdateToast. Nothing stopped a view from adding its owntoast.success()for an update again, which would bring back the second source of truth.New
tests/architecture/toastGuard.spec.ts, in the style of the other architecture guards:useToast.ts,stores/toast.ts,AppToast.vue,useGlobalUpdateToast.tsandstores/operations.ts.useToastor the toast store, must be in an allowlist with a reason and an exact count. The count can't grow, and a lower count fails until the allowlist is lowered, so it only ratchets down. Ten files are listed today; the bulk isuseContainerActions.ts(31) andDashboardView.vue(9).useGlobalUpdateToastemits (updated, cancelled, rolled back, failed, batch results) are banned in toast calls outside the lifecycle layer. Two existing uses are exempted with reasons: request rejections inContainerUpdateDialogand the bulk fallback inuseContainerActions.add, comments, and lookalikes such asconsole.error.No toast was removed: the started, queued and already-up-to-date toasts in views are request acknowledgements the global composable never sends.
ContainersView.vuedrops an unuseduseToast().Stacked on DR-89 slice 5.
test(ui): close toast guard bypasses through helpers and variables
DR-90b, follow-up to the DR-90 toast guard from its Codex pass. Two ways around the guard are now closed:
toast.x(...),toast[k](...)). Passing it as an argument, putting it in an object or array, returning it or renaming it fails, as doeshelper(useToast())or passing on a destructuredsuccessuncalled. A helper module that never importsuseToastcould otherwise emit toasts the guard never sees.useGlobalUpdateToastemits are now banned anywhere in a non-lifecycle file, not only inside toast arguments, soconst m = t('containersView.toast.updated'); toast.success(m)fails. The two existing exemptions keep their ratcheted count.No source file needed changing: nothing in
ui/srcuses either form today. Test-only, stacked on DR-90.feat(auth)!: make OIDC bearer tokens opt-in and bind them to this client
DR-10. The OIDC bearer path already verifies a token against the IdP's JWKS (or RFC 7662 introspection for opaque tokens) and binds it to this client through
aud,azporclient_id, withBEARERAUDIENCESfor a separate API audience. What it didn't have was an off switch: any OIDC provider accepted bearer tokens.bearer(DD_AUTH_OIDC_<NAME>_BEARER), defaultfalse. When it's off, aBearerheader is never verified and the request fails like any other unauthenticated one.Breaking for setups that call the API with OIDC access tokens: set
DD_AUTH_OIDC_<NAME>_BEARER=true. It goes out in an RC before 1.8 GA so testers hit it first.fix(security): pin one Trivy everywhere and show scanner versions
Found by the 1.6 to 1.8 scope audit. The image bundles Trivy 0.73.0 (
Dockerfile:4,sha256:7cced7ca..., bumped in #680), but the default Docker scanner worker (DEFAULT_TRIVY_WORKER_IMAGE) and the release SBOM step inrelease-cut.ymlstill pinned 0.72.0 (sha256:cffe3f51...). 1.6.0 said all three run the same pinned Trivy..github/tests/trivy-pin-parity.test.tsfails if the three drift apart, and Renovate gets a regex manager plus a group rule so it bumps them together.fix(ui): show maturity countdowns in lists and the dashboard, and notification skip reasons
Found by the 1.6 to 1.8 scope audit.
useNowclock per component, only running when something is held.titleattribute. It's now a visible "Last skipped" line. A per-trigger view on the Notifications page needs a new endpoint and is tracked separately.Strings in all 17 locales.
fix(config): key secret-file sources by their base name at boot and reload
CFG-1. The live-config
sourcesmap keyed secret-file entries inconsistently: a_filesetting was listed underX__FILEat boot and underXafter a reload, and the docs showedX.sourcesnow uses the base setting name at boot and on reload./config/validatecompares a_fileentry against the secret path that is actually live (configFileSecretPaths, maintained at boot and by reloads of reloadable sections only), so an unchanged_fileentry isn't reported as changed, and a restart-required setting moved to a_filestays pending after a reload publishes the new file layer. A setting the real environment owns is never tracked._fileasenv(still read-only), since the file's entry is dropped in that case.Codex passes: secret contents never reach validate output or
sources; the two P2s it found (lost pending restart, env-owned interpolated path) are fixed with regression tests.fix(store): keep a renamed local container from taking the replacement's policy
DR-147. With
watchall=true, when an update replaces a container and the renamed old container is still listed after the replacement settles (a long health gate or a failed cleanup), discovery could re-insert the old container as a second visible row under the same name. Before #1433 it could also take the replacement's retained policy.isRenamedPredecessorOfReplacementskips the old container only while that replacement is stored right now, so a rollback that removes the replacement brings the old container back into tracking.-old-<ts>rollback-name rule.Agent-owned rows are untouched. Three Codex passes; the rollback, no-override duplicate and concurrent-insert cases each have a test.
feat(approvals): notify on pending approvals and add bulk decisions
Two gaps the 1.6 to 1.8 scope audit found in the approval queue against its spec.
Pending-approval notification. The
update-pending-approvalrule existed but nothing dispatched it (the docs said so). Reconcile now emits an event when a pending row is inserted, and the trigger dispatches it through the same path asmaturity-cleared, so the rule's enabled flag, trigger selection, thresholds, templates and batching apply. One notification per ledger row: a re-seen candidate or a restart doesn't repeat it. The deep link usesDD_PUBLIC_URLwhen set. No notification when the update mode isnotifyor container actions are disabled, since approving would be refused.POST /api/v1/approvals/bulk. Approve, reject or defer up to 200 ids. The single-decision logic is now shared, so each id gets the same reservation, candidate binding, audit entry and SSE event as its single route. Approve needsX-DD-Confirm-Action: approvals-bulk-approve. Samecontainers:updatescope as single decisions. OpenAPI and API docs updated.UI. The Pending tab has row selection and Approve/Reject selected. The bulk approve confirmation lists each selected row's soft holds with the same reasons the single dialog shows, and leaves hard-blocked rows out with their blockers listed. Strings translated in all locales.
Codex pass 1 found the notify-mode notification and the missing hold disclosure; both fixed with tests.
test(e2e): cover TOTP enrollment, challenge, recovery and session invalidation
The TOTP spec's done-when included end-to-end coverage; nothing under e2e covered it. New
e2e/playwright/totp.spec.ts(7 serial tests, owntotpproject that runs after the others, with a dedicatedtotp-e2eBasic account and a throwaway key ring in the QA compose so enrollment can't end the shared admin session):Passed 7/7 twice against a locally run build. WebSocket upgrade stays covered by
totp-login-challenge.integration.test.ts.