Flagsmith / Flagsmith/flagsmith-sql-flag-engine

RE2-unsafe regex patterns: audit production segments and decide fallback policy

オープン
#3 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

The translator returns `None` for any `REGEX` condition whose pattern contains:
- Backreferences (`\1`–`\9`)
- Lookarounds (`(?=`, `(?!`, `(?<=`, `(?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with `_RE2_UNSAFE` in `src/flagsmith_sql_flag_engine/translator.py` and inspect the engine-test-data suite. Run the proposed `REGEXP_LIKE` audit against the segments table’s `rules` JSON column to measure usage of backreferences and lookarounds. Done means the prevalence is recorded, a fallback policy is chosen, and the corresponding behavior is implemented and validated.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python, sql
領域
backend-api-design, databases
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。