github CodesWhat/drydock v1.9.0-rc.3

pre-release43 minutes ago

v1.9.0-rc.3

Full Changelog: v1.9.0-rc.2...v1.9.0-rc.3

[1.9.0-rc.3] - 2026-11-30

Added

  • Roles for signed-in users (RBAC). Every person now holds viewer, operator or admin, and the server enforces it on every /api/v1 route through the same scope registry API keys use. Viewers read everything and keep their own preferences and two-factor setup. Operators can also watch, update, roll back, start, stop and restart, decide approvals and fire triggers. Admin covers everything else. Set DD_AUTH_BASIC_<name>_ROLE per Basic user and DD_ANONYMOUS_AUTH_ROLE for anonymous access. Anything unset is admin, so existing installs don't change. Roles are resolved per request, so a demotion applies to live sessions after a restart. An invalid role fails closed, and startup refuses a configuration where nobody is admin. Start, stop and restart move to a new containers:control API key scope, which admin keys already imply. OpenAPI operations now carry x-drydock-min-role. OIDC users stay admin until group mapping ships. The API key review after a recovery-code sign-in applies only to roles that can manage keys (admin), so a viewer or operator isn't held on a page they can't open.
  • OIDC group-to-role mapping. DD_AUTH_OIDC_{auth_name}_ADMINGROUP, _OPERATORGROUP, _VIEWERGROUP and _DEFAULTROLE map identity-provider groups to the viewer, operator and admin roles. The highest matching role wins, an unmatched user gets DEFAULTROLE (viewer when groups are mapped, otherwise admin), and none refuses the login. The role is stored in the session at login and worked out on every bearer request. OIDC sessions from before a mapping was set on their provider are signed out so they can't keep admin. Each session records the provider that signed it in, so a provider without a mapping keeps its sessions while another one maps groups, and a pre-1.9 session that never recorded a provider is signed out once any provider maps groups.
  • RBAC audit trail — audit entries now record the role the actor held (actorRole, also a column in the audit export). A request refused for lack of a role or scope writes an auth-denied audit entry (throttled to one per actor and route per minute) and increments drydock_authz_denied_total{scope,role}. The Roles docs page, audit API docs and monitoring docs cover it.
  • UI: controls your role can't use are now hidden, including the container side panel, full-page view, row menu, dashboard and security update buttons. A viewer sees no update, rollback, scan, snooze, approve or reject buttons and no Settings entry, an operator keeps those but not Settings, and the user menu shows your role. GET /auth/user now returns role and scopes, and a role-denied 403 shows a "Not allowed" toast.
  • Audit log: settings updates, notification rule edits, notification outbox retry/delete, update-operation cancels and agent key add/revoke/rotate now write audit rows, and a route inventory test fails when any new POST/PUT/PATCH/DELETE endpoint has neither an audit row nor a justified exemption.
  • Container state alerts (stopped, exited, OOM killed, restart loop) now appear in the audit log and can show in the notification bell, and the notification editor shows translated names and descriptions for them.
  • OIDC: new DD_AUTH_OIDC_{name}_IDTOKENSIGNEDALG option sets id_token_signed_response_alg so IdPs that sign ID tokens with ES256 (or other non-RS256 algorithms) can log in. Validated against a JOSE allowlist; default behaviour is unchanged. Idea from WUD.
  • OIDC: new opt-in DD_AUTH_OIDC_{name}_REQUIREEMAILVERIFIED=true denies sign-in when an email or domain allowlist is set and the IdP sends no email_verified claim. Default is unchanged (a missing claim is still accepted).
  • Four new registry providers: Elastic (docker.elastic.co), Linode, Scaleway (scw.cloud) and self-hosted ProGet. Each matches only its own hosts (no suffix or lookalike spoofing), supports anonymous bearer and credentialed auth, and masks secrets. Elastic, Linode and Scaleway are enabled anonymously by default, so registries go from 23 to 27.
  • Native notification providers for PagerDuty (Events API v2), Opsgenie, Signal (signal-cli-rest-api), Zulip and Uptime Kuma push monitors, configured with DD_NOTIFICATION_{PAGERDUTY,OPSGENIE,SIGNAL,ZULIP,UPTIMEKUMA}_*. Each supports single and batch templates, masks its secrets in configuration output, and uses the outbound HTTP timeout.
  • Docker watchers can reach a remote host over SSH with DD_WATCHER_<name>_PROTOCOL=ssh (runs docker system dial-stdio on the host). It needs SSHUSER, a pinned SSHHOSTKEY SHA-256 fingerprint, and a key file, agent or password. A host key mismatch refuses the connection. Requirements are documented on the watchers page, and the SSH password and key passphrase are redacted in debug dumps and masked in GET /api/v1/watchers.
  • Six new native notification providers: Bark, Prowl, WhatsApp (Cloud API), XMPP, AMQP (RabbitMQ) and NATS, configured with DD_NOTIFICATION_<TYPE>_<NAME>_*. Each has outbound timeouts where HTTP is used, batch and single templates, secret masking in config output and debug dumps, and a docs page under Actions & Notifications. AMQP listens for broker-side channel errors, so a refused assertExchange logs a warning instead of stopping Drydock, and XMPP stops its client after a failed send so it doesn't keep reconnecting.
  • Registries: outbound HTTP(S) proxy support. Set DD_REGISTRY_{type}_{name}_PROXY per registry, or DD_HTTPS_PROXY / DD_HTTP_PROXY / DD_NO_PROXY globally (falling back to the standard HTTPS_PROXY / HTTP_PROXY / NO_PROXY, then an http(s) ALL_PROXY). A proxy that never answers CONNECT fails the request after the registry request timeout. HTTPS registries go through an HTTP CONNECT tunnel, so authenticating proxies work with the registry's CA, mTLS and insecure settings intact. Proxy credentials are masked in the registration log and API config output.
  • Sub-path hosting (DD_SERVER_BASEPATH) — set DD_SERVER_BASEPATH=/drydock to serve the UI, API, SSE/WebSocket streams, session cookie and OIDC callback under a sub-path behind a reverse proxy; works whether the proxy forwards or strips the prefix. Nginx and Traefik examples are in the server configuration docs. (Discussion #1524)
  • Required upgrade stops: dd.tag.stops=27,28,29 (or an imgset TAG_STOPS) keeps updates from jumping past the next stop the running version hasn't reached, so Nextcloud can go one major at a time and GitLab through its required versions. Composes with dd.tag.ceiling (#1496). An imgset TAG_STOPS no longer fails watcher validation.

Changed

  • Website: the homepage comparison table now compares Drydock with WUD, Arcane and Portainer (Diun and Watchtower leave the homepage; their /compare pages stay, and the Watchtower page doubles as a migration guide). It adds approval-queue, maintenance-window, audit-log, Swarm/Kubernetes/Nomad and one-shot CI rows. The trigger count shown on the site and docs now matches the README (26).
  • Website: archived docs versions (v1.3 to v1.8) now emit JSON-LD marked as archived (creativeWorkStatus: "Archived" plus an isPartOf pointing at the versioned docs root), while the current docs keep unversioned-status markup.
  • Internal cleanup: one shared getErrorMessage (the docker-helpers copy is gone), the session-lock waits in basic auth and OIDC now use abortable sleep, and the demo app no longer registers DELETE /api/v1/icons/cache twice.
  • Manual trigger runs (POST /api/v1/actions/..., /notification-triggers/..., the legacy /triggers/... and /containers/:id/triggers/...) are now capped at 60 per minute per caller and answer 429 past that, on top of the outer API limit.

Fixed

  • Synced preferences no longer lose an edit to a replayed write. PATCH /api/v1/preferences now takes the document revision and answers 409 PREFERENCES_REVISION_STALE when it is behind. This covers a write that committed but whose response was lost, followed by an edit on another device. The UI re-fetches, merges by section and retries. An edit made before the first fetch finished keeps its local value. GET and PATCH responses carry the new revision field, and omitting it on PATCH keeps the old unconditional write.
  • Security fast lane: a replica whose running scan is newer than the remembered candidate scan now gets its own fresh candidate scan instead of being marked attempted and left waiting for its next running-scan change.
  • Image pruning after a digest update no longer removes the previous image when a retained rollback backup records that digest, so the rollback no longer fails on a missing image.
  • Auto-rollback health monitoring no longer logs "container is healthy" at the end of its window when every inspect failed or the healthcheck was still starting. The log now reports the real outcome (inspect failed, still starting, healthy, or never reported a status).
  • Portwing agents: long Docker operations (stop/restart with a long t, wait, image load, archive upload, prune) no longer hit the fixed 30 s request cap when the agent advertises dd:request-timeout. Drydock sends a per-request timeout hint and waits hint + 5 s, maps the agent's request_timeout error (and a Standard 504 with X-Portwing-Code: request_timeout) to a typed error whose message says the operation may still have completed, and sends dd:cancel from Edge request timeouts and aborts when the agent advertises it.
  • Registries: manifests whose body omits mediaType no longer fail with "no manifest found". The type is inferred from the response Content-Type, then from the body shape (manifests[] is an index, config plus layers is a single manifest).
  • Compose file updates keep the file's mode and owner. Drydock now copies permissions and ownership onto the temp file before the atomic rename, and onto the .back copy. A chown failure (non-root) logs a warning and doesn't block the update.
  • Recreating a container now reconciles its Healthcheck against the new image field by field. A healthcheck inherited from the old image follows the new image (or is dropped if the new image has none), while fields you set yourself, including an explicit NONE, are kept. Rollback restores the old image's default the same way.

Security

  • The trigger run routes (/api/v1/triggers, /api/v1/actions and /api/v1/notification-triggers, local and agent-qualified) no longer run actions on a container described in the request body. command and the CI dispatch providers (githubdispatch, gitlabpipeline) now take only the id from the body and run on the stored container, returning 404 when it's unknown and 409 when the agent doesn't match. The agent-side single and batch routes re-read their own store the same way. A notification test-fire keeps a bounded simulated container: labels and other unknown keys are dropped and strings are capped at 2048 characters. Hardening ported from WUD GHSA-46pm-mm9q-xv3c.
  • Agents using Ed25519 request signing now sign Portwing signature v3, which binds each request to the agent's own ID. A request captured for one agent can no longer replay on another agent that trusts the same controller key. Drydock reads the ID from /_portwing/info, confirms the agent accepts v3, pins it per agent, never falls back to v2 once pinned, and stops signing if the agent's ID changes. DD_AGENT_{name}_AUDIENCE sets the ID explicitly. Needs Portwing 1.1.0 or newer. Rolling back to 1.8 needs portwing signature-lock clear <keyID> on the agents first.

Documentation

  • The homepage comparison table now compares Drydock with WUD, Arcane and Portainer instead of WUD, Diun and Watchtower. The README update-managers table no longer has the archived Watchtower column (all translations). The site's Watchtower comparison page, footer link and compare matrix row stay.

Build maintenance

  • Release signing now pins cosign v3.0.6 for image signatures. The cosign v3.1.4 default pulled in by the installer bump wrote Docker Hub signatures that the verify step could not find (#1703).
  • CI and quality upkeep: the secrets scan ignores fake fixture keys (#1701).

Don't miss a new drydock release

NewReleases is sending notifications on new releases.