vercel / vercel/storage

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

Open
#418 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

storage: postgres
Dominant language
TypeScript
Stars
595
Forks
101
Avg merge
2h 24m
Merged PRs (30d)
1

Description

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@....

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the code that generates Vercel Postgres connection-string environment variables, then trace how the selected database user is represented; done means a chosen custom user produces the generated variables instead of the default user while preserving the requested connection format.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, typescript
Domain
databases, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.