1 Changelog V1.21.26
Forgejo Actions edited this page 2026-09-25 16:38:07 +00:00

v1.21.26

Date: 2026-09-05

Features

  • CLI password reset: --reset-password <email> --password-stdin inside the existing API container. Audited (audit_events, actor=cli), invalidates target's live sessions (principal_name delete + FK cascade), replaces the old unaudited manual DB UPDATE recovery path. Resolves the no-password-reset gap (ISSUE-025). Usage: docs/dev/cli-password-reset.md. Design: ADR-0056.

Notes

  • PR #704 (squash commit ad2b4007), spec 001 task S001T194.
  • Delivered: PasswordResetCli + slim Spring context (WebApplicationType.NONE, TypeExcludeFilter scan limit), LocalAuthService.resetPasswordByEmail, SessionPrincipalIndexConfiguration (memories.userId attr → principal_name index so sessions are invalidatable). Exit codes: 0 ok / 1 internal / 2 unknown email / 3 disabled user / 4 policy / 5 usage-IO. Removed dead resetPasswordAsSuperAdmin.
  • Version bump 1.21.25 → 1.21.26 (PR branch, gradle.properties).
  • Known limitation: legacy sessions with NULL principal_name (pre-deploy logins) survive a reset; documented in ADR-0056 + docs/dev/cli-password-reset.md (relates to open ISSUE-015).
  • ⚠ CI gap (ISSUE-026): scoped tests skipped in CI for this PR (detect ran on docs-only head commit, run #2378) and post-merge test job is excluded on main pushes (workflow if: github.ref != 'refs/heads/main'); API test suite verified via Test Engineer local run (752 green, Testcontainers) + Daily Full Tests JVM step (:apps:api:test BUILD SUCCESSFUL pre-merge). Needs workflow fix.