Commit Graph
1 Commits
Author SHA1 Message Date
Andre Neto c2a253071e Netflox: read DB password from env; stop tracking archive with old password
database.py had the PostgreSQL password in plain text (inline literal repeated
in every psycopg2.connect call). It now reads NETFLOX_DB_PASSWORD once at
import time and raises RuntimeError if it is unset, so there is no default.

The committed Projeto_Netflox_*.zip embeds the same database.py and therefore
still carries the old password, so it is removed from the index
(git rm --cached; the file stays on disk outside the working tree). README.md
documents the env var and the archive removal.

Why: the credential must not live in the repository. The value is still in the
history and in any clone/cache, so it must be rotated.
2026-10-08 14:03:21 +01:00