Commit Graph
3167 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez 40e13b5f13 fix: address PR review feedback on per-backend route tests
T1 of every per-backend test file asserted 200 with the api Procfile body for a request that lacks --strip-prefix, but without the strip the upstream sees /api/v0/Procfile and python's http.server returns 404; the retry loop polled on status only and accepted web's catch-all 200 first. The assertion now expects 404, which is the right signal that the route reaches the api process. T3 was rewritten to follow T2's two-step pattern (404 without strip, then 200 with strip) so the route is proven applied before checking content. T4 of proxy-route-nginx.bats relaxes the WebSocket header assertions to allow more than one occurrence because the headers correctly appear in both the route location block and the existing location / block. Backticks in fn-traefik-host-rule and fn-traefik-route-labels are now triple-escaped so they survive the docker-args eval path that turns the labels into a docker run invocation, matching the existing convention in docker-args-process-deploy. The label-based backend test files also echo the ps:rebuild output now so future failures of that step surface in the CI logs instead of silently exiting non-zero.
2026-11-04 14:56:38 -05:00
Jose Diaz-Gonzalez 4a550fe4b9 feat: render proxy routes under openresty and add per-backend tests
Bumps the openresty sidecar to 0.12.0, which introduces the openresty.route.<n>.* label family for path-based routing. The openresty-vhosts plugin now emits route labels for non-web containers targeted by a proxy:route:set, mirroring the traefik and caddy patterns. Adds integration tests for every rendering backend (proxy-route-{nginx,traefik,caddy,openresty}.bats covering basic routing, --strip-prefix, and removal) plus per-ingress-class scheduler-k3s tests (proxy-route-k3s-{nginx,traefik}.bats covering the same three cases against a real cluster). The nginx file additionally asserts the rendered nginx config carries the WebSocket upgrade headers in each route's location block.
2026-11-04 14:56:38 -05:00
Jose Diaz-Gonzalez a4d40becd8 refactor: drop proxy-supports-routes capability trigger
The trigger was added to refuse proxy:route:set under openresty and haproxy, but the hard refusal created an ordering dependency for declarative tools and blocked users from staging routes ahead of a backend switch. Routes are now stored regardless of the active backend and silently ignored by backends that do not render them; the docs call out the inert behavior under openresty and haproxy.
2026-11-04 14:56:38 -05:00
Jose Diaz-Gonzalez ffd5248cc3 feat: route paths to non-web processes via proxy:route
Adds proxy:route:set/remove/clear/report so users can declare path-prefix routes to non-web Procfile processes without hand-writing nginx.conf.sigil. Routes are stored on the proxy plugin as a PropertyMap of path to process:port:strip, with set semantics so each invocation produces a fully-determined state and re-application is idempotent. A proxy-supports-routes capability trigger gates the command per backend - nginx-vhosts, traefik-vhosts, caddy-vhosts, and scheduler-k3s render routes today; openresty-vhosts and haproxy-vhosts refuse until their sidecar images learn a path-prefix vocabulary (tracked in dokku/openresty-docker-proxy#137 and the haproxy sidecar). Closes #8725.
2026-11-04 14:56:38 -05:00
Jose Diaz-Gonzalez 2cd558e102 Merge pull request #8700 from dokku/migrate-stack-property-to-builder-herokuish
Split stack property into per-builder properties
2026-11-04 14:42:34 -05:00
dependabot[bot] 74000a5c8d chore(deps): bump django in /tests/apps/dockerfile-release
Bumps [django](https://github.com/django/django) from 5.2.18 to 5.2.19.
- [Commits](https://github.com/django/django/compare/5.2.18...5.2.19)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 5.2.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-04 13:53:42 +00:00
dependabot[bot] 23d038a6e5 chore(deps): bump sass from 1.107.0 to 1.107.1 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.107.0 to 1.107.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.107.0...1.107.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-version: 1.107.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-03 13:53:32 +00:00
Jose Diaz-Gonzalez 59594937f9 feat: split stack property into per-builder properties
The `stack` property lived on the `buildpacks` plugin but was shared by both the herokuish and pack builders, so a value valid for one builder broke the other. Each builder now owns its own `stack` property managed via `builder-herokuish:set` and `builder-pack:set`, while `buildpacks:set-property stack` is deprecated and forwards the value to the builder detected from it; existing values migrate automatically on upgrade and changing a builder's stack clears that builder's cache.
2026-11-02 16:48:11 -05:00
Jose Diaz-Gonzalez 2737b12d94 Merge pull request #9083 from dokku/8974-caddy-vhosts-requests-are-routed-before-healthchecks-pass-on-docker-local-contrary-to-docs
Add proxy health checks from app.json readiness
2026-11-02 15:58:56 -05:00
Jose Diaz-Gonzalez f8705db525 Merge pull request #9236 from dokku/dependabot/npm_and_yarn/tests/apps/multi/sass-1.107.0
chore(deps): bump sass from 1.106.1 to 1.107.0 in /tests/apps/multi
2026-11-02 15:36:04 -05:00
dependabot[bot] 5d6b6d2bf6 chore(deps): bump sass from 1.106.1 to 1.107.0 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.106.1 to 1.107.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.106.1...1.107.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-version: 1.107.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-02 13:53:36 +00:00
dependabot[bot] 61e3a27e18 chore(deps-dev): bump heroku/heroku-buildpack-php in /tests/apps/php
Bumps [heroku/heroku-buildpack-php](https://github.com/heroku/heroku-buildpack-php) from 299 to 300.
- [Release notes](https://github.com/heroku/heroku-buildpack-php/releases)
- [Changelog](https://github.com/heroku/heroku-buildpack-php/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heroku/heroku-buildpack-php/compare/v299...v300)

---
updated-dependencies:
- dependency-name: heroku/heroku-buildpack-php
  dependency-version: '300'
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-02 13:52:27 +00:00
Jose Diaz-Gonzalez 1086de5aae test: read caddy config without exec in the container 2026-11-02 00:33:35 -05:00
Jose Diaz-Gonzalez fba0681e5b fix: avoid glob expansion of app domains
A catch-all `*` domain or a wildcard ssl hostname could be expanded into file names from the current directory when generating app urls, healthcheck `Host` headers, or the nginx ssl server names.
2026-11-02 00:33:35 -05:00
Jose Diaz-Gonzalez 06f80b1a93 fix: map caddy healthcheck headers and apply tls-internal
Caddy healthchecks now honor the `attempts` and `httpHeaders` properties of the `app.json` readiness healthcheck, matching openresty. The `tls-internal` property was also never applied to app containers, and now takes effect for apps served over https.
2026-11-02 00:33:35 -05:00
Jose Diaz-Gonzalez 83c9c4d72e fix: add proxy health checks from app.json readiness
The caddy, haproxy, openresty, and traefik docs stated that requests are only routed to containers passing healthchecks, but these proxies route to a new container as soon as it starts. The first `web` readiness healthcheck in `app.json` is now also turned into health checks and retries for caddy and openresty, as it already was for traefik, so requests are routed away from containers that are not yet ready, and the docs now describe how each proxy actually behaves.
2026-11-02 00:33:35 -05:00
Jose Diaz-Gonzalez f29fdae409 fix: keep previous image restartable after failed deploy
When a deploy failed, the old containers kept serving while `dokku/<app>:latest` still pointed at the failed image, so `ps:restart`, `ps:start`, and `ps:restore` would redeploy the broken release or fail with `App image not found` once that image was retired. The running image is now kept available during a build and deploy, the `latest` tag is restored to it when the build, release, or deploy fails, and `ps:retire` no longer removes the image an app's `latest` tag points at. Failed containers are also now registered for retirement under the correct app so they and their images are cleaned up.
2026-10-30 18:00:05 -04:00
Jose Diaz-Gonzalez a3c31275a2 Merge pull request #9227 from dokku/datastore-plugin
Ship every datastore as a core datastore plugin
2026-10-30 17:56:11 -04:00
dependabot[bot] 6b30d3a337 chore(deps): bump google.golang.org/grpc in /tests/apps/gogrpc
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.84.0 to 1.85.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-30 13:52:31 +00:00
Jose Diaz-Gonzalez 8f11b7900a Merge pull request #9225 from dokku/9224-add-a-way-to-rebuild-an-app-without-build-cache-on-demand
Add --no-cache flag to ps:rebuild
2026-10-29 21:05:57 -04:00
Jose Diaz-Gonzalez 68e5757590 feat: ship every datastore as a core datastore plugin
Adds a `datastore` core plugin that serves every official datastore under one command, with the datastore type as the first argument, as in `dokku datastore:create postgres lollipop`. It is built on the dokku-datastore sdk, and leaves a datastore to its official plugin while that plugin is enabled.
2026-10-29 20:32:20 -04:00
Jose Diaz-Gonzalez d98761fe9a test: match pack cache-clear output 2026-10-29 18:53:08 -04:00
Jose Diaz-Gonzalez 32d8360ad3 test: assert uncached build steps rerun 2026-10-29 15:47:06 -04:00
Jose Diaz-Gonzalez f3b21babcc feat: add --no-cache flag to ps:rebuild
The `ps:rebuild` command now accepts `--no-cache` to perform a single uncached build regardless of builder, without persisting any setting for later deploys. The railpack builder now also honors `--no-cache` when set via `docker-options`, and build records are now correctly attributed when flags precede the app name.
2026-10-29 14:25:51 -04:00
Jose Diaz-Gonzalez fe0f024208 fix: attach every network in attach-post-create
Setting multiple networks for the `attach-post-create` network property only connected new app containers to the first network in the list. All specified networks are now attached, matching the existing `attach-post-deploy` behavior.
2026-10-29 12:25:14 -04:00
Jose Diaz-Gonzalez 98d57a2552 Merge pull request #9215 from dokku/dependabot-439-setuptools-windows-path-escape-via-namespace-packages-txt-during-legacy-wheel-installation-description
fix: drop unused packages from dockerfile-release lock
2026-10-28 16:38:17 -04:00
Jose Diaz-Gonzalez f625c39555 fix: drop unused packages from dockerfile-release lock
The `dockerfile-release` test app lock still pinned `setuptools` and `pytz` even though neither is in the `Pipfile` nor required by any locked package. Removing them clears the outstanding setuptools advisory without carrying a dependency the app never uses.
2026-10-28 14:28:46 -04:00
dependabot[bot] a285912ee4 chore(deps): bump body-parser
Bumps the npm_and_yarn group with 1 update in the /tests/apps/checks-root directory: [body-parser](https://github.com/expressjs/body-parser).


Updates `body-parser` from 2.3.0 to 2.4.0
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-version: 2.4.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-28 18:28:05 +00:00
Jose Diaz-Gonzalez 635065582a Merge pull request #9206 from dokku/dependabot/docker/tests/apps/dockerfile-entrypoint/ruby-4.0.9
chore(deps): bump ruby from 4.0.7 to 4.0.9 in /tests/apps/dockerfile-entrypoint
2026-10-27 10:58:10 -04:00
Jose Diaz-Gonzalez bd5765ab2c Merge pull request #9203 from dokku/dependabot/npm_and_yarn/tests/apps/multi/sass-1.106.1
chore(deps): bump sass from 1.106.0 to 1.106.1 in /tests/apps/multi
2026-10-27 10:57:29 -04:00
Jose Diaz-Gonzalez 5a4bff6b81 Merge pull request #9197 from dokku/dependabot/docker/tests/apps/gogrpc/golang-1.27.3
chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/gogrpc
2026-10-27 10:57:09 -04:00
Jose Diaz-Gonzalez 34a2837396 Merge pull request #9193 from dokku/dependabot/docker/tests/apps/go-fail-postdeploy/golang-1.27.3
chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/go-fail-postdeploy
2026-10-27 10:56:55 -04:00
Jose Diaz-Gonzalez 0190c25330 Merge pull request #9195 from dokku/dependabot/docker/tests/apps/go-fail-predeploy/golang-1.27.3
chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/go-fail-predeploy
2026-10-27 10:53:22 -04:00
Jose Diaz-Gonzalez e582c2aa72 Merge pull request #9194 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-no-tini/golang-1.27.3
chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/zombies-dockerfile-no-tini
2026-10-27 10:53:14 -04:00
Jose Diaz-Gonzalez 2bfbafde15 Merge pull request #9192 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-tini/golang-1.27.3
chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/zombies-dockerfile-tini
2026-10-27 10:53:05 -04:00
dependabot[bot] bd1e584ff3 chore(deps): bump ruby in /tests/apps/dockerfile-entrypoint
Bumps ruby from 4.0.7 to 4.0.9.

---
updated-dependencies:
- dependency-name: ruby
  dependency-version: 4.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-27 13:53:05 +00:00
dependabot[bot] be114373ba chore(deps): bump sass from 1.106.0 to 1.106.1 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.106.0 to 1.106.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.106.0...1.106.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-version: 1.106.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:54:07 +00:00
dependabot[bot] 44be919de5 chore(deps): bump golang from 1.27.2 to 1.27.3 in /tests/apps/gogrpc
Bumps golang from 1.27.2 to 1.27.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:53:15 +00:00
dependabot[bot] f54988267b chore(deps): bump golang in /tests/apps/go-fail-predeploy
Bumps golang from 1.27.2 to 1.27.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:53:10 +00:00
dependabot[bot] 6e12cdc227 chore(deps): bump golang in /tests/apps/zombies-dockerfile-no-tini
Bumps golang from 1.27.2 to 1.27.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:53:08 +00:00
dependabot[bot] 06114966bc chore(deps): bump golang in /tests/apps/go-fail-postdeploy
Bumps golang from 1.27.2 to 1.27.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:53:03 +00:00
dependabot[bot] 7b25d1edb1 chore(deps): bump golang in /tests/apps/zombies-dockerfile-tini
Bumps golang from 1.27.2 to 1.27.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:52:53 +00:00
dependabot[bot] 8b70d33297 chore(deps-dev): bump heroku/heroku-buildpack-php in /tests/apps/php
Bumps [heroku/heroku-buildpack-php](https://github.com/heroku/heroku-buildpack-php) from 298 to 299.
- [Release notes](https://github.com/heroku/heroku-buildpack-php/releases)
- [Changelog](https://github.com/heroku/heroku-buildpack-php/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heroku/heroku-buildpack-php/compare/v298...v299)

---
updated-dependencies:
- dependency-name: heroku/heroku-buildpack-php
  dependency-version: '299'
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 13:52:31 +00:00
Jose Diaz-Gonzalez 00c3e48cf4 feat: add a whole-set form and clear for chart overrides
The `scheduler-k3s:charts:set` command only changed one chart override at a time, so matching a chart's stored overrides to a declared set meant reading the report, computing the difference in both directions and issuing one command per added, changed and removed property, with a failure partway through leaving a mixture of the two sets. A `--replace` flag on `scheduler-k3s:charts:set` now takes a chart name followed by `property=value` pairs and writes the declared map for that chart in a single call. Every pair is parsed before anything is written, so a rejected pair leaves the stored overrides untouched, and a pair ending in `=` stores an empty value, which the per-property form cannot express. An empty pair list is rejected rather than treated as a request to remove everything, and the new `scheduler-k3s:charts:clear` command handles that case by removing every override for a chart.
2026-10-24 19:34:13 -04:00
Jose Diaz-Gonzalez be291f3928 Merge pull request #9189 from dokku/9105-failed-build-leaves-deploy-lock-behind-apps-locked-reports-a-non-existing-lock
Release deploy locks on exit and honor apps:lock
2026-10-24 19:15:04 -04:00
Jose Diaz-Gonzalez 5537240204 Merge pull request #9186 from dokku/dependabot/npm_and_yarn/tests/apps/multi/sass-1.106.0
chore(deps): bump sass from 1.105.2 to 1.106.0 in /tests/apps/multi
2026-10-24 18:13:08 -04:00
Jose Diaz-Gonzalez c4b164a270 fix: release deploy locks on exit and honor apps:lock
A deploy that exited before releasing its lock, such as after a failed build, left `.deploy.lock` behind, so `apps:locked` reported a lock nothing held and the build record stayed running. The lock is now released and the record finalized whenever the deploy exits. `apps:lock` never actually blocked deploys, as it only created the file deploys lock. It now creates its own lock that git pushes, `ps:rebuild`, `git:sync`, and the `git:from-*` commands refuse to deploy past, and `apps:locked` only reports a lock when the app was locked via `apps:lock` or a deploy is in progress. Locks created by `apps:lock` in older versions are migrated on install.
2026-10-24 13:58:47 -04:00
dependabot[bot] 6ad4ca317c chore(deps-dev): bump heroku/heroku-buildpack-php in /tests/apps/php
Bumps [heroku/heroku-buildpack-php](https://github.com/heroku/heroku-buildpack-php) from 297 to 298.
- [Release notes](https://github.com/heroku/heroku-buildpack-php/releases)
- [Changelog](https://github.com/heroku/heroku-buildpack-php/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heroku/heroku-buildpack-php/compare/v297...v298)

---
updated-dependencies:
- dependency-name: heroku/heroku-buildpack-php
  dependency-version: '298'
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-24 16:19:04 +00:00
dependabot[bot] 7d53e24390 chore(deps): bump sass from 1.105.2 to 1.106.0 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.105.2 to 1.106.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.105.2...1.106.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-version: 1.106.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-24 16:15:00 +00:00
Jose Diaz-Gonzalez 57ae817dab Merge pull request #9128 from sean0407/codex/fix-cleanup-force-9127
Forward forced cleanup flag (#9127)
2026-10-24 12:03:17 -04:00