Skip to content
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

Support encrypted connections to MySQL/Maria and Postgres #2314

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

acelaya
Copy link
Member

@acelaya acelaya commented Dec 18, 2024

Closes #2206

Add a new DB_USE_ENCRYPTION config option to dynamically update the database configuration so that it requires encrypted connections to MySQL/MariaBD and Postgres databases.

In theory, this was already supported for Microsoft SQL servers, but has been never verified.


  • Test connections in fact work when encryption is enforced by the server.

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.71%. Comparing base (6ad8b03) to head (d228c16).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2314   +/-   ##
==========================================
  Coverage      93.71%   93.71%           
- Complexity      1682     1683    +1     
==========================================
  Files            276      276           
  Lines           5840     5841    +1     
==========================================
+ Hits            5473     5474    +1     
  Misses           367      367           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acelaya acelaya force-pushed the feature/database-ssl branch from 2b50888 to 6c0ca3d Compare December 18, 2024 16:52
@acelaya acelaya force-pushed the feature/database-ssl branch from 6c0ca3d to 4e7d090 Compare December 19, 2024 08:00
@@ -18,7 +18,7 @@
"ext-json": "*",
"ext-mbstring": "*",
"ext-pdo": "*",
"akrabat/ip-address-middleware": "^2.4",
"akrabat/ip-address-middleware": "^2.5",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to changes here, but the lack of lockfile makes this get updated anyway, and since it implies a change in code, I have enforced the newer version.

@acelaya acelaya marked this pull request as ready for review December 20, 2024 08:54
@acelaya acelaya merged commit b8d7917 into shlinkio:develop Dec 20, 2024
21 checks passed
@acelaya acelaya deleted the feature/database-ssl branch December 20, 2024 08:55
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.

SSL/TLS Support for Database Connections
1 participant