Epic: Add granular trait control for client-side SDKs

オープン
#6,822 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, react
領域
full-stack

調査の方向性

Environment settings UI と既存の allow_client_traits 設定から始め、Edge API の動作と Core API の動作を比較し、#6739 と Edge API #546 を確認します。Persist が allow_client_traits を制御し、Use in evaluation が allow_client_traits_in_evaluation を制御し、SaaS 専用の grandfathering によって既存の無効な環境が維持され、新しい環境では意図した動作が使用されれば完了です。

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

説明

The Edge API uses client-sent traits for segment evaluation even when allow_client_traits is disabled — a security gap that lets untrusted clients influence segment matching. The Core API correctly drops these traits.

Rather than silently changing evaluation behaviour for ~2% of paid SaaS customers who have this toggle disabled, we're adding a new environment-level field allow_client_traits_in_evaluation with a grandfathering SaaS-only migration so existing environments keep working while new environments get correct behaviour.

The Environment settings UI should reflect the new field and include a section that allows to define a policy in regards to traits sent over by client-side SDKs:

  • The existing allow_client_traits should be controlled by the "Persist" toggle.
  • The new allow_client_traits_in_evaluation field should be controlled by "Use in evaluation" toggle.
References
主要言語
Python
スター
9.9k
フォーク
658
平均マージ
1日 15時間
マージ済み PR(30日)
168

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Flagsmith/flagsmith のほかの issue

Flagsmith/flagsmith の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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