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

fix: getIpFamily not detecting IPv6 support #119

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

michelkaporin
Copy link
Contributor

What does this PR do?

Fixes regression that got introduced as part of this PR, where try/catch was removed within getIpFamily function.

This led to all users that support IPv6 default to IPv4 protocol when authenticating through IDE, since the verify/callback always returns 401 at this point (i.e. res.success = false).

Since the new code doesn't bubble errors up to the caller, added additional map for the exception that gets thrown when IPv6 lookup is not supported by a user.

Any background context you want to provide?

https://github.com/snyk/vscode-extension/issues/116

@michelkaporin michelkaporin requested a review from Arvi3d December 23, 2021 16:20
@michelkaporin michelkaporin requested a review from a team as a code owner December 23, 2021 16:20
src/http.ts Outdated Show resolved Hide resolved
@ArtsiomCh
Copy link

failed tests in CI? default_workflow

@michelkaporin
Copy link
Contributor Author

michelkaporin commented Dec 24, 2021

failed tests in CI? default_workflow

@ArtsiomCh haven't changed anything around the code that fails, thus I assume it's the same issue that happens from time to time due to backend Snyk Code changes. It's out of scope of this PR to fix, unless Sast team asks me to 😄

Copy link

@ArtsiomCh ArtsiomCh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I didn't run and/or test it.
Ooch, just found it's not vsc plugin repo... Then my approval could be just ignored.

src/http.ts Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Jan 3, 2022

This PR modifies files linked to issues tracked in Stepsize.

You might want to review their status, priority, and scope.

 Mention [stepsize] in a comment if you'd like to report some technical debt. See examples here.

@michelkaporin michelkaporin merged commit 9b436fa into master Jan 3, 2022
@michelkaporin michelkaporin deleted the fix/auth-getIpFamily branch January 3, 2022 10:48
@snyksec
Copy link

snyksec commented Jan 3, 2022

🎉 This PR is included in version 4.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants