redhat-developer / redhat-developer/vscode-yaml
Unable to load schema from <schema path> with a transparent TLS intercepting proxy
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
When opening an Ansible Vars file, I get the notification: Unable to load schema from 'https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-vars.json': No content.
I am using VSCode with WSL 2, and my Windows machine has a transparent TLS inspecting proxy. I am able to run curl and wget to these URLs within the WSL environment (as I have loaded the TLS MITM certificate).
Expected Behavior
No notification about schema loading failures.
Current Behavior
When opening an Ansible Vars file, I get the notification: Unable to load schema from 'https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-vars.json': No content.
Steps to Reproduce
Unsure! I suspect one validation would be to install MITMProxy on another machine, set this as the gateway for all outbound traffic, and then use something like IPTables to rewrite any inbound HTTP or HTTPS packets to MITMProxy... then copy the MITMProxy CA Certificate to the certificate store. I've written up some notes on putting certificates into the certificate store here: https://jon.sprig.gs/blog/post/2150 Test it with a check using curl https://github.com and make sure that works, and then test this!
Environment
- Windows
- Mac
- Linux
- other (please specify)
WSL2 Ubuntu on Windows 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the schema request for the Ansible Vars file in VS Code with WSL2 and the transparent TLS-inspecting proxy, using the reported ansible-vars.json URL. Compare the extension's result with curl or wget, which are reported to work in the same environment; done means the schema loads without a notification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100