feat(auth): deliver optional authentication across Liqa #24

Merged
ars9 merged 16 commits from agent-codex/liqa:master into master 2026-11-11 19:35:12 +02:00

Summary

Delivers optional account authentication across Liqa while preserving the existing unauthenticated default.

  • Adds migrated user and token-revocation storage, cookie and bearer sessions, protected REST/MCP/run-event routes, and operator account/token commands.
  • Adds browser login, safe session recovery and logout, including authenticated run-event notifications and accessible login states.
  • Documents opt-in configuration and operations, and adds integrated coverage for provisioning through authentication, run events, logout, deletion and migration persistence.

Validation

All implementation children (#52–#57) are complete with task-specific independent QA evidence attached in Vikunja. Their child MRs #1–#6 were human-merged into the fork integration branch. The browser flow was verified on both same-origin production and the supported Vite setup; the integration journey verifies REST, MCP, events, logout/deletion rejection and migration persistence.

References

## Summary Delivers optional account authentication across Liqa while preserving the existing unauthenticated default. - Adds migrated user and token-revocation storage, cookie and bearer sessions, protected REST/MCP/run-event routes, and operator account/token commands. - Adds browser login, safe session recovery and logout, including authenticated run-event notifications and accessible login states. - Documents opt-in configuration and operations, and adds integrated coverage for provisioning through authentication, run events, logout, deletion and migration persistence. ## Validation All implementation children (#52–#57) are complete with task-specific independent QA evidence attached in Vikunja. Their child MRs #1–#6 were human-merged into the fork integration branch. The browser flow was verified on both same-origin production and the supported Vite setup; the integration journey verifies REST, MCP, events, logout/deletion rejection and migration persistence. - Epic and child records: https://vikunja.hq.ars9.space/tasks/50 - Server auth QA: https://vikunja.hq.ars9.space/tasks/52 - CLI QA report: https://vikunja.hq.ars9.space/api/v2/tasks/53/attachments/24 - Revocation cleanup QA report: https://vikunja.hq.ars9.space/api/v2/tasks/54/attachments/7 - Browser QA reports: https://vikunja.hq.ars9.space/api/v2/tasks/55/attachments/20 and https://vikunja.hq.ars9.space/api/v2/tasks/55/attachments/23 - Documentation QA report: https://vikunja.hq.ars9.space/api/v2/tasks/56/attachments/25 - Integration QA report: https://vikunja.hq.ars9.space/api/v2/tasks/57/attachments/26 ## References - Source issue: https://git.hq.ars9.space/ars9/liqa/issues/15 - Child MRs: https://git.hq.ars9.space/agent-codex/liqa/pulls/1, https://git.hq.ars9.space/agent-codex/liqa/pulls/2, https://git.hq.ars9.space/agent-codex/liqa/pulls/3, https://git.hq.ars9.space/agent-codex/liqa/pulls/4, https://git.hq.ars9.space/agent-codex/liqa/pulls/5, https://git.hq.ars9.space/agent-codex/liqa/pulls/6 - Fork source head: `ff9a700c8666abf7b9c4f113c94462bf97f6eae2` - Upstream target base at preparation: `d4bb2749828b7a28f787bbd1d611a63eccb2d861`
agent-codex Bot added 16 commits 2026-11-09 23:31:49 +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.
- Extract auth DTOs, cookie/JWT helpers and the generic duration parser.
- Configure the session cookie and map domain auth failures to HTTP responses.
- Add typed Swagger responses and focused regression coverage.
Reviewed-on: agent-codex/liqa#1
- Remove expired token revocations at startup and on the configured cron.
- Verify expiry boundaries and disabled-auth behavior.
Reviewed-on: agent-codex/liqa#2
- Add session-aware login, logout and protected navigation.
- Send cookie credentials for API and run-event requests with localized UI stories.
- Defer focus until submission finishes and the password field is cleared.
- Add spacing for the session-expired notice and distinguish login inputs.
- Assert those surfaces in expired-session light and dark stories.
Reviewed-on: agent-codex/liqa#3
- Add local and container-ready user management and token commands.
- Document setup and verify commands against an isolated database.
Reviewed-on: agent-codex/liqa#4
- Explain opt-in configuration, protected surfaces, migrations and cookie behavior.
- Document operator CLI, MCP bearer use, cleanup, and supported local origins.
- Exercise CLI provisioning through browser/API/MCP auth, run events, logout, and deletion.
- Allow integration coverage to reopen the same file-backed test database.
Reviewed-on: agent-codex/liqa#5
Merge pull request 'test(auth): cover integrated account journey' (#6) from feat/task-57-auth-integration into master
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
ff9a700c86
Reviewed-on: agent-codex/liqa#6
ars9 merged commit 8b48d4812d into master 2026-11-11 19:35:12 +02:00
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#24