Skip to content

Conversation

@officialasishkumar
Copy link
Member

No description provided.

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>
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>
Copilot AI review requested due to automatic review settings October 9, 2025 07:45
Copy link

Copilot AI left a 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}
Copy link

Copilot AI Oct 9, 2025

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.

Suggested change
_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

Copilot uses AI. Check for mistakes.
@officialasishkumar officialasishkumar merged commit 555d3f7 into main Oct 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants