More specific SSHAgentStepWorkflowTest#sshAgentDocker assertion#166
Merged
fcojfernandez merged 1 commit intojenkinsci:masterfrom May 13, 2025
Merged
More specific SSHAgentStepWorkflowTest#sshAgentDocker assertion#166fcojfernandez merged 1 commit intojenkinsci:masterfrom
SSHAgentStepWorkflowTest#sshAgentDocker assertion#166fcojfernandez merged 1 commit intojenkinsci:masterfrom
Conversation
fcojfernandez
approved these changes
May 13, 2025
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.
I filed a pull request against a CloudBees CI repository running PCT and it failed with
I tried to reproduce this locally by defining an environment variable containing that text, but the test still passed—environment variables from the host were not copied into the container. Perhaps the difference is that PCT was running inside a Docker container and
docker-workflowautomatically switched to DooD mode as a result and picked up variables from the Docker host.I also tried to just revert the
src/main/portion of 3a8abe1 but the test still passes, perhaps because the change here was only a second line of defense and jenkinsci/docker-workflow-plugin#167 also fixed it. I tried to go back to 3a8abe1 including itspom.xmland test addition and just revert thesrc/main/portion, which required running on Java 8, but that eventually failed with a different assertion because the build failed perhaps due to a stdin problem (this predates #50)At any rate, the log of the failed build did mention
SSH_PASSPHRASE=cloudbeeswhich matches the reported vulnerability, so I think it is appropriate to tighten up the assertion to match that string. Better of course would be to pick a more random passphrase for the test key, but it is hard-coded and I do not feel like going to the bother of generating a new one, or improving the test utility to generate a key on the fly.