storage icon indicating copy to clipboard operation
storage copied to clipboard

Vercel Postgres: Select a different user for the connection string environment variables

Open stabildev opened this issue 2 years ago • 1 comments

To benefit from Row Level Security policies I am using a different user than the "default" user to connect to the database. It would be great to select this user for the auto generated environment variables instead of exposing the more privileged "default" user.

Example:

postgres://custom_user:custom_password@....

stabildev avatar Oct 11 '23 14:10 stabildev

thanks @stabildev, that's a really good suggestion! we are planning to review the privileges of the tokens generated by default, both for KV and Postgres

correttojs avatar Oct 13 '23 06:10 correttojs