-
Notifications
You must be signed in to change notification settings - Fork 0
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: failed to establish a connection with the upstream server #263
Conversation
onSelectFile: () => void | ||
} | ||
|
||
export const FileUploadInput = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extracted this file into its own component so it can be reused for the recorder's Browser Path as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
@@ -72,9 +68,7 @@ export const SettingsDialog = ({ open, onOpenChange }: SettingsDialogProps) => { | |||
|
|||
<Flex gap="3" justify="end"> | |||
<Dialog.Close> | |||
<Button variant="outline" onClick={handleCancelClick}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I encountered a bug, after following the happy path by checking the settings again it was presented as
regular
while the file on disk did indeed still include the correct proxy config. (A restart fixed it but we might want to look into it)
@Llandy3d there was a leftover logic from when Settings was still a page and the form state needed to be reset. This should fix the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did 🥳
Description
This PR adds a new field in settings to allow users to input the certificate file (
pem
,p12
orcer
) so a trusted connection can be established with the upstream server if it requires SSL.How to Test
In your local dev environment, there is a directory in
resources/certificates
. This directory will be used to initialize a new instance of mitmproxy for testing purposes.Launch a new instance of mitmproxy with SSL configured, pointing the certificate folder to your local environment.
Happy path:
upstream
and point to the other instance of mitmproxymitmproxy-ca-cert.pem
(for macOS) ormitmproxy-ca-cert.p12
(for Windows) from the certificates folderSad path:
Checklist
npm run lint
) and all checks pass.npm test
) and all tests pass.Screenshots (if appropriate):
Related PR(s)/Issue(s)
Resolves #260