You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development, a conflict occurred on how to correctly deploy the migrations. The local database we run is not enabled with ssl, and does not require certificates, different from the production database. The migrations driver requires a command to inform if the database is configured with ssl or not, and will not perform if this configuration is wrong.
The problem is even deployed to production with the correct configuration, the tests will break, as the database used for the tests does not used ssl, as well. There needs to be a way to differentiate when to use the sslmode.
✔️ Solution
The Node needs to know to where it's being deployed, either locally or production. There are 2 ways to this: either the Node is said explicitly, and there needs to be flag to tell it, or it needs to check certain configurations that are known to be different and infer the deployment.
The second solution is leaner and avoids bogging the startup command, but runs the risk of breaking in the future if the configuration changes and the check is not performed correctly.
From the moment of writing this issue, there isn't an obvious path to follow. Part of the work needed is studying the Node and convening with the team to chose a way to move forward.
📈 Subtasks
Find a method to differentiate local and production startups
Add the different ssl mode configuration to each startup
The text was updated successfully, but these errors were encountered:
📚 Context
During development, a conflict occurred on how to correctly deploy the migrations. The local database we run is not enabled with ssl, and does not require certificates, different from the production database. The migrations driver requires a command to inform if the database is configured with ssl or not, and will not perform if this configuration is wrong.
The problem is even deployed to production with the correct configuration, the tests will break, as the database used for the tests does not used ssl, as well. There needs to be a way to differentiate when to use the sslmode.
✔️ Solution
The Node needs to know to where it's being deployed, either locally or production. There are 2 ways to this: either the Node is said explicitly, and there needs to be flag to tell it, or it needs to check certain configurations that are known to be different and infer the deployment.
The second solution is leaner and avoids bogging the startup command, but runs the risk of breaking in the future if the configuration changes and the check is not performed correctly.
From the moment of writing this issue, there isn't an obvious path to follow. Part of the work needed is studying the Node and convening with the team to chose a way to move forward.
📈 Subtasks
The text was updated successfully, but these errors were encountered: