-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Update certificate validation on Windows to check full DN #6576
fix: Update certificate validation on Windows to check full DN #6576
Conversation
🦋 Changeset detectedLatest commit: 2526ab0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✔️ Deploy Preview for car-park-attendant-cleat-11576 ready! 🔨 Explore the source changes: 2526ab0 🔍 Inspect the deploy log: https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/61f02d3c304cbf0007fce684 😎 Browse the preview: https://deploy-preview-6576--car-park-attendant-cleat-11576.netlify.app |
@mmaietta Added as a draft for now because I've added a unit test for the new case, but the tests don't seem to pass on my machine (Windows 10 running Git Bash). I have my own certificate as well, and some of the snapshots don't match. Is there a test runner in CI I can use? Or is there some way to set up my dev environment such that I can get the tests to pass? |
All CI is now handled through GitHub Actions. The test snapshots are OS-specific and for some, such as publish/updating, they need to have an API key or token that are part of this repo's env secrets. All in all, it's really difficult to get a singular test environment. electron-builder/.github/workflows/test.yaml Lines 21 to 22 in 59b6bec
MacOS
MacOS (updater-specific due to env tokens)
Windows electron-builder/.github/workflows/test.yaml Lines 97 to 98 in 59b6bec
Depending on what OS I'm working on, I have to update snapshots by booting up my corresponding OS. For non-token-based tests, I think you can activate github actions on a fork of this repo? |
All tests pass 🙌 |
This PR changes the certificate validation for NSIS installer to allow for validation of the entire DN instead of just the Common Name portion. This should allow for a more secure certificate validation.