Skip to content

[Doc Update] [console] 🐛 Fix RBAC N+1 query and increase frontend timeout #910

@github-actions

Description

@github-actions

📝 Documentation Update Needed

A pull request was recently merged that may require documentation updates.

Source PR

PR Summary

This PR optimizes the RBAC backend by replacing N+1 per-ServiceAccount role lookups with a single batch fetch of all RoleBindings and ClusterRoleBindings, reducing response time from ~44s to <1s for clusters with many ServiceAccounts. The frontend RBAC API timeout was also increased from 5s to 60s.

Changes Overview

  • Backend eliminates N+1 query pattern for ServiceAccount role lookups (performance improvement from 43.8s to 0.8s)
  • Frontend timeout increased from 5s to 60s in useMCP.ts and useUsers.ts for handling larger clusters
  • Namespace RBAC card now loads roles, bindings, and ServiceAccounts more efficiently

Files Changed

2 files changed (backend RBAC handler, frontend timeout configuration)


Action Required: The technical documentation writer agent will review this PR and identify specific documentation pages that need updates, then create a PR with the necessary changes.

/cc @technical-doc-writer

AI generated by scan-merged-prs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions