Skip to content

bug: oauth login fails if backend restarts during authentication flow #6028

@aaradhychinche-alt

Description

@aaradhychinche-alt

User Request

Type: bug
Target: Console Application
Submitted by: @aaradhychinche-alt
Console Request ID: 65eb7ef5-4304-400c-9efb-e5c65ac0953e

Description

What happened:
OAuth state is stored only in memory. If the backend restarts during login, the callback fails due to missing state.

What I expected:
OAuth state should persist across restarts or be handled gracefully.

Steps to reproduce:

  1. Start OAuth login.
  2. Before completing GitHub consent, restart backend.
  3. Complete login.
  4. Observe failure due to CSRF/state validation.

Relevant area:
Auth handler (pkg/api/handlers/auth.go)

Suggested improvement:
Persist OAuth state or implement retry-safe flow.

Impact:
Medium. Breaks login flow in real-world restart scenarios.


This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.triage/neededNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions