Skip to content

feat: probe dokku_git_auth with git:auth-status - #532

Merged
josegonzalez merged 1 commit into
mainfrom
524-probe-dokku-git-auth-with-git-auth-status
Sep 2, 2026
Merged

feat: probe dokku_git_auth with git:auth-status#532
josegonzalez merged 1 commit into
mainfrom
524-probe-dokku-git-auth-with-git-auth-status

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

git:auth-status compares the stored netrc entry against the credentials it is handed and answers with its exit code, which is exactly the question Plan() asks, so the task now converges instead of reporting drift on every run and a recipe containing one can reach plan --detailed-exitcode exit 0. The password moves from argv to stdin on both the probe and the apply so it stays out of the process table on the dokku host, and a password containing a newline is rejected up front because that transport cannot carry one. docket export is unchanged: git:auth-status can neither enumerate the hosts with an entry nor reveal a stored username, so there is still nothing to reconstruct.

A drifted host reports a modify rather than distinguishing "no entry yet" from "the stored credentials differ", because git:auth-status answers both the same way and telling them apart would cost a second round trip on every drifted task. dokku/dokku#8995 tracks giving those cases distinct exit codes upstream.

Closes #524

`git:auth-status` compares the stored netrc entry against the credentials it is handed and answers with its exit code, which is exactly the question `Plan()` asks, so the task now converges instead of reporting drift on every run and a recipe containing one can reach `plan --detailed-exitcode` exit 0. The password moves from argv to stdin on both the probe and the apply so it stays out of the process table on the dokku host, and a password containing a newline is rejected up front because that transport cannot carry one. `docket export` is unchanged: `git:auth-status` can neither enumerate the hosts with an entry nor reveal a stored username, so there is still nothing to reconstruct.
@josegonzalez
josegonzalez merged commit 193f00d into main Sep 2, 2026
19 checks passed
@josegonzalez
josegonzalez deleted the 524-probe-dokku-git-auth-with-git-auth-status branch September 2, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Probe dokku_git_auth with git:auth-status

1 participant