GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Persist one-time authentication tokens for cross-replica failover · Issue #739 · OpenResilienceInitiative/ORISO-UserService

Persist one-time authentication tokens for cross-replica failover #739

New issue
Copy link
New issue
Copy link
Closed
Task
Closed
Persist one-time authentication tokens for cross-replica failover#739
Task
Copy link
Assignees
BjoernLudwigStorypapst

Description

@Storypapst
Storypapst
opened on Jul 25, 2026
Issue body actions

Parent: #733

Problem

Magic-link and password-reset tokens are stored in process-local ConcurrentHashMaps. A restart invalidates every outstanding link, and a request handled by one replica cannot be consumed by another.

Scope

  • Add one Redis-backed token store for both flows.
  • Preserve atomic single-use consumption and bounded retry restoration.
  • Keep password-reset one-token-per-account semantics across replicas.
  • Prove two independent service/store instances can create and consume the same token.
  • Keep tokens, account identifiers, and Redis values out of logs and test artifacts.

Acceptance

  • A token created through instance A can be consumed once through instance B.
  • A second consume fails deterministically.
  • Tokens survive application instance replacement until their TTL expires.
  • Password-policy rejection may restore only the claimed token for its remaining TTL.
  • A newer password-reset token invalidates the older token for that account across instances.
  • Redis outage fails closed without falling back to process-local state.
  • Targeted and proportional JDK 21 tests pass.
Reacted by coderabbitai

Activity

  1. Storypapst
    self-assigned this
    on Jul 25, 2026
  2. coderabbitai commented on Jul 25, 2026

    @coderabbitai
    coderabbitaiBot
    on Jul 25, 2026 – with coderabbitai
    More actions
    🔗 Related PRs

    #439 - feat(auth): self-service password reset (mirrors Magic Link) [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. Storypapst
    added a parent issue on Jul 25, 2026
    • Make service replica behavior explicit and safe under failover and scale-out #733
  4. Storypapst
    added this to ORISO Roadmapon Jul 25, 2026
  5. Storypapst
    moved this to In progress in ORISO Roadmapon Jul 25, 2026
  6. Storypapst
    moved this from In progress to In review in ORISO Roadmapon Jul 25, 2026
  7. Storypapst commented on Jul 25, 2026

    @Storypapst
    Storypapst
    on Jul 25, 2026
    CollaboratorAuthor
    More actions

    Implementation is ready for human review in #740.

    Verified evidence:

    • 3,752 unit tests passed locally with zero failures/errors (7 skipped)
    • 58 focused authentication tests passed
    • 4 real-Redis cross-instance tests passed locally
    • blocking GitHub Redis shared-state contracts check passed
    • magic-link and password-reset tokens now survive instance replacement and can be claimed exactly once by another instance

    This subtask does not unlock multi-replica UserService by itself. Matrix ownership, schedulers, and remaining coordination stay tracked in #543, #379, and #216.

  8. kiodreambau
    moved this from In review to QA internal in ORISO Roadmapon Jul 29, 2026
  9. kiodreambau
    set
    Priority
    to
    Medium
    on Aug 24, 2026
  10. Storypapst
    added the
    Task
    issue type on Aug 24, 2026
  11. Storypapst commented on Aug 24, 2026

    @Storypapst
    Storypapst
    on Aug 24, 2026
    CollaboratorAuthor
    More actions

    Verified as delivered: PR #740 ("fix(auth): persist one-time tokens in Redis"), merged into pre-dev on 2026-07-27, replaces the process-local token maps with a shared Redis store, adds atomic cross-instance claim/consume logic with TTL-preserving retry restoration, enforces one outstanding reset token per account, and fails closed on Redis outage; 3,752 unit tests, 58 focused auth tests and 4 real-Redis cross-instance integration tests passed.

    Moving to QA external Dev for external review. cc @BjoernLudwig

  12. Storypapst
    assigned
    BjoernLudwig
    on Aug 24, 2026
  13. Storypapst
    moved this from QA internal Dev to QA external Dev in ORISO Roadmapon Aug 24, 2026
  14. Storypapst
    closed this as completedon Aug 28, 2026
  15. Storypapst
    moved this from QA external Dev to Done in ORISO Roadmapon Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @BjoernLudwig
    BjoernLudwig
  • @Storypapst
    Storypapst

Labels

No labels
No labels

Type

Task

Fields

Priority

Medium

Platform release

v2.0.2

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.