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
{{ message }}
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
The current approach requires storing usernames and passwords for the database connection strings in plain text which isn't great for security. A better approach might be to use an alias and environment variables for retrieving the connection strings.
This could be done in a backwards compatible way by making the current URL column nullable and adding a new alias column. Then use URL if it's present and fall back to alias. The CLI would just need to ensure that one of the two are provided, and a check constraint could be used on the table to ensure it never ends up in a situation where both columns are null.
The text was updated successfully, but these errors were encountered:
Adding on to this, I think it would be beneficial to allow us to resolve the URL with a function. This would allow us to create our own adapters to the URLs.
Environment variables could be resolved with this: (alias) => process.env[alias]
The current approach requires storing usernames and passwords for the database connection strings in plain text which isn't great for security. A better approach might be to use an alias and environment variables for retrieving the connection strings.
Tenant Table:
.env
This could be done in a backwards compatible way by making the current URL column nullable and adding a new alias column. Then use URL if it's present and fall back to alias. The CLI would just need to ensure that one of the two are provided, and a check constraint could be used on the table to ensure it never ends up in a situation where both columns are null.
The text was updated successfully, but these errors were encountered: