-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: SSL certificate error on proxy configured browser launch #590
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
Conversation
WalkthroughThe changes introduce the Changes
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
server/src/browser-management/classes/RemoteBrowser.ts (1)
286-287: Approval with security considerationThe addition of the
--ignore-certificate-errorsflag effectively addresses the SSL certificate error issue when using proxy configurations. This change aligns with the change in proxy.ts.However, bypassing certificate validation has security implications. While acceptable for a controlled environment, it could potentially expose the application to man-in-the-middle attacks if used carelessly.
Consider adding a code comment explaining why this flag is necessary, and potentially making it configurable based on the environment (development vs. production).
server/src/routes/proxy.ts (2)
92-92: Consistent solution with security implicationsThe addition of the
--ignore-certificate-errorsflag is consistent with the change in RemoteBrowser.ts and effectively addresses SSL certificate errors when testing proxy connections.As with the other instance, bypassing certificate validation has security implications, though it's less concerning for a test endpoint that uses a controlled destination (example.com).
Consider updating line 92 to maintain consistent formatting with the rest of the codebase:
- args:["--ignore-certificate-errors"] + args: ["--ignore-certificate-errors"]
164-165: Unrelated TODO comment should be addressedThere's an unrelated TODO comment indicating this function should be moved elsewhere. Since you're modifying code in this file, consider addressing this TODO.
This function appears to be used in the RemoteBrowser.ts file, so it could potentially be moved to a separate utility file for proxy-related functions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
server/src/browser-management/classes/RemoteBrowser.ts(1 hunks)server/src/routes/proxy.ts(1 hunks)
What this PR does?
It sets parameters to ignore certificate errors on launching chromium browser instance.
Summary by CodeRabbit