-
Notifications
You must be signed in to change notification settings - Fork 0
feat(tenant): adopt OR Organisation as tenant identity (closes #405) #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [BLOCKER] Empty-string _tenantId set when neither uuid nor id key present — potential cross-tenant IDOR
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [BLOCKER] Null/empty status silently bypasses lifecycle check — provisioning orgs pass through Guard There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [BLOCKER] Implementation diverges from spec: TenantLifecycleService::isActive() is never called Both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [CONCERN] TenantMiddleware.php SPDX header status unknown — diff starts mid-file The diff for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[BLOCKER] Generic \Exception(code=403) used as control flow — afterException over-matches
The status block throws
new \Exception('Organisation is '.$status, 403). TheafterExceptionhandler intercepts any\Exceptionwith code 403, including exceptions from unrelated code paths. This rewrites unrelated 403 exceptions as organisation-status responses, breaking Nextcloud's exception handling chain. Fix: define and throw a dedicatedTenantNotActiveExceptionclass thatafterExceptionchecks withinstanceof, not by code equality.