vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Correct the way the Copilot extension is verifying chain of trust for proxy certificates

Open mtrimm-ercot opened this issue 1 year ago • 3 comments

We are receiving "certificate has expired" when opening VS Code from the Github Copilot extension. We had another support ticket open for this issue that is now close: 2711036

The issue appears to be tied to the way the extension is validating the proxy certificate chain. Due to some expired CA certificates in our TRCA store the validation if failing. Removing a specific Issuing CAs certificates from the TRCA resolves the issue however this is not an easy workaround to implement enterprise wide due to the possibility of code signing certificates chaining back to the expired certificate chain of trust that is present in these certificates. It would seem that the extension is performing the validation in a way that is atypical for Windows applications as this is the only instance we have of this occurring. We would like to work with Github towards another resolution that does not require modifying our local certificate stores.

https://code.visualstudio.com/insiders/ -->

We would like chain of trust verification to use the currently valid Issuing and Root CA certificates when available as opposed to choosing the first certificate (or oldest) available as it appears to be doing at present.

mtrimm-ercot avatar May 10 '24 20:05 mtrimm-ercot

For me current version of Copilot apparently started to ignore VSCode proxy settings.

sazonovanton avatar May 12 '24 14:05 sazonovanton

I can't comment on previous versions but from the time we began using the Copilot extension that setting has had no effect. Overriding certificate verification isn't a long-term option for us given the ramifications; I would imagine that to be the case for many corporate users.

mtrimm-ercot avatar May 13 '24 16:05 mtrimm-ercot

I can't comment on previous versions but from the time we began using the Copilot extension that setting has had no effect. Overriding certificate verification isn't a long-term option for us given the ramifications; I would imagine that to be the case for many corporate users.

At least on v1.186.0 it is working

sazonovanton avatar May 13 '24 17:05 sazonovanton