Skip to content

CreateDashboard has no per-user dashboard limit allowing unlimited storage consumption #7010

@aashu2006

Description

@aashu2006

User Request

Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: 9511492f-7fd4-4b94-89e2-b1bcbc0187ea

Description

What happened:
In pkg/api/handlers/dashboard.go:100-126, CreateDashboard has no limit on dashboards per user. CreateCard enforces MaxCardsPerDashboard = 200 via CreateCardWithLimit, but there is no analogous limit for dashboards. A user can create unlimited dashboards each holding 200 cards, exhausting database storage proportionally.

What I expected:
CreateDashboard should enforce a per-user dashboard limit (e.g. MaxDashboardsPerUser) similar to MaxCardsPerDashboard.

Steps to reproduce:

  1. Script repeated CreateDashboard calls
  2. Observe unlimited dashboards are created with no cap
  3. Observe database storage grows unboundedly

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issuekind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.triage/neededNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions