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.
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.