Skip to content

Fix Flowise 788 Improve Tenant Validation#6620

Open
yau-wd wants to merge 2 commits into
mainfrom
fix/flowise-788-improve-tenant-validation
Open

Fix Flowise 788 Improve Tenant Validation#6620
yau-wd wants to merge 2 commits into
mainfrom
fix/flowise-788-improve-tenant-validation

Conversation

@yau-wd

@yau-wd yau-wd commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

FLOWISE-788

@yau-wd yau-wd self-assigned this Jul 14, 2026
@yau-wd yau-wd added the bug Something isn't working label Jul 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces organization and workspace scoping to several enterprise controllers, ensuring operations are bound to the active organization of the authenticated user, and blacklists these endpoints from API key access. The code review highlights critical security improvements, including adding missing authorization checks for managing organization users, addressing potential IDOR vulnerabilities by sourcing workspace IDs from the user session rather than request payloads, and validating workspace accessibility before deletion. Additionally, it is recommended to consistently use the strongly-typed getLoggedInUser(req) helper instead of accessing req.user directly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/server/src/enterprise/controllers/organization-user.controller.ts Outdated
Comment thread packages/server/src/enterprise/controllers/workspace.controller.ts
Comment thread packages/server/src/enterprise/controllers/workspace.controller.ts
Comment thread packages/server/src/enterprise/controllers/workspace.controller.ts
Comment thread packages/server/src/enterprise/controllers/workspace.controller.ts
@yau-wd yau-wd requested a review from igor-magun-wd July 14, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants