Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for securely passing ssh identity to docker build #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericb-summit
Copy link
Contributor

Some Dockerfile builds require ssh authentication to perform some operations. Most notably pulling dependencies from private repos. To avoid leaking the ssh credentials in the build layers, docker buildkit supports the --ssh default argument which does a pass-thru of the ssh-agent socket from the host to the builder. This PR defines a new parameter ssh_identity and if set, it temporarily spawns an ssh-agent during the docker build.

@ericb-summit ericb-summit requested a review from xtremerui as a code owner March 30, 2021 22:56
@xtremerui
Copy link
Contributor

Hi could you add a out test in tests/out_test.go if possible?

@JasonDictos
Copy link
Contributor

This fix has been re-implemented here: #364

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.

3 participants