Repository navigation
docs: explain the shared account request allowance - #324
Merged
Merged
Conversation
Co-authored-by: Codex <[email protected]>
Silo-Server/silo-server#2719 sized the account allowance at four times the per-address settings. Correct the defaults, explain the four-times size, and give the API key rate limit its own section.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #257
Silo-Server/silo-server#2719 added one request allowance that everyone signed in to an account shares, sized at four times the per-address settings. The docs didn't mention it, so admins couldn't tell why a household with several profiles, devices or API keys hit
429, or why choosing Elevated on a key didn't help. Quick104 drafted this ondocs/account-rate-allowance(kept here as the first commit) before the four-times sizing landed, so that draft said both allowances default to 120/6000/120.Pages changed
What changed on each page
Configuration
Manage API keys
Worth checking: the new heading on the API keys page. It moves the existing Edit rate limit sentence, which sat under "Replace a key". No existing link points at it.
Left out on purpose
docs/auth-api.mdcovers them.Evidence
Source reviewed, not tested on a live server or device:
silo-server
07c05cad6(includes #2719, merged as709381437), siloserver.org62cbcf0.internal/ratelimit/middleware.go:accountBudgetMultiplier = 4andaccountRatederive the account allowance from the per-address settings.allowAccountkeys it by account ID, independent of profile, session, credential and forwarding headers. The key's tier check runs separately.internal/ratelimit/ratelimit.go: defaults of 120 per second, 6000 per minute and burst 120 per address. The Elevated tier defaults to 100/6000/100.internal/jellycompat/auth.go,auth_api_key.go: Jellyfin-compatible sessions and keys charge the owning account.web/src/pages/admin-settings/SecurityAccessSettings.tsx: the Per address and account label.web/src/pages/AdminApiKeys.tsx: Edit rate limit, Standard, Elevated.Needs a hands-on check: Nothing.
Follow-ups
Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Document shared account rate-limit allowance in API keys and configuration docs
Explains that an account's rate-limit allowance is shared across its profiles, sessions, devices, and API keys, and that Elevated keys or extra keys do not raise it.
Macroscope summarized 898f753.