Skip to content

docs: explain the shared account request allowance - #324

Merged
zZebrahz merged 2 commits into
mainfrom
docs/shared-account-allowance
Nov 1, 2026
Merged

zZebrahz merged 2 commits into
mainfrom
docs/shared-account-allowance

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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 on docs/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

Page Change Preview
Configuration Rate limiting: explains Per address and account and the shared account allowance Open
Manage API keys New section "Change a key's rate limit" Open

What changed on each page

Configuration

  • New paragraph on Per address and account: each address gets the values entered, and an account gets four times that. With the defaults of 120, 6000 and 120, that's 480 requests per second, 24000 per minute and a burst of 480. Raising the address values raises the account allowance. It also says why: one busy address can use at most a quarter of its account.
  • New paragraph: profiles, sessions, devices and API keys share the account allowance, and switching profiles, signing in again or adding a key doesn't add requests. A key's own limit also applies, and Elevated doesn't raise the account allowance. Separate accounts behind one proxy each get their own allowance, but still share the address and whole-server limits.
  • The Jellyfin-compatible apps paragraph now lists the account limit with the per-address and server-wide limits.

Manage API keys

  • The Edit rate limit sentence moves out of "Replace a key" into its own section, "Change a key's rate limit", and says where the button is.
  • Adds that every key shares its owner's account allowance, and that choosing Elevated or creating another key doesn't raise it.

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

  • Requests made before signing in don't spend an account allowance, and the account check runs before the whole-server check. Both are mechanism, and the server's docs/auth-api.md covers them.
  • Audiobookshelf-compatible apps: their listener isn't rate limited, so the page doesn't mention them.

Evidence

Source reviewed, not tested on a live server or device:
silo-server 07c05cad6 (includes #2719, merged as 709381437), siloserver.org 62cbcf0.

  • internal/ratelimit/middleware.go: accountBudgetMultiplier = 4 and accountRate derive the account allowance from the per-address settings. allowAccount keys 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.

bun run test:docs   ℹ pass 8  ℹ fail 0
bun run build       106 page(s) built; All internal links are valid.
git diff --check    clean

Follow-ups

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, GitHub CLI, git, bun
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified. The first commit is Quick104's Codex-assisted draft, cherry-picked unchanged except for resolving a conflict.
  • Adversarial review: n/a

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.

  • In api-keys.md, adds guidance on changing a key's limit in the admin interface and notes the shared allowance.
  • In configuration.md, explains how per-address and account limits relate, including the four-times account allowance and defaults. Also notes separate accounts behind a proxy get separate allowances but share address and server limits, and updates the Jellyfin-compatible apps description.

Macroscope summarized 898f753.

Quick104 and others added 2 commits October 31, 2026 15:57
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.
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0eba74f7-fc1e-4ce0-9853-3c1729ba092f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

silo-kody Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

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.

@zZebrahz
zZebrahz merged commit de614df into main Nov 1, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 898f7532 Deployed Nov 1, 2026 by zZebrahz via teardown #154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: explain the shared account request allowance

2 participants