Skip to content

Feature: Implement Password Recovery and Reset API #78

Description

@3m1n3nc3

Description

Implement anti-enumerating recovery and one-time password reset.

File Location

Password reset service/routes/controllers, templates, and tests

Design Reference

API Roadmap Phase 1: Implement Password Recovery and Reset API.

Dependencies

  • Status: Blocked
  • Blocked by: Feature: Add Auth Token and Session Persistence Models; Feature: Add Transaction Outbox and Job Delivery Foundation
  • Blocks: Feature: Harden Authentication and Account Security Policy

Tasks

  • Add neutral forgot-password response with limits
  • Issue hashed one-time expiring reset token via outbox email
  • Validate policy and reset atomically
  • Revoke reset tokens and applicable sessions on success
  • Audit without recording secrets
  • Test unknown account, expiry, replay, concurrency, limits, and revocation

Acceptance Criteria

  • Responses do not reveal account existence
  • Token resets at most once
  • Session revocation follows documented policy
  • No raw token/password is logged or persisted
  • Tests and OpenAPI pass

Verification Evidence

  • Attach redacted curl and anti-enumeration, replay, and revocation tests

Difficulty

Advanced

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions