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

Reference / schema loading problem behind kerberos authenticated proxy #81001

Closed
fis-cz opened this issue Sep 16, 2019 · 7 comments
Closed

Reference / schema loading problem behind kerberos authenticated proxy #81001

fis-cz opened this issue Sep 16, 2019 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster proxy Issues regarding network proxies

Comments

@fis-cz
Copy link

fis-cz commented Sep 16, 2019

Hello,

I have problem loadind JSON references / schemas behind corporate kerberos authenticated proxy.

VS Code reports:

Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/tsconfig.json'
Unable to load schema from 'https://schemastore.azurewebsites.net/schemas/json/tsconfig.json'

or

Unable to load schema from 'http://json.schemastore.org/tslint'

Followed by the HTML error message returned by the proxy server itself: Authentication required

The rest of features of VSC are working fine (extension/market place browsing) so I think that some specific method is used to load references from the web and the Chromium proxy settings are not used.

Please note there is not fallback to NTLM or Basic authentication allowed on the proxy server, just kerberos.

Version: 1.38.1 (system/user),
I notice the problem is there at least since 1.26.

I didn't find any other related issue and I think this one is not covered by #79044 or by #74991.

@vscodebot
Copy link

vscodebot bot commented Sep 16, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@aeschli aeschli assigned chrmarti and unassigned aeschli Oct 10, 2019
@chrmarti chrmarti added feature-request Request for new features or functionality proxy Issues regarding network proxies labels Oct 21, 2019
@ee-github
Copy link

To confirm layman's understanding, will this issue prevent JSON schema validation from behind any common Kerberos-only corporate proxy?

If so, here is a vote to prioritize a fix.

Observation: In my case the connect error message in "PROBLEMS" points to where the schema resides (not the IP of the proxy server). This suggests the proxy was not even used, as in a proxy setup the client never needs the IP of the actual destination. Unless there is functionality to fall back to a direct connection in the event that proxy auth fails?

@chrmarti
Copy link
Collaborator

We have added Kerberos support for proxies a while back. Could you confirm this still being an issue? Thanks.

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Feb 24, 2025
@ee-github
Copy link

It is NOT still an issue locally on Windows. Details: After more testing, this presents itself when using VSCode on Windows while working (remote development) on a Linux host.

I was under the assumption that it was the Window VS Code client that is responsible for pulling the schema from a remote location. However, it seems it's the "vscode server" on the remote Linux host that initiates the connection to pull the remote schema file (confirmed by firewall drop logs).

Under Setting -> Remote [SSH: hostname] -> Application -> Proxy I found a "Proxy" field. Entering a proxy there that the remote Linux server can access fixes the JSON schema validation functionality.

It would be nice if there was a way for the Windows VSCode client to fetch the remote schema as in general it will run on a corp machine with all the right settings and auth, while remote dev servers might be all over the place. Does this functionality exist? It seems that this does work for installing remote extensions (and the vscode server itself) but maybe not for the JSON schema validation functions?

@chrmarti
Copy link
Collaborator

@aeschli Over to you for consideration of fetching JSON schemas locally when they can't be fetched on the remote.

@chrmarti chrmarti assigned aeschli and unassigned chrmarti Feb 25, 2025
@aeschli
Copy link
Contributor

aeschli commented Feb 25, 2025

@chrmarti We need to solve this in VS Code remote itself. We can't ask every extension that wants to make http/s requests to be aware that they run remotely and ask them to find a way to forward that request to the local side.

Sorry, I don't know what needs to be configured for kerberos. Can it be done with the `http.proxy' settings on the remote?

  • on the remote machine setting you can use the http.useLocalProxyConfiguration in get the local settings for http proxies
  • also, can't this be configured in the WSL distro itself, e.g. by setting the `http_proxy' env variables?

@aeschli aeschli assigned chrmarti and unassigned aeschli Feb 25, 2025
@chrmarti
Copy link
Collaborator

Closing as a user reported success after configuring the proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

4 participants