-
Notifications
You must be signed in to change notification settings - Fork 614
[BUG][AUTH]: team_id is none in rbac.py for non-admin gateway list calls #2183
Copy link
Copy link
Closed
Copy link
Labels
Milestone
Description
🐞 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
- As a non admin user try to list existing gateways which are public, private or visible to team
- 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.
🧠 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.
Reactions are currently unavailable