Repository navigation
fix(security): pass registry passwords to docker login via stdin - #5701
Open
Gabrielgvl wants to merge 1 commit into
Open
Gabrielgvl wants to merge 1 commit into
Gabrielgvl wants to merge 1 commit into
Conversation
Use execFile arguments for local login and the SSH stream for remote login. Discard execution errors after sanitizing their messages so echoed credentials cannot survive in nested error fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gabrielgvl
marked this pull request as ready for review
October 17, 2026 15:45
This branch has not been deployed
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.
What is this PR about?
Follow up on #4579 and #4875 by keeping registry passwords out of the commands used for direct Docker login calls. Shell escaping prevents injection, but
printf %s '<password>' | docker login ...still puts the password in the shell process arguments and in execution errors.dockerLoginhelper for registry create, update, both test routes, and rollbacks.execFileAsyncrunner with an argument array locally. Send the password only on stdin.execAsyncRemote. The remote command contains only escaped registry and username arguments. The password goes to the SSH channel, followed by EOF.Tests
pnpm exec biome checkon the five changed files.pnpm typecheck.pnpm test run --exclude __test__/deploy/application.real.test.ts --maxWorkers=4: 1,299 tests pass across 133 files.Remaining work
utils/providers/docker.tsandutils/cluster/upload.tsgenerate shell scripts for later execution. Those flows still usesafeDockerLoginCommandand are unchanged here. Removing embedded credentials from those scripts needs a separate change. See #4693 and the existing build-log redaction work in #5068. This PR does not close #4693.Checklist
canary.CONTRIBUTING.md.Related work
Refs #4579, #4875, #3382, #4693, #5068.
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Direct Docker logins now share
dockerLogin, which sends passwords through stdin instead of shell command arguments.Reviews (1) · Last reviewed commit: "fix(security): pass registry login passw..." · Reviewed by Greptile