Skip to content

Cluster data from the previous user survives logout #5405

@mrhapile

Description

@mrhapile

User Request

Type: bug
Target: Console Application
Submitted by: @mrhapile
Console Request ID: 5143e234-d6f9-4380-af33-1d0ba81936b3

Description

Category: Security/Data consistency. Severity: High.

Location: web/src/lib/auth.tsx#L157, web/src/hooks/mcp/shared.ts#L138.

Description: Logout clears tokens and SSE cache, but not the cluster cache stored in kubestellar-cluster-cache. Steps: Log in as one user, load clusters, log out, then log in as another user or return unauthenticated. Expected: Cluster inventory should be cleared on auth boundary changes. Actual: Old cluster names and metrics can render until a later refetch replaces them. Root Cause: Auth logout does not clear the module/localStorage cluster cache.

Suggested Fix: Clear cluster caches and reset shared cluster state on logout and token changes.


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.triage/neededNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions