Repository navigation
chore(release): sync v1.8.0-rc.11 to main - #1550
Conversation
… without applying them (#1112) * feat(api): expose the effective configuration * feat(api): validate a candidate configuration without applying it Adds POST /api/v1/config/validate (roadmap 7.1 slice 5): runs a candidate drydock.yml document (raw YAML text or a JSON tree) through the same parse/interpolate/flatten and validateConfiguration path real startup and "config validate" already use, merged beneath the real environment so env still wins, without touching disk or constructing any component past schema validation. Response carries the error list plus a diff of which keys would change and which sections would reload versus need a restart. Scoped admin (not SESSION_ONLY, since the response carries no configuration value) and rate-limited the same as the read routes. * fix(config): keep computed config keys off CodeQL's property-injection path Three js/remote-property-injection alerts on PR #1112 traced a key derived from the request body of POST /api/v1/config/validate into a bracket-notation or Object.defineProperty write: - sources.ts's mergeConfigLayers wrote fileLayer keys into envVars and sources with plain bracket assignment. Every key ever present in fileLayer already matches ^DD_[A-Z0-9_]+$ (flatten.ts rejects anything else before a file layer is ever built), so this adds that same regex as an explicit guard right before the envVars write, and switches sources itself to a Map converted via Object.fromEntries at the end, matching the existing pattern in triggers/providers/docker/update-runtime-context.ts. - interpolate.ts's setOwnProperty used Object.defineProperty to make a literal "__proto__" YAML key round-trip as an own property (so flatten.ts's reserved-key check can still reject it) rather than silently repointing the accumulator's prototype. defineProperty itself is the flagged sink. Object.fromEntries has the same own-property behavior for a "__proto__" entry (verified: Object.fromEntries([['__proto__', 1]]) yields an own data property, prototype untouched), so interpolateMapping now accumulates into a Map and converts with Object.fromEntries instead. No behavior changes: fileLayer keys always matched the charset guard already, and the __proto__ round-trip still works the same way through Object.fromEntries.
* feat(web): add the Arcane comparison page * docs(web): narrow the Arcane rollback claim to auto-rollback
…1118) Add the missing 409/501/500 rollback failure modes, list the per-container backups and rollback routes in the endpoint overview table, and note that DD_ACTION_DOCKERCOMPOSE_*_BACKUPCOUNT works the same as the Docker variant since Docker Compose inherits its trigger configuration schema from Docker.
…h the API (#1115) * feat(config): reconcile components when the configuration reloads Adds POST /api/v1/config/reload (roadmap 7.1 slice 6): re-reads drydock.yml, validates the merged result exactly like /validate, and refuses the whole reload on any load or validation error so nothing partial is ever applied. On success, only a reloadable-section key (watcher, registry, action, notification) moves; a restart-only key (server port, store path, log settings, and other module-load-read values) is reported in diff.restart and left untouched even when it changed alongside a reloadable key in the same file. registry/reconcile.ts adds a pure diff over raw (pre-Joi) component configuration, keyed by canonical JSON so key order never produces a false change, and registry/index.ts's reconcileComponentsWithConfiguration applies it by difference: unchanged components are left running, removed or changed ones are deregistered, and added or changed ones are constructed, validated, and registered in their place. Orphan container pruning is suppressed for the pass so a reload can't be mistaken for a real watcher cycle. configuration/file/diff.ts extracts the candidate-env/diff builder config-validate.ts already had (slice 5) so /reload can reuse it without a configuration/ -> api/ dependency. configuration/index.ts gains applyConfigurationReload to move only the changed keys' env and source attribution. The whole read-validate-apply-reconcile sequence runs inside the same exclusive update-lock gate a self-update already uses, so a reload can't interleave with an in-flight update lifecycle. Every attempt writes a config-reloaded audit entry with the outcome and, when applied, the added/changed/removed/unchanged/error counts. * feat(config): watch the configuration file when DD_CONFIG_WATCH is set Adds an opt-in, debounced fs.watch on the drydock.yml discovered at boot (roadmap 7.1 slice 6, decision D2), gated by DD_CONFIG_WATCH (default false, checked in main.ts once configuration validation has passed). POST /api/v1/config/reload stays available regardless of the flag; this only automates calling it. configuration/file/watch.ts's startConfigFileWatch coalesces a burst of fs.watch events (an editor's write-then-truncate save produces more than one) into a single reloadConfiguration() call via a debounce timer, and ignores a change signal that arrives while a reload it triggered is still in flight rather than queueing it. Neither a reload that comes back refused nor one that rejects, and neither an underlying watch 'error' event, is allowed to escape as an unhandled rejection or crash the process - each is logged and left for the next change or the next manual reload. The watch handle and its debounce timer are both unref()'d so neither can hold the process open on its own. fs.watch itself is imported dynamically inside the function that starts the watch, never at module load, matching every other module under configuration/. The DD_CONFIG_WATCH gate lives in main.ts, not in watch.ts, so the watcher module stays a pure, fully-testable state machine with no env read of its own. * feat(config): report notification rules orphaned by a reload A reload that renames or removes a trigger leaves DB notification rules pointing at an id that no longer resolves. reloadConfiguration now checks every rule's trigger references against the reconciled registry state and returns them as orphanedRules (ruleId + triggerId), logging each one too; the rule itself is never deleted or rewritten. Surfaced in the reload route's response, audit details, and OpenAPI schema. * feat(api): write a configuration section through the API Adds PUT /api/v1/config/:section (roadmap 7.1 slice 7): validates the candidate section the same way /validate does, mutates the parsed drydock.yml yaml.Document in place so comments and key order survive everywhere except the replaced section, writes it atomically (temp file, fsync, chmod 0600, rename), then reloads through the slice 6 engine. Refuses with 409 for an env-sourced key, a DB-owned section, or no config file present; refuses with 400 and Joi-shaped errors for an invalid candidate. Concurrent writes serialize through a module-level promise chain. Audits config-written with the section and changed key names, never values. * fix(config): harden reload, watch, and write paths after review Six issues found in review of the config-file reload/watch/write slice: - diff.ts: an interpolated file key attributed as 'env' in configFileSources was indistinguishable from a genuinely environment-owned key, so a reload never saw it change or get removed. configuration/index.ts now exports a mutable configFileInterpolatedKeys set, kept current by applyConfigurationReload after each reload, that buildCandidateEnvAndDiff consults to tell the two apart. - watch.ts: a file-change event arriving mid-reload was dropped instead of queued, so a second edit made while a reload was in flight was silently lost. It's now queued and runs once the in-flight reload settles. - watch.ts: fs.watch(filePath) watches the inode, which write.ts's temp-file-plus-rename atomic save (and most editors) replaces on the first save, killing the watch. Now watches the file's directory and filters events to its basename. - watch.ts: watch() can throw synchronously (e.g. ENOENT); now caught, logged, and returns undefined instead of crashing startup. - write.ts: writeFileAtomically could skip the temp-file unlink cleanup when handle.writeFile/sync/close failed, since the close() finally block sat outside the unlink try/catch. Restructured so close() runs inside the outer try/catch. - registry/index.ts: buildDesiredEntriesForKind passed {} to the watcher/trigger config builders instead of the options init() actually ran with, so a reload in agent mode could reconcile in a controller-only docker.local watcher or a trigger outside the agent allow-list.
* chore(deps): update npm minor/patch () (#1083) * chore(deps): update npm minor/patch () * chore(config): match the biome schema to 2.5.12 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit 8f12c87) * chore(deps): update npm minor/patch (apps/demo) (#1084) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> (cherry picked from commit 4af335f) * chore(deps): update github-actions (#1082) * chore(deps): update github-actions * test(ci): update the harden-runner and crowdin pin assertions --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit c901689) * fix(deps): update npm minor/patch (apps/web) (#1085) * fix(deps): update npm minor/patch (apps/web) * test(web): expect posthog-js 1.426.2 * test(web): expect the sharp override at 0.35.4 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit 66c5662) * fix(deps): update npm minor/patch (ui) (#1087) * fix(deps): update npm minor/patch (ui) * refactor(ui): stop exporting the now-unused LoadUpdateModeOptions type --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit 2c524ab) * chore(deps): update npm minor/patch (e2e) (#1088) * chore(deps): update npm minor/patch (e2e) * test(e2e): expect the picomatch override at 4.0.7 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit e232d6f) * fix(deps): update npm minor/patch (app) (#1089) * fix(deps): update npm minor/patch (app) * fix(app): fix knip and dependency-pin test drift from the npm bump Stop exporting DockerScannerHardeningOptions now that nothing outside security/backends/docker.ts imports it, and update the fast-xml-parser pin assertions to the 5.11.1 override this bump installs. * test(app): expect the picomatch override at 4.0.7 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit 7d6f2d7) * fix(deps): update npm minor/patch (apps/web) (#1098) * fix(deps): update npm minor/patch (apps/web) * test(web): pin posthog-js assertion to 1.427.2 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scttbnsn <[email protected]> (cherry picked from commit 72d046a) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ication (#1119) * docs(notifications): document the debug log fields for a missed notification * docs(notifications): separate trigger skips from detection and delivery failures
* test(api): make the session-persistence and rate-limit integration tests deterministic under load Both files started their HTTP servers with `server.listen(0)`, which binds the IPv6 wildcard dual-stack. libuv sets SO_REUSEADDR on every listening socket, and that makes the kernel's ephemeral-port picker check for an exact address+port conflict only, so a wildcard listener can be handed a port another process already holds on 127.0.0.1. Both bindings then coexist and the more specific one wins every connection to 127.0.0.1, so the tests' requests answer from a foreign server. The app suite has two loopback binders, healthcheck.binary.test.ts and agent/PortwingDockerBridge.ts, which is why this only ever showed up with a second gate running: DR-57 read it as `expected 404 to be 200` on a protected route, DR-74 as an empty RateLimit header set. Binding 127.0.0.1 makes each test server the most specific match for the address the tests fetch, and an exact conflict is the one case the picker does skip. The rate-limit case also compared RateLimit-Reset across two separately timed probes. It counts whole seconds down from its window's first request, so the two read 60 and 59 whenever contention put more than a second between one pair's priming request and its probe. Freezing Date, and only Date, pins both windows without taking real timers away from the sockets; the added assertion on the reset value fails if the freeze ever stops working. * test(api): bind every test listener to loopback
* test(store): kill the compose lock and startup migration mutants * test(dockercompose): assert the failed write targets the temp file
* docs(config): document the configuration file
Adds the config-file docs page (roadmap 7.1 slice 8): the one env-tree
mapping rule, the _file secret convention, ${NAME}/${NAME:-default}
interpolation, precedence and why the environment wins, DD_CONFIG_FILE
discovery, file permissions, the restart-required table, the handful of
tuning knobs the file can't carry, the underscore/nesting ambiguity,
config validate/export, DD_CONFIG_WATCH, and the full /api/v1/config
surface (scopes, response shapes, the two write 409s, orphanedRules on
reload). Links it from the configuration index and meta.json, and notes
on the agents page that an agent reads its own file.
Regenerates apps/web's checked-in analytics route manifest for the new
page.
* test(config): pin the docs example to drydock.example.yml
Asserts the root drydock.example.yml parses, flattens and validates
through the real loadConfigFile/validateConfiguration path, and that
the fenced YAML block on the new config-file docs page is byte-identical
to it. The docs page is located by a marker comment directly above the
fence rather than a line number, so the test survives reordering the
page around it.
* test(e2e): cover GET /api/v1/config
Adds api-config.feature exercising GET /api/v1/config and
GET /api/v1/config/:section against the QA compose instance: file
presence and path, a value sourced from the file, that key's reported
source, and the 404 for an unknown section. Mounts a small
test/qa-drydock.yml fixture at /config/drydock.yml, setting the one
value (DD_SERVER_NAME) nothing else in qa-compose.yml already sets, so
the assertions distinguish a file-sourced value from an env one.
* docs: add the config file to DEPRECATIONS and the README roadmap
Notes in DEPRECATIONS.md that the config file's two trigger sections
are action: and notification:, mirroring DD_ACTION_*/DD_NOTIFICATION_*,
and that there is no trigger: section — the removed DD_TRIGGER_* prefix
cannot come back through the file. Marks "YAML config" shipped in the
README roadmap table's v1.8.0 row. Adds the docs-page CHANGELOG entry
for roadmap 7.1 slice 8.
* docs(config): describe the unsupported-key rejection as it ships
* docs(config): list DD_CONFIG_WATCH among the env-only keys
* docs(config): satisfy markdownlint on the config file page
* test(e2e): mount the config file fixture in the CI start script
* style(e2e): format the start script test
* docs(config): agents still take the secret from the environment
* fix(config): load the file layer before the config CLI can evaluate the configuration
A static import of configuration/config-cli.ts in app/index.ts reached configuration/index.ts through file/validate.ts, so the env/file merge ran before loadConfigFileIntoLayer had populated the file layer. The file reported as present but none of its values reached the runtime configuration. The CLI is now imported only when a config subcommand is requested; a test pins that the configuration singleton is not evaluated before the file layer loads. Caught by e2e api-config.feature on #1121.
* test(qa): drop the unregisterable Dex OIDC block from the QA stack
The OIDC schema only accepts an https discovery URL and the QA Dex serves http, so the DD_AUTH_OIDC_DEX_* block never registered; the registry logged the error and carried on. Now that the config file layer loads, startup validation is strict across the merged configuration and that error became fatal, which is what the Playwright QA stack hit on this PR. The docs now state the strict-once-a-file-is-present rule.
* feat(api): answer UI paths with a JSON body in headless mode * fix(api): keep API, health and metrics paths out of the UI-disabled fallback
…ons (#1130) * feat(ntfy): route topics and priorities per event and add action buttons * fix(ntfy): route digest batches by event kind and render actions with the template context
…#1129) * feat(ui): explain why a trigger is unassociated on the Actions tab * feat(ui): show a queued state for containers waiting in a grouped update * fix(api): derive the unassociated trigger reason from the real association order * refactor(api): keep the unassociated trigger types file-local * test(api): expect the unassociatedTriggers field in the container triggers response * fix(ui): read associated and unassociated triggers from one response getContainerTriggers and getUnassociatedContainerTriggers each hit GET /api/v1/containers/:id/triggers separately, so a trigger/agent/label change between the two round trips could briefly show a trigger in both the associated and unassociated lists, or neither. Add getContainerTriggersWithReasons to read both from a single response, and have useContainerTriggers's load path use it, dropping a response that arrives after the selected container has changed.
* ci: cache npm dependencies across workflow jobs * test(ci): assert each npm ci job caches its own lockfile
…ainer for rollback (#1132) * fix(docker): sanitize inherited runtime config when recreating a container for rollback DR-126: Docker.recreateContainer passed logContainer as cloneContainer's runtime-config options instead of resolving them through getCloneRuntimeConfigOptions, the way the update path does. sourceImageConfig, targetImageConfig and runtimeFieldOrigins were always undefined on rollback, so sourceImageKnown was false and the UNKNOWN-origin sanitization never dropped a runtime field the daemon materialized from the newer image (e.g. Entrypoint), cloning it verbatim onto the older image on auto-rollback and manual restore. * test(docker): prove rollback keeps only runtime fields the target image defines
… families (#1133) * fix(watcher): require an exact variant suffix match when climbing tag families * test(watcher): cover loose family matching with include filters and digit precision suffixes
…its at startup (#1135) * feat(watcher): detect Podman sockets and warn about compatibility limits at startup Roadmap 10.4, basic Podman support first slice. When a local watcher's socket is left at the schema default and that default path doesn't exist, resolveDockerSocketPath() now probes /run/podman/podman.sock (rootful) and $XDG_RUNTIME_DIR/podman/podman.sock (rootless) before falling back to the unchanged "socket not found" behavior. An explicitly configured socket or a host-configured watcher is never second-guessed. Separately, detectPodmanCompatibility() inspects the daemon's own GET /version response at watcher init and logs a one-time warning naming the Podman version and known limits (rootless networking, volume driver differences, systemd-managed containers) when the compat API identifies itself as Podman via Components or Platform.Name. isPodman/podmanVersion are recorded on the watcher for future API/UI use but not yet surfaced anywhere. Docker daemons never trigger the warning. * refactor(watcher): keep the Podman detection adapter out of Docker.ts * fix(watcher): only probe Podman sockets when none is configured and verify candidates are sockets * test(registry): mock the watcher socket explicitness lookup * fix(watcher): test the socket stat helper directly and warn about Podman once per watcher
…fecycle (#1137) * feat(mqtt): publish home assistant update progress during an install Home Assistant's mqtt update platform reads in_progress and update_percentage from the JSON object the entity's value_template renders, not from the raw state payload, so the old scalar template meant HA never saw either field and the Install button showed nothing until the update was already over. Build the whole HA update object in hass-progress.ts, publish it as the state payload's update_state key, and re-emit it verbatim from the value_template. Subscribe the mqtt trigger to updateOperationChanged so every phase transition republishes the container, and derive progress from the live operation on each publish so a missed terminal event or a restart mid-update cannot strand an entity spinning. Refs #210 * test(mqtt): cast the unmapped phase fixture at the test boundary
…discovery advertises (#1139) * fix(mqtt): publish agent container state on the topic hass discovery names The agent/<name> topic segment from #386 was only ever added to Hass.ts. Discovery advertised <topic>/agent/<agent>/<watcher>/<container> as the state_topic, latest_version_topic, json_attributes_topic and command-topic base, while Mqtt.trigger kept publishing the container payload to the unscoped <topic>/<watcher>/<container>. An agent-owned container therefore got a Home Assistant entity that was never fed and stayed on "Unknown". Both publishers now build the topic through one shared builder in topics.ts, which also owns normalizeAgentValue (previously replicated in Hass.ts). Hass keeps its existing private wrappers, so the stale-topic cleanup, the tracked previous-topic map and the per-agent discovery scoping are unchanged. Mqtt.ts gates the segment on hass.enabled as well as hass.agenttopicsegment: Hass is only constructed when hass.enabled is true, so the two agree whenever a Hass exists, and plain MQTT subscribers with no Home Assistant integration keep the topic they have always had. * test(mqtt): pin the slugged agent topic and document retained-topic cleanup * test(mqtt): pin the agent topic payload by container fields after the update_state addition
…has bind mounts or a configured file (#1140) * fix(dockercompose): contain label-sourced compose paths to known roots dd.compose.file and com.docker.compose.project.config_files were resolved with no boundary check, so a container could name any file on the host and the action would try to read and rewrite it. Those paths are now contained to the directory holding the trigger's configured FILE plus both sides of every bind mount drydock itself has. Containment only engages when there is a root to contain to: drydock running in a container with at least one bind mount, or a trigger with FILE set. A host run with neither keeps its previous behaviour. The check runs on the final path. config_files values are mapped through the bind mounts first, and a path the issue #365 mount-prefix fallback would rescue counts as inside, so foreign host layouts still resolve. A rejected label is logged at warn with the label, the raw value and the allowed roots, and the container is then handled as having no compose file rather than being swept onto the trigger's FILE, so it is skipped instead of silently updated against a different stack. * fix(dockercompose): map rescued label paths before use and tighten the traversal check The issue #365 mount-prefix fallback used to exempt an out-of-bounds label path from containment and substitute the configured path only in resolveComposeFilesForGrouping. Every other consumer still read the label path verbatim, so resolveComposeServiceContext could run docker compose against a file the container named rather than the one drydock was pointed at. The substitution now happens where the label is read, so a rescued path has already become the configured path before anything can consume it, and the grouping-level tail match is gone. The rescue compares against the compose file the trigger actually resolves to, not the raw FILE value, so a directory-form FILE whose real file is mystack/compose.yml still matches a label naming that file. Only the opt-in flag pays for resolving it up front. The containment predicate now compares whole path segments, so a directory legitimately named ..cache no longer reads as an escape while ../etc/hosts still does. The containment tests now assert observable behaviour through triggerBatch and resolveComposeServiceContext rather than the helper that computes the roots. * perf(dockercompose): resolve the default compose path once per batch triggerBatch already resolves the runtime default before grouping, but resolveComposeFilesForContainer resolved it again for every container when the mount-prefix fallback was on, repeating the filesystem probe and the directory warning per container. Thread the batch value through instead. * fix(dockercompose): keep rejected label paths visible to trigger affinity A containment-rejected label (DR-127) left getComposeFilesForContainer empty, and api/docker-trigger.ts reads an empty list as a catch-all match, so the compose trigger took over containers that named another stack and the update then failed with no compose updates applied. Seen on the QA fleet: every fleet container carries the host path of qa-compose.yml and the compose trigger is pointed at qa-action-demo-compose.yml. Affinity now gets the path the container named even when containment drops it, since affinity only compares paths and never reads them, and affinity checks no longer log the rejection on every trigger lookup. Docs describe the roots as the code builds them.
…1141) * feat(mqtt): give each watched container its own Home Assistant device Every entity drydock published hung off one shared `drydock` device, so a fleet of containers piled onto a single device page. Each container's update entity now sits on its own device: identifiers are `drydock_` plus the container's existing discovery `unique_id`, so the device id and the entity id are derived from one identity and can never drift apart. Name comes from the display name, model from the image name when there is one, and `via_device` points back at the drydock device so HA nests them underneath it. Global counts, watcher counts and watcher running status stay on the drydock device. The move needs no tombstone. The discovery config topic is a function of the state topic and the `unique_id` a function of the container identity key; neither reads the device block. HA therefore sees a discovery update for the entity it already has, re-attaches it to the new device, and keeps the entity id and its history. Publishing an empty retained payload first would delete the entity we are trying to move. The update entity is published unnamed once it has its own device. HA sets has_entity_name on discovered entities and renders them as "<device name> <entity name>", so leaving the display name on both would show every container as "nginx nginx"; a null name is HA's marker for the device's main feature and renders as "nginx" on its own. DD_NOTIFICATION_MQTT_<name>_HASS_DEVICEPERCONTAINER=false restores the pre-v1.8 payload byte for byte, pinned by a test against the old fixture. Refs #210 * docs(mqtt): say when existing entities move to their container device
…flag (#1142) With Home Assistant off, `Mqtt.trigger` only inserted the `agent/<name>` topic segment when hass.agenttopicsegment was set, which required hass.enabled. Two agents both running a watcher named `local` published container `nginx` to the same `<topic>/local/nginx`, overwriting each other's retained state. Add a top-level `agenttopicsegment` flag (default false) that scopes plain MQTT topics per agent independent of Home Assistant. Turning it on also forces hass.agenttopicsegment on, since Hass.ts reads that field directly and the two must never disagree about the state_topic Home Assistant discovery names (#386, DR-129). Replaces isHassAgentTopicSegmentEnabled with isAgentTopicSegmentEnabled.
…irst, and add dependency-group update (#1143) * feat(ui): add dependency graph view helpers and shared composable Pure adjacency/traversal helpers over the API's DependencyGraph (dependency-graph-view.ts), a child-before-parent stale-update guard (dependency-update-guard.ts), and a module-singleton composable (useDependencyGraph.ts) that loads and shares the graph across every consumer. Backs the container dependency hierarchy view and the dependency-group update warning (roadmap 6.1, #219). Adds containerComponents.dependencyGraph.* i18n keys to en and every other supported locale. * docs(ui): describe the dependency view and the child-before-parent warning * feat(ui): add dependency rows and child-before-parent update guard (#219) Adds a collapsible dependency row under any container with a dependency or dependent count, listing its direct parents/children and a cycle badge, with an "Update dependency group" action wired to the already tested confirmDependencyGroupUpdate composable call. The per-row Update and Force Update confirmations now warn when a transitive parent has its own pending update, using findStaleParents/formatStaleParentNames from the dependency-update-guard util, and switch the accept label to "Update anyway" when they do. ConfirmDialog's body now preserves newlines so the multi-line warning renders as a list instead of one run-on line. The stack "Update All" button is unchanged - it has no confirm dialog today and this warning only applies to the single-container path. * test(ui): cover the unmapped target and overflow branches of the stale-parent guard * fix(ui): reload the dependency graph after every successful container list load CodeRabbit on #1143: the graph loaded only on mount, so dependency rows and the child-before-parent guard could read edges from before a recheck, an SSE refresh, a delete or a group update. Also covers the displayName fallback in the dependency row and describes the chevron for both relationship directions in the docs. * test(ui): cover edge-only dependency nodes and the stale-parent accept path
…1144) * feat(ui): add the shared container selection model * feat(ui): add per-column header slots to DataTable * feat(ui): add the bulk update planner and confirm formatter * feat(ui): add the selective bulk update action Add confirmBulkUpdate to useContainerActions, dispatching a BulkUpdatePlan through the same head-tracked apiUpdateContainers flow as the dependency-group bulk update (roadmap 6.1.1). * feat(ui): add selective bulk update strings and docs * feat(ui): add checkbox selection and the update-selected bar * style(ui): drop em dashes from the selection comments * test(e2e): cover selecting rows and cancelling the bulk update confirm * fix(ui): select in card view, size the icon column, and count parents on the bulk confirm Card mode had no way to select a container for the bulk-update bar: the checkbox only rendered in the table's icon column, bypassed by the hand-authored #card slot. Add the same checkbox to the card header. The icon column stayed at its pre-checkbox width (56px), so the new checkbox clipped against the column edge. Widen it to 80px to fit the 32px icon, its padding, and the checkbox with its margin. acceptWithParents was labeled with the dispatch count instead of the number of parents actually being added, so accepting a plan with (say) 5 dispatched containers and 1 stale parent read "Add 5 parents". Pass plan.staleParents.length instead. Add singular forms to the bulk-update confirm strings across all 17 locales and reword staleParentsHeading to describe what happens on accept rather than just the dependency relationship. * fix(ui): keep blocked and hidden parents out of the bulk plan and abort on in-flight targets * fix(ui): keep the icon column at 56px and loosen the bulk confirm assertion * fix(ui): fix bulk-update soft parents, stack count, and header wording Fold soft-blocker reasons into softOverrides for stale parents accepted via the "update the stale parents too" dispatch, not just for directly selected soft rows. Wire groupKeyForContainer from ContainersView's getEffectiveContainerGroup through to ContainerSelectionBar so stackCount reflects real stack membership instead of always reading 0. Drop "selected" from the bulk-update confirm header across all 17 locales since {count} is the number that will actually update, not the number selected. Add an e2e count precondition before checking the second selection checkbox.
Refresh vulnerable dependencies across the backend, frontend, and website. Preserve CSV compatibility and enforce patched dependency ranges with regression tests.
* feat(api): add the image inventory and prune estimate helpers * feat(api): resolve image hosts from the watcher registry * feat(ui): add the images service * feat(ui): add the images view preferences and the image-prune audit action * feat(ui): add the images page strings * docs(api): describe the images routes in the OpenAPI spec * feat(api): add the images list, prune preview and prune routes * feat(api): mount the images routes and list every host in the inventory response * docs: describe the Images page and the image prune endpoints * feat(ui): add the Images page with prune actions * test(e2e): cover the Images page and cancelling a prune * feat(ui): register the Images page route, nav entry and icon * style: drop em dashes from the images docs and strings * fix(images): finish inventory estimates and host identity fixes * fix(deps): patch Artillery CSV parsing for the current advisory * test(deps): verify the CSV parser resolved by Artillery * fix(images): register the images documentation route * test(images): align router mocks and browser filter controls * fix(images): distinguish preview timeouts from running prunes
…epmerge advisory (#1507)
…g builds (#1509) * ci(vercel): only build site and demo previews when their inputs change * ci(vercel): leave CHANGELOG.md out of the site preview inputs Nearly every PR adds a changelog line, so counting it previewed the site on almost every push. Production still builds the changelog page. * ci(vercel): deploy only main and opted-in branches instead of skipping builds Vercel counts a build cancelled by ignoreCommand as a deployment against the daily cap, so the ignore step saved minutes but not quota. Turn git deployments off for every branch except main and branches named -web- (site) or -demo- (demo), and drop the ignore script.
…1510) Fixes #1499. When a container's current tag didn't match dd.tag.include, recovery mode treated every tag matching the include regex as greater than the current one, so the highest matching tag won even when it was far below the running version (nextcloud 30.0.17 with include ^27 was offered 27.1.11). Recovery still lets a container move into the include family, but a candidate now has to be strictly greater than the current version on the numeric core of the transformed tags. Equal cores and tags with no numeric shape are not offered, and the greater counter in the debug log is no longer reported as skipped.
…lips between digest and tag (#1511) Fixes #1500. The candidate ref is digest-first, so a watch cycle where the digest lookup failed (a registry 429) produced a tag ref, the reconciler superseded the digest row, and the next digest cycle was refused because the resolved row for that ref still occupied the unique (container, ref) pair. A tag update is now identified by its target tag, so a ref that only changes form keeps its open row. A row the system resolved is reopened as a fresh pending row instead of blocking its candidate, while approved and rejected rows still stand.
… out of memory (#1513) * feat(security): make the scanner worker memory limit configurable The scanner worker memory limit was hardcoded at 512 MiB, so Grype could be OOM-killed on large images and the only symptom was 'exited with status 137' with no hint. DD_SECURITY_WORKER_MEMORY now sets the limit (integer with optional b/k/m/g suffix, minimum 6m, default 512m) and is passed through the hardening options. A 137 exit now inspects the worker before removal and reports an OOM kill, or 'most likely out of memory', with the configured limit and the setting name. Docs and changelog updated, and the docs now note that scan errors follow DD_SECURITY_AVAILABILITY_POLICY. Refs #1281 * fix(security): raise the default scanner worker memory to 1 GiB Profiling Grype under rc.8 on Colima: postgres:16 passed at 384 MiB, node:22 needed 768 MiB and nextcloud:30 about 900 MiB, so the old 512 MiB default OOM-killed common large images with exit 137. Refs #1281 * fix(security): make the Grype output cap configurable and stop parsing below it Grype's JSON for large images (nextcloud:30 is about 60 MB) overran the hardcoded 50 MiB capture and 20 MiB parse limits. DD_SECURITY_GRYPE_MAXOUTPUTBYTES now sets one limit for both capture and parse (default 128 MB, 1 MB to 1 GB like Trivy), and the overflow errors name it. Refs #1281 * refactor(security): keep the Grype output env var name module-private * test(security): cover the MiB formatting of the worker memory limit
…d image store (#1512) Fixes #1506. The containerd store reports name@digest in RepoDigests for every named image, local or pulled (moby collectRepoTagsAndDigests), so RepoDigests cannot tell them apart. On Engine API 1.53+ inspect carries Identity: a non-empty Pull means pulled, an Identity without Pull (Build or Signature only) means local, and no Identity on a containerd-store image (Descriptor present) means never pulled. Older APIs and the classic store keep the empty-RepoDigests rule.
…dates (#1514) Fixes #1501. The process that starts a self-update doesn't survive it, so emitTerminalLifecycleEvent skips self-update operations and nobody announced the result. The finalize route now emits update-applied or update-failed through the normal lifecycle path once it moves the operation into its terminal state, with selfUpdate set so templates can tell it apart. Already-terminal replays return before that point, so a repeated finalize or a restart doesn't announce it again.
* chore(release): prepare v1.8.0-rc.9 * fix(docker): move the base image to Node.js 24.22.2
* fix(store): keep sensitive container env redacted at rest * refactor(api): keep the redaction marker module-private * test(api): assert the bulk scan write-back explicitly * fix(store): finish #1523 cleanup reliably and reveal by container id
…#1528) fix(deps): pick up the joi and follow-redirects fixes and clear the minimatch and glob advisories
* chore(release): prepare v1.8.0-rc.10 * docs(release): clarify stored-env redaction limits
… (#1534) * fix(ui): add the missing eye icon to the icon map (#1523) The env reveal button and the login password toggle asked for 'eye', which had no entry, so icon() returned the raw name and nothing rendered. * fix(store): redact *_KEY env values and rescrub existing stores (#1523) ENCRYPTION_KEY, LITELLM_MASTER_KEY and similar stayed plaintext because the container redaction list had no KEY rule while the debug dump did. Add KEY as an exact segment plus the CLIENTKEY, SIGNINGKEY and ACCESSKEY compounds. HASH is left out: GIT_COMMIT_HASH style names are ordinary. The at-rest cleanup marker is now v2, so stores the first pass already marked clean are scrubbed once more. Startup logs how many values in how many containers were redacted, counts only.
* feat(web): build the approved website with the live demo * fix(web): restore theme before paint and clarify interaction states * test(web): enforce production-only deployment branches * fix(web): keep theme mode buttons in sync after hydration * fix(web): raise low-contrast status and docs text to AA * fix(web): restore the sponsor link heart icon * fix(web): stop table labels widening the page on mobile * feat(web): link docs directly, trim the sitemap, add llms.txt and a keyworded title Internal docs links use DOCS_ROOT (from versions[0]) instead of bouncing through the /docs redirect. /docs and unversioned deep links redirect permanently; /docs/current stays temporary. The sitemap lists only the current docs version without request-time lastmod. Docs pages get og and twitter images, the current index gets its own title, and archived pages canonicalise to the current page or noindex. The 404 emits one robots tag. Homepage title, description and JSON-LD say Docker and use the README counts. get-started also drops the 'in seconds' claim for the auth-off quick start. * fix(web): match hero and roadmap to the README and changelog The hero pill shows v1.7.0 stable first and links the v1.8 RC to its storage migration warning. The v1.7.0 roadmap row no longer claims image cleanup or static-image monitoring, image prune moves to the v1.8 RC row, v1.9.0 is added, and v2.1 to v3.1 collapse into the README's v2.0+ row. The homepage table marks Watchtower distributed agents partial to match the Watchtower page. * feat(web): render FAQ answers in the HTML and lead the Watchtower page with 'alternative' FAQ answers are always in the markup and hidden when collapsed, so aria-controls resolves and the text is in the server HTML. The Watchtower page title and lead say alternative and use only facts from the README. Adds seo-surface tests for the docs links, sitemap, llms.txt, hero and roadmap. * fix(web): keep docs redirects temporary They target the current docs version, which changes every release, so a permanent redirect would leave browsers with a stale version cached. Internal links already go straight to DOCS_ROOT. * feat(web): apply approved design review items to the redesign Header and mobile menu get icons and aria-current, the theme button shows the active family and the panel shows swatches. The comparison matrix uses status-token chips with a sticky tool column and scroll shadow, left-aligned on a full-width wrap. FAQ questions become mono h3s, eyebrows get a rule, the capability list shows all items, Get started is left-aligned with a Heads up tag, the roadmap shows emoji and an accent HEAD, and the 404 and security advisory pages get visible buttons, a docs search label, a breadcrumb and a neutral summary callout. * docs(changelog): note website redesign and docs redirect fix * fix(web): inline the theme family bootstrap as a fixed string * docs(changelog): merge the unreleased sections
…#1523) (#1538) fix(store): keep the sensitive marker on redacted env so URL credentials still reveal (#1523) A URL-only credential is stored as [REDACTED], which the classifier can't re-parse, and the storage redactor and agent normalizer dropped the marker. Persist sensitive: true on redacted entries, keep it on the agent path, and let the classifier trust it, as the 1.7 line does.
* feat(web): emit one linked JSON-LD graph per page and add a /security index Shared Organization, WebSite and SoftwareApplication nodes with @id references, comparison pages that describe both tools, docs TechArticle with breadcrumbs built from real page titles, and a test that builds every page type and validates the graph. Also covers the hero heading text, compare index headings and anchors, migration h2, and named AI search crawlers in robots.txt. * feat(web): use the primary accent for compare highlights and add footer and hover polish Drydock row and column in both comparison tables use the theme primary, footer icons sit in bordered 36px buttons, the ecosystem card shows a You're here pill instead of an emoji, and interactive rows and links get a short transition that respects reduced motion. Changelog also records the security.txt published in the previous commit. * feat(web): show live stars, downloads, forks and open issues in the proof band Fetched on the server through the Next data cache (hourly), issues counted with the search API so pull requests aren't included, and a failing source is left out. Replaces the static MIT stat. * feat(web): lead the homepage with monitor-first copy and an honest comparison New H1 and lede, live demo CTA, lifecycle-first features with Update Bouncer, Approval Queue and Image Backup cards, a WUD-for-Portainer comparison teaser using README matrix cells, a not-yet line and switching note, and FAQ entries for auto-updates and Docker socket access. The coverage detail moves to the stat tooltip. * fix(web): shorten comparison metadata, drop the WUD fork wording and use the security address Titles use the alternative pattern for archived or stalled tools, descriptions fit a snippet, and security.txt matches SECURITY.md. * fix(web): align the WUD, Dozzle and Diun comparisons with the README matrix WUD lists 25 registries, 33 triggers, lifecycle hooks, partial rollback and webhooks, RBAC and a one-shot mode. Dozzle v11 has update checks and auto-update. Diun's REST API is partial. Watchtower, Arcane, Komodo and Dockhand already matched. * feat(web): show the Star History chart Both themes render and the .dark class picks one. The hosted chart host is added to img-src and nothing else in the CSP changes. * test(web): compare parsed URLs and split the client-only regex
* ci(release): retry container image signing like sign-blob A transient Rekor error on the bare cosign sign failed the whole cut. Each attempt is a fresh keyless invocation; re-signing a digest only appends a signature, so a retry is safe. * docs(readme): add the codeswhat.com backlink line README half of X80-BACKLINK. Translated READMEs carry the same link. * ci: bound every external curl with a per-attempt timeout CI-9a follow-up. GET calls also retry; writes are bounded but never auto-retried so a retry can't duplicate a comment or delete. * chore(qlty): drop the http-cache-semantics triage and renew braces http-cache-semantics resolves to 4.3.0 in the only lockfile that carries it, outside the affected range, so the ignore is obsolete. braces 3.0.3 is still last affected with no fix; recheck moves to 2026-12-01. * docs(license): keep only the CodesWhat MIT license
) * fix(web): address review findings on the redesign copy and contrast Use the docker.local action id in the opt-in label example, switch the primary-coloured labels to --tx-primary for light Ayu contrast, show the coverage scope as visible text, give the WUD migration a working mounted invocation and qualify the label claim, and stop claiming Dozzle lacks rollback. * fix(ci): write retried curl responses to files and cap retry time A timed-out attempt's partial stdout was followed by the retry's full body. Write the three captured GETs to RUNNER_TEMP files, add --retry-max-time 180 to every retried request, and make the bounds test read the effective retry value and enforce both rules. * fix(web): run the migrate example through the entrypoint and describe Dozzle retention
|
Important Review skippedToo many files! This PR contains 201 files, which is 101 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.
|
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 rc.11 sync at 870bbd8: all required checks passed, the tree matches dev/v1.8, and the batch review found no release-blocking issues.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Approving the rc.11 sync at 870bbd8: all required checks passed, the tree matches dev/v1.8, and the batch review found no release-blocking issues.
Sync
dev/v1.8tomainfor v1.8.0-rc.11, carrying #1534, #1536, #1538, #1539, #1540, #1541 and #1546. Main changes: the #1523*_KEYredaction and rescrub, the URL-credential reveal fix, the missingeyeicon, the website redesign and second audit pass, and CI hardening (bounded downloads, image signing retry).Each dev PR passed its push gate and required checks, with a subagent review, and CodeRabbit findings on #1539 and #1540 were fixed in #1541. The SQLite backup and downgrade warnings stay in the release notes. The site deploys from
mainwith this merge, so its production check follows.Development source
3ac05d4dbde02b76b3299d3348044ca1e3bfe761. The sync head is a merge commit with dev's exact tree.