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

Cache SSH auth agent #109

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Cache SSH auth agent #109

merged 2 commits into from
Oct 18, 2019

Conversation

bwateratmsft
Copy link
Contributor

No description provided.

@bwateratmsft
Copy link
Contributor Author

@apocas I made a silly mistake in #108. The vscode-docker extension has application settings that control DOCKER_HOST (which allows workspace-specific settings), the way we do it is to set DOCKER_HOST, create the Dockerode object, and then revert back to the prior environment variables.

Because of this implementation, we were also reverting back the SSH_AUTH_SOCK value, and when subsequent requests came in, the variable was no longer set at this line, causing failed requests:

agent: ssh({'host': self.host, 'port': self.port, 'username': self.username, 'agent': process.env.SSH_AUTH_SOCK}),

No rush on getting this deployed, I can work around it for now, but since everything else is cached from reading DOCKER_HOST at the beginning it makes sense to do the same with SSH_AUTH_SOCK.

@apocas
Copy link
Owner

apocas commented Oct 18, 2019

Yeah, I completely missed that too.
👍

@apocas apocas merged commit 3e3bb24 into apocas:master Oct 18, 2019
@bwateratmsft
Copy link
Contributor Author

@apocas We're getting close to releasing our next extension version of vscode-docker, probably soon after VSCode 1.40 is out. Can you release the next version of docker-modem?

Thanks in advance, I really appreciate it!

@apocas
Copy link
Owner

apocas commented Nov 2, 2019 via email

@apocas
Copy link
Owner

apocas commented Nov 3, 2019

Published in v2.0.4

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.

2 participants