Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

Commit db19bf9

Browse files
author
amar-python
committed
Add credential security note (chmod 600, .pgpass) to quick start
1 parent fd537d4 commit db19bf9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

QUICKSTART.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ $env:PGPORT = '5432'
3232
$env:PGUSER = 'postgres'
3333
$env:PGPASSWORD = '<your password>'
3434
```
35+
> **Security note:** Never commit credentials. `PGPASSWORD` lives only in the
36+
> current session — close the terminal to clear it. If you instead keep settings
37+
> in a `config.local.env` file, ensure it is gitignored and, on Mac/Linux,
38+
> restrict its permissions so only you can read it:
39+
>
40+
> ```bash
41+
> chmod 600 config.local.env
42+
> ```
43+
>
44+
> For unattended use, a [`~/.pgpass`](https://www.postgresql.org/docs/current/libpq-pgpass.html)
45+
> file (chmod `600`) avoids putting the password in environment variables at all.
3546
3647
## Deploy the Dev environment
3748

0 commit comments

Comments
 (0)