Respect zero for tenant vector resource limits
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- postgresql, typescript
Research direction
Read the multitenant plugin code that selects tenant limits and the VectorStoreManager enforcement path; the payload does not name their files or tests. Trace how a zero tenant limit is passed through while missing or null values use the global default. Done when zero rejects bucket or index creation and missing or null limits retain the global default.
Written by the indexing model from the issue text.
Description
Bug
In multitenant mode, setting a tenant's vector bucket or index limit to 0 does not disable creation. The plugin uses tenantLimit || globalLimit, so zero is replaced by the global limit before VectorStoreManager enforces it.
Reproduction
Configure features.vectorBuckets.maxBuckets as 0 (or maxIndexes as 0) for a tenant and keep the corresponding global limit above zero. Then create a vector bucket (or index). The request is allowed up to the global limit instead of being rejected at the tenant's zero limit.
The admin tenant schema accepts these finite numeric values, and the multitenant migration stores them as integer limits. VectorStoreManager already rejects creation when the current count is greater than or equal to its configured limit.
Expected
A tenant limit of zero should prevent creation. Missing or null limits should continue to use the global default.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 314
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 88
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/storage
-
Validate tenant integer limits as integersPossibly taken @hsusul claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
S3 HEAD/GET overwrite case-insensitive user metadata collisionsPossibly taken @ferhatelmas claimed this 16 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
supabase/storage#1461 · 1 assignee ·
Maintainers usually reply within 1 day
-
The sample application in storage article points to wrong URLMay be free again @prasadf18 claimed this 196 days ago, and no pull request is open. Opendocumentation
Difficulty 1/5 Under an hour Newbie friendliness 62/100
supabase/storage#557 · 1 comment ·
Maintainers usually reply within 1 day
-
Reject fractional maxResults in vector list operationsPossibly taken @hsusul claimed this 3 days ago. Open
Difficulty 1/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Count S3 Vector key length by Unicode characterPossibly taken @hsusul claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in supabase/storage
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
openclaw/openclaw#182077 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
aikido high security
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markPossibly taken @eric8810 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lyswhut/lx-music-desktop#3026 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
abhigyanpatwari/GitNexus#3704 ·
Maintainers usually reply within 1 day