Complexity limits: max joins, max nesting depth and cartesian products
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with src/sqlguardllm/rules/complexity.py and src/sqlguardllm/policy.py to see how existing rules and policy options are declared, then read tests/corpus/complexity.yaml for the corpus format. Implement max_joins, max_subquery_depth and forbid_cartesian, all off by default, with the too_complex code and English and Spanish messages. Done when the new corpus cases pass and comma joins linked by WHERE still pass. This depends on #3, so check that issue first.
索引モデルが issue の本文から書いたものです。
説明
Goal
Stop queries that are too expensive or too convoluted to be what the user asked for (docs/DESIGN.md#complexity-limits).
Acceptance criteria
-
max_joins,max_subquery_depthandforbid_cartesianpolicy options, all off by default - Joins are counted across all scopes; depth counts nested subqueries and CTEs
-
forbid_cartesianrejects joins withoutON/USINGwhose tables aren't linked by an equality inWHERE, and explicitCROSS JOIN - New violation code
too_complexwith messages in English and Spanish - Corpus cases for each limit, plus comma joins with a linking
WHEREthat must keep working
Relevant files
src/sqlguardllm/rules/complexity.pysrc/sqlguardllm/policy.pytests/corpus/complexity.yaml
Size
M (1-2 days)
Notes
- Depends on: #3
- Milestone: v0.3 · More power
- Design: docs/DESIGN.md · threat model · attack gallery
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- 平均マージ
- 1分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jmmana/sqlguardllm のほかの issue
-
area:security good first issue size:s type:feature
難易度 2/5 半日 初心者へのやさしさ 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
難易度 4/5 半日 初心者へのやさしさ 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
難易度 4/5 1〜2日 初心者へのやさしさ 30/100
jmmana/sqlguardllm#37 ·
-
area:integrations help wanted size:m type:feature
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
jmmana/sqlguardllm#35 ·
jmmana/sqlguardllm の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug (unverified)
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
scikit-hep/awkward#4581 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ci-cd priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
LearningCircuit/local-deep-research#9163 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
supersonic-lumina/ENM156#50 ·
メンテナーはふだん 2 日以内に返信