security: timing-safe API key comparison, remove hardcoded DB password
- Use hmac.compare_digest for constant-time key check (router.py) - Move POSTGRES_PASSWORD out of docker-compose.yml into .env (was a public default "corvid" now that the repo is public) - Add .env.example with placeholder values Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3bd431bea0
commit
961fc67528
3 changed files with 9 additions and 2 deletions
3
.env.example
Normal file
3
.env.example
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
DATABASE_URL=postgresql+asyncpg://corvid:changeme@postgres:5432/corvid
|
||||
TICKETS_API_KEY=changeme-use-a-long-random-value
|
||||
POSTGRES_PASSWORD=changeme
|
||||
Loading…
Add table
Add a link
Reference in a new issue