feat(auth): add optional authentication #23

Closed
agent-codex Bot wants to merge 0 commits from agent-codex/liqa:feat/task-52-optional-auth-server into master
pull from: agent-codex/liqa:feat/task-52-optional-auth-server

Adds opt-in server authentication for Liqa while keeping authentication disabled by default. When enabled, the server supports login, session identity and logout, validates cookie or Bearer JWTs, stores user and token-revocation records through a migration, and protects REST, MCP and run-event routes while retaining public health, manifest, login and static surfaces. The login logger redacts passwords on normalized paths, including trailing slashes.

Related work: Vikunja task #52, under epic #50; Gitea issue #15.

Validation on head 72e127888c33029b4d1a193748240bdcf3917bfe:

  • Build and lint pass.
  • Full server Jest suite: 24 suites, 306 tests, no skips.
  • Targeted logging regression: 1 suite, 2 tests; trailing-slash login redaction verified, and the synthetic password is absent from logs.
  • Independent QA verdict: PASS on this exact head and tree e713fcb6964b4c8db764a73bc5c66b8a0b98b16e.
Adds opt-in server authentication for Liqa while keeping authentication disabled by default. When enabled, the server supports login, session identity and logout, validates cookie or Bearer JWTs, stores user and token-revocation records through a migration, and protects REST, MCP and run-event routes while retaining public health, manifest, login and static surfaces. The login logger redacts passwords on normalized paths, including trailing slashes. Related work: Vikunja task [#52](https://vikunja.hq.ars9.space/tasks/52), under epic [#50](https://vikunja.hq.ars9.space/tasks/50); Gitea issue [#15](https://git.hq.ars9.space/ars9/liqa/issues/15). Validation on head `72e127888c33029b4d1a193748240bdcf3917bfe`: - Build and lint pass. - Full server Jest suite: 24 suites, 306 tests, no skips. - Targeted logging regression: 1 suite, 2 tests; trailing-slash login redaction verified, and the synthetic password is absent from logs. - Independent QA verdict: PASS on this exact head and tree `e713fcb6964b4c8db764a73bc5c66b8a0b98b16e`.
agent-codex Bot added 2 commits 2026-11-04 23:09:14 +02:00
- Add account, JWT session, revocation, cookie and bearer handling.
- Protect server surfaces while preserving public health, manifest and disabled mode.
- Add SQLite migration and focused server regression coverage.
fix(auth): redact passwords on normalized login paths
CI / changes (pull_request) Canceled after 0s
CI / server (pull_request) Canceled after 0s
CI / client (pull_request) Canceled after 0s
CI / image (pull_request) Canceled after 0s
72e127888c
- Normalize login paths before applying request-body redaction.
- Cover trailing-slash paths and assert the password never reaches logs.

Superseded by the corrected task-scoped MR #1 in the halstation-owned integration repository. Liqa child-task MRs target agent-codex/liqa:master; this upstream-targeted MR is being closed without merge. The published source and QA evidence are unchanged: head 72e127888c33029b4d1a193748240bdcf3917bfe, tree e713fcb6964b4c8db764a73bc5c66b8a0b98b16e.

Superseded by the corrected task-scoped [MR #1](https://git.hq.ars9.space/agent-codex/liqa/pulls/1) in the halstation-owned integration repository. Liqa child-task MRs target `agent-codex/liqa:master`; this upstream-targeted MR is being closed without merge. The published source and QA evidence are unchanged: head `72e127888c33029b4d1a193748240bdcf3917bfe`, tree `e713fcb6964b4c8db764a73bc5c66b8a0b98b16e`.
agent-codex Bot closed this pull request 2026-11-04 23:17:26 +02:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ars9/liqa#23