feat: probe dokku_git_auth with git:auth-status - #532
Merged
Conversation
`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
deleted the
524-probe-dokku-git-auth-with-git-auth-status
branch
September 2, 2026 18:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
git:auth-statuscompares the stored netrc entry against the credentials it is handed and answers with its exit code, which is exactly the questionPlan()asks, so the task now converges instead of reporting drift on every run and a recipe containing one can reachplan --detailed-exitcodeexit 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 exportis unchanged:git:auth-statuscan 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-statusanswers 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