-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add env var support for ssl mode #4442
Add env var support for ssl mode #4442
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #4442 +/- ##
==========================================
+ Coverage 58.91% 59.51% +0.59%
==========================================
Files 891 981 +90
Lines 29085 32691 +3606
Branches 4201 4673 +472
==========================================
+ Hits 17136 19455 +2319
- Misses 11949 13236 +1287 |
Hi @benwalk , thanks for raising this PR. It's frustrating that the SSL mode information isn't automatically provided by the credentials section that the service provides, however we did spot in some cases it's included as a param in the url. Is that the case for the db's you're connecting to? |
@richard-cox Unfortunately, it's not. We could push towards expanding/augmenting the credentials section the service provides, but our other apps that use this service also accept config for setting the SSL mode whereas Stratos does not. |
@benwalk Ok, gates successfully running and passing again. If you've signed the CLA you may need to close and re-open the PR for communitybridge-easycla to update |
Thanks @richard-cox; I am working with my org on EasyCLA and hope to have it signed soon. |
@benwalk Any joy with that EasyCLA? We'd love to get this into 4.0 RC1 which hopefully will happen tomorrow. We could recreate your change in a new PR, however you'd need to state you absolve all rights to the code in this PR (IANAL but I think that should work ok)? |
Despite my org signing the CLA, and me being authorized for the Cloud Foundry Foundation project, I am unable to sign as a contributor. I've filed a support ticket with Community Bridge to see if they can help me out. |
Strange, could you try rebasing from master? That might be enough to retrigger it |
@richard-cox It's been signed! It seems there was a caching issue. |
Magic, thanks for your patience. We need to do an RC2, so this will make it into 4.0.0 |
Description
SSL mode for the database connection string was not configurable. This change allows configuration of this via env var
DB_SSL_MODE
.Motivation and Context
Enabling encrypted connections to backend databases should be allowed.
This issue is filed upstream at #4434.
How Has This Been Tested?
The existing tests validate TLS connection strings work.
The value of the supplied mode is already validated here.
Types of changes
Checklist: