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

✨ feature: integrate SSL mode for PG connections #77

Merged
merged 1 commit into from
May 18, 2021

Conversation

r-52
Copy link
Contributor

@r-52 r-52 commented Apr 1, 2021

Right now, the default connection for postgres is disable. Some databases require verify or even required. This PR introduces a new implementation that allows the user to override the disable mode. The PR keeps a backwards compatible config entry, that sets the default behavior to disable if it's missing.

@ReneWerner87
Copy link
Member

thx

can you deposit some test for it, which will test the effect of the code change

@r-52 r-52 force-pushed the r-postgres-ssl-mode-option branch from 2b82292 to 75c3314 Compare April 1, 2021 13:25
@r-52
Copy link
Contributor Author

r-52 commented Apr 1, 2021

can you deposit some test for it, which will test the effect of the code change

I've integrate a test for this change that checks the behavior. What do you think?

@ReneWerner87
Copy link
Member

looks okay

@ReneWerner87 ReneWerner87 self-requested a review April 14, 2021 07:17
@ReneWerner87
Copy link
Member

@r-52 could you add the new configuration possibility in the readme

after that i will merge everything

@ReneWerner87
Copy link
Member

@r-52 could you do this?

@r-52
Copy link
Contributor Author

r-52 commented May 12, 2021

@ReneWerner87 sorry, I missed the ping :/ I'll take a look at it and ping you when it's done

@ReneWerner87
Copy link
Member

ok :D

@ReneWerner87
Copy link
Member

@r-52 and don´t forget to resolve the merge conflicts by updating your branch

Right now, the default connection for postgres is `disable`. Some
databases require `verify` or even `required`.
This PR introduces a new implementation that allows the user to override
the `disable` mode. The PR keeps a backwards compatible config entry, that
sets the default behavior to `disable` if it's missing.
@r-52 r-52 force-pushed the r-postgres-ssl-mode-option branch from 75c3314 to 4ea7d71 Compare May 18, 2021 10:40
@r-52
Copy link
Contributor Author

r-52 commented May 18, 2021

@ReneWerner87 Sorry for the delay. The conflict is resolved and I've added a new README entry for the new configuration option 👍

@ReneWerner87 ReneWerner87 merged commit 7bbbc01 into gofiber:main May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants