bug: Hardcoded JWT secret in test fixtures — use env var instead #61

Closed
opened 2026-05-15 13:36:54 +00:00 by Mark · 0 comments
Owner

backend/tests/fixtures/database.py contains a hardcoded JWT secret. While this is only in test fixtures, best practice is to use an environment variable.

Recommendation: replace with os.environ.get("OSINT_JWT_SECRET", "test-secret-change-me") or use a test settings override.

backend/tests/fixtures/database.py contains a hardcoded JWT secret. While this is only in test fixtures, best practice is to use an environment variable. Recommendation: replace with os.environ.get("OSINT_JWT_SECRET", "test-secret-change-me") or use a test settings override.
Mark closed this issue 2026-05-15 16:17:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/osint-hub#61
No description provided.