Shared registry server enforces only its own home project's Permission policies, breaking per-project isolation for every other project it serves
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
sdk/python/feast/permissions/security_manager.py と permissions/server/utils.py から始め、続いて registry_server.py と matcher.py を通して project フィールドを追跡します。project_a と project_b について PoC の REST リクエストを再現します。各リクエストが REST と gRPC の両方で対象プロジェクトのポリシーを参照し、project_a 専用のトークンでは project_b のリソースにアクセスできない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
reported on 7 July 2026 via https://github.com/feast-dev/feast/security/advisories/GHSA-5px7-7gwg-6g93:
Summary
Feast's registry server (gRPC and REST) is designed to serve multiple projects from a single process - the documented REST API accepts a project query parameter on every request and even has /all endpoints that aggregate results across every project on the server. However, the RBAC SecurityManager that enforces Permission policies is initialized once at server startup using only the server's own configured project, and always loads that one project's permission list for every request it handles, regardless of which project the request actually targets. On a registry server that serves more than one project (an explicitly documented and supported topology), a user who is only granted a role in the server's home project gains that role's access to every other project's resources as well, and permissions defined specifically for those other projects are never consulted at all.
Details
SecurityManager is constructed once when the server starts, bound to the feature store's own project:
# sdk/python/feast/permissions/security_manager.py:24-33
class SecurityManager:
def __init__(self, project: str, registry: BaseRegistry):
self._project = project
self._registry = registry
...
# sdk/python/feast/permissions/server/utils.py:66-84
def init_security_manager(auth_type: AuthManagerType, fs: "feast.FeatureStore"):
...
set_security_manager(SecurityManager(project=fs.project, registry=fs.registry))
fs.project is whatever project: is set in the server process's own feature_store.yaml - a single, fixed value for the life of the process.
Every permission check goes through this same, single SecurityManager instance's permissions property:
# sdk/python/feast/permissions/security_manager.py:50-56
@property
def permissions(self) -> list[Permission]:
return self._registry.list_permissions(project=self._project)
Note this always uses self._project (the server's home project), never anything derived from the current request. Compare this against how every other registry RPC handles the project field - e.g. ListEntities:
# sdk/python/feast/registry_server.py:304-319
def ListEntities(self, request: RegistryServer_pb2.ListEntitiesRequest, context):
paginated_entities, pagination_metadata = apply_pagination_and_sorting(
permitted_resources(
resources=cast(list[FeastObject], self.proxied_registry.list_entities(
project=request.project, # <-- correctly scoped to the REQUESTED project
...
)),
actions=AuthzedAction.DESCRIBE, # permitted_resources -> SecurityManager.permissions,
), # which is scoped to the SERVER's home project, not request.project
...
)
The data fetch is correctly scoped per-request; the permission check that gates it is not. Permission.match_resource (sdk/python/feast/permissions/matcher.py) only matches on resource type, name pattern, and tags - it has no concept of the resource's own project either, so a broad permission (no name_patterns, matching ALL_RESOURCE_TYPES - a completely ordinary way to define a project's reader role) matches resources from any project once it is even considered.
Net effect on a registry server that serves N projects from one process:
- A permission granted only in the server's home project silently applies to every other project's resources too (over-broad grant).
- Permissions that were specifically defined for those other projects are never loaded or consulted at all (the intended, project-owner-defined policy is silently ignored).
PoC
Setup: one Feast REST Registry Server (feast serve_registry --no-grpc --rest-api), one shared SQLite registry, two projects each independently defined via feast apply:
project_a: entityuser_id, feature viewproject_a_secret_metrics, Permissionproject_a_reader_permission=RoleBasedPolicy(roles=["project_a_reader"]),actions=[DESCRIBE]+READ.project_b: entityuser_id, feature viewproject_b_public_metrics, Permissionproject_b_reader_permission=RoleBasedPolicy(roles=["project_b_reader"]),actions=[DESCRIBE]+READ.
The registry server process itself was started from project_a's feature_store.yaml (i.e. its home project is project_a).
A genuine, JWKS-signature-verified token for user bob holding only project_a_reader (no project_b_reader):
$ curl -s -H "Authorization: Bearer $GOODA" "http://127.0.0.1:6572/api/v1/entities?project=project_a"
HTTP_STATUS:200 (expected: bob is a legitimate project_a reader)
The same token, same role, queried against project_b - bob holds no role granted by project_b's own permission (project_b_reader_permission requires project_b_reader), so this should be denied or return an empty/filtered list:
$ curl -s -H "Authorization: Bearer $GOODA" "http://127.0.0.1:6572/api/v1/entities?project=project_b"
{"entities":[{"spec":{"name":"__dummy", ...}},{"spec":{"name":"user_id","joinKey":"user_id"}, ...}]}
HTTP_STATUS:200
Direct fetch of project_b's feature view (including its data source path) with the same project_a-only token:
$ curl -s -H "Authorization: Bearer $GOODA" \
"http://127.0.0.1:6572/api/v1/feature_views/project_b_public_metrics?project=project_b"
{"type":"featureView","spec":{"name":"project_b_public_metrics","entities":["user_id"],
"features":[{"name":"public_score","valueType":"FLOAT"}],"tags":{"owner":"project_b_team","sensitivity":"public"},
"batchSource":{"fileOptions":{"uri":"/.../data/project_b_data.parquet"}, ...}}, ...}
HTTP_STATUS:200
project_b_reader_permission (the policy project_b's own owner defined specifically to gate access to this data) was never consulted - bob's access was granted purely because project_a_reader_permission has no project scoping and matches any Entity/FeatureView regardless of which project it belongs to, combined with the server only ever loading project_a's permission list.
Impact
Any Feast deployment that runs one registry server (gRPC or REST) in front of more than one project - explicitly documented and UI-supported behavior - loses per-project access-control isolation between all of the projects that server serves. A user who is legitimately a low-privilege reader in one project inherits that same access to every other project's entities, feature views, data source definitions (including source file/table paths), and other registry metadata on the same server, while the actual owners of those other projects have no way to restrict it - their own permission definitions are simply never loaded.
version: commit f296d4ba14c5d512429219b2b7845673e0fe524d
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 1.5k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 107
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
feast-dev/feast のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDL対応中かも @liron-velocity が 50 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource field対応中かも @OHMFOHS が 99 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
kind/bug priority/p2
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
feast-dev/feast#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
feast-dev/feast の issue をすべて見る
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6392 ·
メンテナーはふだん 1 日以内に返信
-
memmapped_arange ignores the start value and drops the last point above the memmap threshold対応中かも @prathameshfuke が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信