-
Notifications
You must be signed in to change notification settings - Fork 57
fix: disable ssl #87
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: disable ssl #87
Conversation
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
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.
Pull Request Overview
This PR disables SSL connections for MySQL database connections by adding SSL configuration to the database connection setup.
- Adds SSL disabled configuration to MySQL connector
- Updates database connection function to use the new SSL settings
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| database=os.getenv("DB_NAME", "demo"), | ||
| ) | ||
|
|
||
| _EXTRA = {"ssl_disabled": True} |
Copilot
AI
Oct 9, 2025
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.
Disabling SSL for database connections removes encryption between the application and database, potentially exposing sensitive data in transit. Consider using proper SSL certificates or restricting this to development environments only.
| _EXTRA = {"ssl_disabled": True} | |
| # Only disable SSL if DB_SSL_DISABLED is set to "true" (case-insensitive) | |
| _EXTRA = {} | |
| if os.getenv("DB_SSL_DISABLED", "false").lower() == "true": | |
| _EXTRA["ssl_disabled"] = True |
No description provided.