-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
mount the SSH_AUTH_SOCK socket for ssh-agent #11683
mount the SSH_AUTH_SOCK socket for ssh-agent #11683
Conversation
fe0a742
to
328da8a
Compare
35f3aef
to
e38d4c1
Compare
0e2416b
to
02e345d
Compare
e213546
to
9c18df0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d like to get the team’s input on this. It looks good to me. This could be a good topic for tomorrow's standup parking lot.
Mount the SSH_AUTH_SOCK into the docker-dev-shell container to propagate the SSH agent credentials and allow git access to servers/repositories which require the ssh credentials. The added volume mapping in 'docker run' applies only if ${SSH_AUTH_SOCK} is not empty. For Mac with Docker or Rancher Desktop, the following value can be used: SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock \ ./bin/docker-dev-shell go_modules -r Issue dependabot#11544 - addresses the second checkbox: ssh-add -l shows the same ssh keys as in the "outside" user session. Signed-off-by: Dmitry Savintsev <[email protected]>
a0998db
to
a89ba31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reviewing and discussing with team, approving for deploy
This reverts commit e14ac74.
This reverts commit e14ac74. Co-authored-by: kbukum1 <[email protected]>
What are you trying to accomplish?
PR is part of the "plan" in #11544 - addressing its second checkbox:
ssh-add -l
shows the same ssh keys as in the "outside" user sessionIt allows to run
bin/docker-dev-shell
and propagate your host SSH credentials. The end goal is to be able to run the tests and dependabot actions that require SSH credentials for access to the code repositories.Anything you want to highlight for special attention from reviewers?
I wonder if I should add a flag to activate propagation of the ssh credentials (so that you wouldn't have anything changed compared to the status quo without the flag)?
How will you know you've accomplished your goal?
SSH_AUTH_SOCK
set (or if we use the flag, who don't pass the flag to propagate their ssh credentials)ssh-add -l
inside the container shows the same keys as in the "outer" hostChecklist