Skip to content

feat(auth): guided Argon2id password-hash upgrade for existing accounts - #41

Merged
thecompez merged 5 commits into
mainfrom
feat/password-hash-upgrade-prompt-20261010
Oct 10, 2026
Merged

thecompez merged 5 commits into
mainfrom
feat/password-hash-upgrade-prompt-20261010

Conversation

@thecompez

Copy link
Copy Markdown
Member

Summary

Add an optional, accessible confirmation modal and persistent reminder in the first-party /account/security page for users whose local password hash requires Argon2id migration. Authenticated GET /account/password/upgrade reports status; same-origin HTTPS POST requires the current password and upgrades with PostgreSQL compare-and-swap. Preserve all existing sessions, MFA data, password values and changed_at_ms; reject stale credentials and simultaneous password resets. External-only accounts, up-to-date accounts and installations retaining scrypt default are not prompted. Tests cover password mismatch, idempotent upgrades and PostgreSQL KDF migration; deployment must wait for green CI and a separate browser/login smoke test.

Rollout guardrail

The live OpenProof service is not modified. Enable Argon2id preference only after this version is safely deployed, tested and backed up. The popup collects passwords only at the OpenProof origin; connected applications should link to it rather than handle credentials.

@thecompez
thecompez merged commit 834a633 into main Oct 10, 2026
3 checks passed
@thecompez
thecompez deleted the feat/password-hash-upgrade-prompt-20261010 branch October 10, 2026 08:29
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.

1 participant