Skip to content

Add SSL support for database connections #20

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

asmichaels
Copy link

@asmichaels asmichaels commented Aug 3, 2025

Add SSL/TLS Database Connection Support

Summary

Adds SSL/TLS support for secure MariaDB database connections with flexible verification levels.

Changes

  • New SSL environment variables: DB_SSL, DB_SSL_CA, DB_SSL_CERT, DB_SSL_KEY, DB_SSL_VERIFY_CERT, DB_SSL_VERIFY_IDENTITY
  • Three verification levels: Basic SSL, certificate verification, and full verification
  • Enhanced connection pool: SSL context support in asyncmy.create_pool()
  • Updated documentation: README with SSL configuration examples and notes

Features

  • Backward compatible (SSL disabled by default)
  • Logging for SSL issues

@asmichaels asmichaels marked this pull request as ready for review August 3, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant