Commit Graph
3018 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez c37a71b90b feat: add a whole-set form for scheduler-k3s metadata
The `scheduler-k3s` metadata commands were all per-key, so matching an app's stored annotations, labels or node sysctls to a declared set meant reading the report, computing the difference in both directions and issuing one command per added, changed and removed key, with a failure partway through leaving a mixture of the two sets. A `--replace` flag on `annotations:set`, `labels:set`, `node-sysctls:set` and `autoscaling-auth:set` now writes the declared map in a single call, taking trailing `key=value` pairs everywhere except `autoscaling-auth:set`, which keeps its repeatable `--metadata` flag. Every pair is parsed before anything is written, so a rejected pair leaves the stored map untouched, and a pair ending in `=` stores an empty value, which the per-key form cannot express. An empty pair list is rejected rather than treated as a request to remove everything, so a generated list that expands to nothing cannot silently drop an app's metadata; `annotations:clear`, `labels:clear` and `node-sysctls:clear` handle that case, taking the same optional filters as their report commands. The `--resource-type` flag and the app name are now validated on the set commands as well, where a typo previously exited zero and wrote a property that no report and no deploy ever read.
2026-09-18 05:14:51 -04:00
Jose Diaz-Gonzalez 55ffe6809b Merge pull request #9011 from visheshgubrani/scheduler-k3s-run-exit-code
Propagate command exit code on dokku run
2026-09-18 04:08:45 -04:00
Jose Diaz-Gonzalez be4689e771 Merge pull request #9049 from dokku/9043-config-set-reports-success-even-when-writing-the-env-file-fails
Report config write failures instead of exiting 0
2026-09-18 04:08:19 -04:00
Jose Diaz-Gonzalez ffa2991abf fix: reject negative process counts when scaling
A process count below zero was accepted and stored verbatim, leaving the scheduler to reject the value long after the command reported success. Counts below zero are now rejected, as are process tuples that omit a process type, across `ps:scale`, the `ps-set-scale` trigger and the `formation` key of `app.json`. A negative count persisted by an earlier version stays readable so it can be corrected with `ps:scale`.
2026-09-18 02:50:34 -04:00
Jose Diaz-Gonzalez 0c3ae47299 fix: report config write failures instead of exiting 0
`config:set`, `config:unset` and `config:clear` discarded the result of writing the app's environment, so a write that never landed still printed `Setting config vars`, still fired the `post-config-update` trigger, still restarted the app and still exited 0. The `config-set` and `config-unset` plugin triggers behaved the same way, which meant an `app.json` `env` block that could not be persisted deployed anyway with the variables missing. The environment is now staged in a temporary file and renamed into place, so a write that fails partway leaves the previous environment intact, and that file is created at `0600` rather than being created at `0644` and chmodded afterwards. `apps:clone` and `apps:rename` never applied that chmod at all and left the new app's environment world-readable.
2026-09-18 00:36:38 -04:00
Jose Diaz-Gonzalez 1ab7095016 Merge pull request #9033 from mvysny/fix/git-sync-build-record-leak
Discard the build record git:sync starts when nothing is built
2026-09-17 17:24:09 -04:00
dependabot[bot] 0c4356931b chore(deps): bump ruby in /tests/apps/dockerfile-entrypoint
Bumps ruby from 4.0.6 to 4.0.7.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-16 13:52:27 +00:00
dependabot[bot] f149d35246 chore(deps): bump sass from 1.104.0 to 1.104.1 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.104.0 to 1.104.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.104.0...1.104.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-15 13:54:18 +00:00
Jose Diaz-Gonzalez 3f38478dca Merge pull request #9010 from visheshgubrani/8994-storage-mount-scheduler-mismatch
Reject scheduler mismatch at mount time
2026-09-14 23:26:04 -04:00
Jose Diaz-Gonzalez 77e121b8d6 Merge pull request #9032 from dokku/dependabot/pip/tests/apps/dockerfile-release/djangorestframework-3.18.1
chore(deps): bump djangorestframework from 3.18.0 to 3.18.1 in /tests/apps/dockerfile-release
2026-09-14 11:41:14 -04:00
Jose Diaz-Gonzalez 292d67387d Merge pull request #9038 from dokku/dependabot/composer/tests/apps/php/monolog/monolog-3.12.0
chore(deps): bump monolog/monolog from 3.11.0 to 3.12.0 in /tests/apps/php
2026-09-14 11:40:44 -04:00
dependabot[bot] 62f014119f chore(deps): bump psycopg2-binary in /tests/apps/dockerfile-release
Bumps [psycopg2-binary](https://github.com/psycopg/psycopg2) from 2.9.12 to 2.9.13.
- [Changelog](https://github.com/psycopg/psycopg2/blob/master/NEWS)
- [Commits](https://github.com/psycopg/psycopg2/compare/2.9.12...2.9.13)

---
updated-dependencies:
- dependency-name: psycopg2-binary
  dependency-version: 2.9.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 13:55:00 +00:00
dependabot[bot] 7b28900086 chore(deps): bump monolog/monolog in /tests/apps/php
Bumps [monolog/monolog](https://github.com/Seldaek/monolog) from 3.11.0 to 3.12.0.
- [Release notes](https://github.com/Seldaek/monolog/releases)
- [Changelog](https://github.com/Seldaek/monolog/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Seldaek/monolog/compare/3.11.0...3.12.0)

---
updated-dependencies:
- dependency-name: monolog/monolog
  dependency-version: 3.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 13:52:25 +00:00
Martin VysnyandClaude Opus 5 dc27668e09 fix: discard the build record git:sync starts when nothing is built
cmd-git-sync calls dokku_setup_build_capture before the clone/fetch,
because it cannot know whether there is anything to deploy until it has
fetched. Both paths that then decline to build - a plain `git:sync` with
no build flag, and a `--build-if-changes` poll that finds the remote
unchanged - returned without ever finalizing that record.

The record stayed at status=running forever, which has three
consequences on an app polled on a timer:

- PruneAppBuilds only runs from builds-record-finalize, so nothing
  prunes the ticks while the app is idle; they accumulate without bound,
  invisibly, because builds:list caps output at the retention count.
- The next real deploy's ReapAbandonedBuilds finalizes each of them as
  status=failed, exit_code=-1, with finished_at stamped at the moment of
  reaping - indistinguishable on disk from a build that really failed,
  and with a duration that grew to the polling interval.
- That same deploy's prune then keeps the newest records by started_at,
  which after an idle stretch are the ticks, deleting the last real
  deploy's record and log.

Add a builds-record-discard trigger that removes a non-terminal record
and its log, and call it from both no-op paths in cmd-git-sync. The
trigger leaves missing and already-terminal records alone, so it can
never delete real history.

Fixes #9030

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 17:00:39 +03:00
dependabot[bot] c6a3897ee4 chore(deps): bump djangorestframework in /tests/apps/dockerfile-release
Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.18.0 to 3.18.1.
- [Release notes](https://github.com/encode/django-rest-framework/releases)
- [Commits](https://github.com/encode/django-rest-framework/compare/3.18.0...3.18.1)

---
updated-dependencies:
- dependency-name: djangorestframework
  dependency-version: 3.18.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-11 13:54:57 +00:00
Jose Diaz-Gonzalez 733b63bc01 Merge pull request #9014 from dokku/dependabot/composer/tests/apps/php/heroku/heroku-buildpack-php-295
chore(deps-dev): bump heroku/heroku-buildpack-php from 294 to 295 in /tests/apps/php
2026-09-08 18:25:02 -04:00
Jose Diaz-Gonzalez 8f367d6d2b Merge pull request #9016 from dokku/dependabot/composer/tests/apps/php/slim/slim-4.15.3
chore(deps): bump slim/slim from 4.15.2 to 4.15.3 in /tests/apps/php
2026-09-08 18:24:30 -04:00
Jose Diaz-Gonzalez ef41cf5cc5 Merge pull request #9019 from dokku/dependabot/npm_and_yarn/tests/apps/multi/sass-1.104.0
chore(deps): bump sass from 1.103.1 to 1.104.0 in /tests/apps/multi
2026-09-08 18:24:06 -04:00
dependabot[bot] ee98e9c293 chore(deps): bump sass from 1.103.1 to 1.104.0 in /tests/apps/multi
Bumps [sass](https://github.com/sass/dart-sass) from 1.103.1 to 1.104.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.103.1...1.104.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:54:32 +00:00
dependabot[bot] 831a96bc21 chore(deps): bump slim/slim from 4.15.2 to 4.15.3 in /tests/apps/php
Bumps [slim/slim](https://github.com/slimphp/Slim) from 4.15.2 to 4.15.3.
- [Release notes](https://github.com/slimphp/Slim/releases)
- [Changelog](https://github.com/slimphp/Slim/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/slimphp/Slim/compare/4.15.2...4.15.3)

---
updated-dependencies:
- dependency-name: slim/slim
  dependency-version: 4.15.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:52:41 +00:00
dependabot[bot] 8539cffb96 chore(deps): bump monolog/monolog in /tests/apps/php
Bumps [monolog/monolog](https://github.com/Seldaek/monolog) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/Seldaek/monolog/releases)
- [Changelog](https://github.com/Seldaek/monolog/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Seldaek/monolog/compare/3.10.0...3.11.0)

---
updated-dependencies:
- dependency-name: monolog/monolog
  dependency-version: 3.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:52:38 +00:00
dependabot[bot] 84b333ca91 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 294 to 295.
- [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/v294...v295)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:52:34 +00:00
Jose Diaz-Gonzalez b29bf2e6af Merge pull request #8975 from BetterAndBetterII/fix/caddy-is-app-listening-gate
Treat is_app_listening as a boolean, not a non-empty string
2026-09-05 20:08:37 -04:00
Vishesh 08147b5d93 fix(scheduler-k3s): propagate command exit code on dokku run 2026-09-04 22:35:35 +05:30
Jose Diaz-Gonzalez dd2e40bfdd Merge pull request #9004 from dokku/dependabot/npm_and_yarn/tests/apps/checks-root/qs-6.16.0
chore(deps): bump qs from 6.15.2 to 6.16.0 in /tests/apps/checks-root
2026-09-03 18:17:59 -04:00
Jose Diaz-Gonzalez a0200804ac Merge pull request #9005 from dokku/dependabot/docker/tests/apps/gogrpc/golang-1.27.1
chore(deps): bump golang from 1.27.0 to 1.27.1 in /tests/apps/gogrpc
2026-09-03 18:17:52 -04:00
Jose Diaz-Gonzalez 0209cb5cb0 Merge pull request #9006 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-no-tini/golang-1.27.1
chore(deps): bump golang from 1.27.0 to 1.27.1 in /tests/apps/zombies-dockerfile-no-tini
2026-09-03 18:17:46 -04:00
Jose Diaz-Gonzalez f082c267d2 Merge pull request #9007 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-tini/golang-1.27.1
chore(deps): bump golang from 1.27.0 to 1.27.1 in /tests/apps/zombies-dockerfile-tini
2026-09-03 18:17:40 -04:00
Jose Diaz-Gonzalez a25771eed8 Merge pull request #9008 from dokku/dependabot/docker/tests/apps/go-fail-predeploy/golang-1.27.1
chore(deps): bump golang from 1.27.0 to 1.27.1 in /tests/apps/go-fail-predeploy
2026-09-03 18:17:34 -04:00
Vishesh 76cacdcda4 fix(storage): reject scheduler mismatch at mount time (#8994) 2026-09-03 20:20:32 +05:30
dependabot[bot] 394e5982dc chore(deps): bump golang in /tests/apps/go-fail-postdeploy
Bumps golang from 1.27.0 to 1.27.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 13:53:26 +00:00
dependabot[bot] 9fa421f9c2 chore(deps): bump golang in /tests/apps/go-fail-predeploy
Bumps golang from 1.27.0 to 1.27.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 13:52:46 +00:00
dependabot[bot] bcea2a5106 chore(deps): bump golang in /tests/apps/zombies-dockerfile-tini
Bumps golang from 1.27.0 to 1.27.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 13:52:45 +00:00
dependabot[bot] 4b259eeb03 chore(deps): bump golang in /tests/apps/zombies-dockerfile-no-tini
Bumps golang from 1.27.0 to 1.27.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 13:52:40 +00:00
dependabot[bot] 5fd015a4b2 chore(deps): bump golang from 1.27.0 to 1.27.1 in /tests/apps/gogrpc
Bumps golang from 1.27.0 to 1.27.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 13:52:19 +00:00
dependabot[bot] 9a6d679d9e chore(deps): bump qs from 6.15.2 to 6.16.0 in /tests/apps/checks-root
Bumps [qs](https://github.com/ljharb/qs) from 6.15.2 to 6.16.0.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.15.2...v6.16.0)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.16.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 06:15:01 +00:00
Jose Diaz-Gonzalez 96521de322 feat: distinct git:auth-status exit codes for netrc state
The `git:auth-status` command returned `1` both when a host had no `netrc` entry and when it had one that differed, so tooling wanting to tell a credential that would be created apart from one that would be replaced had to issue a second call with no username purely to find out which of the two it was. A host with no entry now exits `1`, a host whose entry differs from what was passed exits `2`, and invalid arguments exit `3`, leaving `0` to mean the stored state already matches. Called without a username the requested state is that no entry exists, so an existing entry is reported as `2` and `1` is never returned. Callers that only test zero versus non-zero are unaffected.
2026-09-02 18:07:19 -04:00
Jose Diaz-Gonzalez db45f8608b feat: add --clear and --replace flags to ps:scale
The `ps:scale` command merges the specified process types into the existing formation, so replacing an entire formation from the CLI required reading the current scale, diffing it, and issuing a second call to zero out each unlisted process type. The `--replace` flag treats the specified process types as the whole formation and sets the process count for every unspecified process type to zero, while the `--clear` flag resets the formation to the scale a newly created app has. The two flags cannot be combined, `--replace` requires at least one process type, and `--clear` accepts none. Process types cleared this way are now scaled down as part of the same command rather than being left running with a stale formation.
2026-09-02 14:55:16 -04:00
Jose Diaz-Gonzalez 63351209f8 Merge pull request #8996 from dokku/8992-add-a-fingerprint-field-to-certs-report
Add fingerprint and serial to certs:report
2026-09-02 13:04:07 -04:00
dependabot[bot] ad90612999 chore(deps): bump python in /tests/apps/dockerfile-release
Bumps python from 3.15.0rc1-bookworm to 3.15.0rc2-bookworm.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.15.0rc2-bookworm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-02 13:52:50 +00:00
Jose Diaz-Gonzalez 326607e356 feat: add fingerprint and serial to certs:report
The report described an installed certificate without carrying anything that identified it, so the only exact way to tell whether an app was serving a given certificate was to pull the full PEM back with `certs:show` and compare bytes. That moves certificate material off the server on every check, and the same command with `key` returns the private key. The new `--ssl-fingerprint` and `--ssl-serial` flags answer the same question in a single report read that discloses nothing sensitive. The sample output in the ssl documentation has also been corrected to match what the command actually prints.
2026-09-02 03:56:02 -04:00
dependabot[bot] 1fa833e86d chore(deps): bump google.golang.org/grpc in /tests/apps/gogrpc
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.83.1 to 1.83.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.83.1...v1.83.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-31 13:52:28 +00:00
Yuzhong Zhang 50a90cade1 fix(caddy-vhosts): treat is_app_listening as a boolean, not a non-empty string
The docker-args-process-deploy trigger initialized is_app_listening to
the string "false" and then tested it with [[ -n ... ]], which is always
true. Apps with domains, tls-internal, and no http/https port mapping
got a stray caddy.tls=internal label.

Fixes #8973
2026-08-31 02:15:45 +00:00
Jose Diaz-Gonzalez a21145fc57 fix: validate k3s profile names against derived release name
`scheduler-k3s:profiles:add` accepted profile names it could not later derive a valid helm release name from, so a profile was created successfully and only failed on commands with no obvious relationship to it: `profiles:remove` could not delete the profile it created, and a single bad name broke every subsequent node sysctls change, including the global scope and unrelated profiles. Names are now refused at add time against the release name they derive rather than against the profile name alone, and the paths that have to cope with a profile stored before this check keep working instead of erroring.
2026-08-29 19:13:46 -04:00
Jose Diaz-Gonzalez c712429b09 Merge pull request #8970 from dokku/dependabot/pip/tests/apps/dockerfile-release/gunicorn-26.2.0
chore(deps): bump gunicorn from 26.1.0 to 26.2.0 in /tests/apps/dockerfile-release
2026-08-28 14:19:19 -04:00
Jose Diaz-Gonzalez 892648041b Merge pull request #8969 from dokku/dependabot/pip/tests/apps/python-flask/gunicorn-26.2.0
chore(deps): bump gunicorn from 26.1.0 to 26.2.0 in /tests/apps/python-flask
2026-08-28 14:19:11 -04:00
dependabot[bot] 8058611105 chore(deps): bump gunicorn in /tests/apps/dockerfile-release
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 26.1.0 to 26.2.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/26.1.0...26.2.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 26.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-28 13:54:20 +00:00
dependabot[bot] 3960c27b2f chore(deps): bump gunicorn in /tests/apps/python-flask
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 26.1.0 to 26.2.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/26.1.0...26.2.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 26.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-28 13:52:32 +00:00
dependabot[bot] 8c1ba6940b chore(deps): bump gunicorn from 26.1.0 to 26.2.0 in /tests/apps/multi
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 26.1.0 to 26.2.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/26.1.0...26.2.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 26.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-28 13:52:30 +00:00
Jose Diaz-Gonzalez 78704fe13f Merge pull request #8965 from dokku/dependabot/npm_and_yarn/tests/apps/multi/sass-1.103.1
chore(deps): bump sass from 1.102.0 to 1.103.1 in /tests/apps/multi
2026-08-25 14:05:27 -04:00