Cap and throttle channel tokens on the public v1 channel list
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
調査の方向性
Start with contentcuration/kolibri_public/views_v1.py, especially _get_channel_list_v1 and get_public_channel_lookup, then inspect the project’s DRF throttling configuration and tests for these endpoints. Check how cache_page affects list throttling. Done means requests with 51 tokens return 400, each endpoint limits anonymous requests to 60 per minute per IP, and tests cover the 50/51 token boundary and rate limits.
索引モデルが issue の本文から書いたものです。
説明
Overview
/api/public/v1/channels accepts any number of channel tokens in its tokens parameter, with no login and no rate limit, and reports which tokens matched. The v1 lookup endpoint checks one token per request, also without a rate limit. Unlisted channel tokens come from a space of 2^32 values, so a client can test hundreds of guesses per request without limit.
Complexity: Low
Target branch: hotfixes
Context
_get_channel_list_v1splitstokenson commas with no limit, and matches them against secret tokens.get_public_channel_lookup(/api/public/v1/channels/lookup/<token>) also matches one token per request, anonymously and without a rate limit.- Studio configures no DRF throttling. The channel list is wrapped in
cache_page, so a repeated identical URL is served from cache before any DRF throttle runs.
The Change
tokensshould accept at most 50 tokens per request.- The v1 channel list and the v1 channel lookup should each be throttled to 60 anonymous requests per minute per IP, using DRF throttling.
Acceptance Criteria
General
- A request with more than 50 tokens returns 400.
- The 61st channel list request from one IP within a minute, each with a different
tokensvalue, returns 429. - The 61st channel lookup request from one IP within a minute returns 429.
- Requests with up to 50 tokens and within the rate return the same response as before.
Testing
- Tests cover 50 and 51 tokens, and requests over the rate on both endpoints.
AI usage
I set the token cap and the rate. Claude Code found this gap and drafted this issue.
- 主要言語
- Python
- スター
- 212
- フォーク
- 321
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
Community library status changes don't update `date_updated`対応中かも @ArpitaSamanta10 が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
learningequality/studio#6414 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
learningequality/studio#6410 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
learningequality/studio#6409 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6407 ·
メンテナーはふだん 1 日以内に返信
-
Stripe webhook accepts events when no webhook secret is configured対応中かも @adibmbrk が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6404 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
readthedocs/readthedocs-builder#73 ·
メンテナーはふだん 1 日以内に返信
-
area: ci bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
hffgzktbcc-blip/ounce-core#484 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
vllm-project/vllm-torchtpu#3395 ·
メンテナーはふだん 1 日以内に返信
-
Hermes plugin: MITM-domain discovery misses the model: block (provider/base_url nested under model:) — traffic blind-tunnels silently, zero compression対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ranxianglei/billion-context#7063 ·
メンテナーはふだん 1 日以内に返信