Skip to content

[BUG][AUTH]: team_id is none in rbac.py for non-admin gateway list calls #2183

@KKNithin

Description

@KKNithin

🐞 Bug Summary

Briefly describe the issue or unexpected behavior.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. As a non admin user try to list existing gateways which are public, private or visible to team
  2. Eventhough you have a user role will all permissions it won't list gateways as team_id is none

🤔 Expected Behavior

team_id should be populated from other means for backend apis


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit v1.0.0-Beta
Runtime Python 3.11
Platform / OS macOS
Container Docker

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsecurityImproves security

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions