Skip to content

fix(security): reject weak PASTE_AUTH_SECRET in production - #68

Merged
ArianAr merged 1 commit into
mainfrom
fix/65-reject-weak-auth-secret
Jul 15, 2026
Merged

fix(security): reject weak PASTE_AUTH_SECRET in production#68
ArianAr merged 1 commit into
mainfrom
fix/65-reject-weak-auth-secret

Conversation

@ArianAr

@ArianAr ArianAr commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Production rejects empty, known-placeholder, and short (<16) PASTE_AUTH_SECRET values
  • Compose no longer supplies a working default secret (fails fast if unset)
  • Unit tests for placeholder detection and production enforcement

Closes #65

Test plan

  • pnpm test (121 tests)
  • pnpm lint
  • pnpm typecheck
  • pnpm build
  • CI aggregate ci green

Refuse empty, short, and documented placeholder secrets so unlock
cookies cannot be forged on default Compose deploys. Require an
explicit PASTE_AUTH_SECRET in docker-compose.

Closes #65
@ArianAr

ArianAr commented Jul 15, 2026

Copy link
Copy Markdown
Owner Author

Code review summary

Reviewed for security correctness (weak-secret rejection, Compose fail-fast, privacy of error messages).

Verdict: No bug-severity findings. Suggestions only (docs comment polish, extra boundary tests) — non-blocking.

CI ci is green. Merging per AGENTS.md.

@ArianAr
ArianAr merged commit 7d1a3ae into main Jul 15, 2026
9 of 10 checks passed
@ArianAr
ArianAr deleted the fix/65-reject-weak-auth-secret branch July 15, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security: reject weak/default PASTE_AUTH_SECRET in production

1 participant