Title: apply_data_source method matches by name only, without filtering by project in shared registry scenario · Issue #6206 · feast-dev/feast · GitHub
Open Graph Title: apply_data_source method matches by name only, without filtering by project in shared registry scenario · Issue #6206 · feast-dev/feast
X Title: apply_data_source method matches by name only, without filtering by project in shared registry scenario · Issue #6206 · feast-dev/feast
Description: Current Behavior The issue is in sdk/python/feast/infra/registry/registry.py. When multiple projects share the same registry and have data sources with the same name (like the default vals_to_add), the apply_data_source method matches by...
Open Graph Description: Current Behavior The issue is in sdk/python/feast/infra/registry/registry.py. When multiple projects share the same registry and have data sources with the same name (like the default vals_to_add),...
X Description: Current Behavior The issue is in sdk/python/feast/infra/registry/registry.py. When multiple projects share the same registry and have data sources with the same name (like the default vals_to_add),...
Opengraph URL: https://github.com/feast-dev/feast/issues/6206
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"apply_data_source method matches by name only, without filtering by project in shared registry scenario","articleBody":"## Current Behavior\n\nThe issue is in `sdk/python/feast/infra/registry/registry.py`. When multiple projects share the same registry and have data sources with the same name (like the default `vals_to_add`), the `apply_data_source` method matches by name only, without filtering by project, causing cross-project overwriting.\n\n\n**Correctly scoped (name + project)**:\n\napply_entity (line 349-352):\n```\nif (existing_entity_proto.spec.name == entity_proto.spec.name\n and existing_entity_proto.spec.project == project):\n```\napply_feature_service (line 447-451):\n```\nif (existing_feature_service_proto.spec.name == feature_service_proto.spec.name\n and existing_feature_service_proto.spec.project == project):\n```\napply_feature_view (line 779-781):\n```\nif (existing_feature_view_proto.spec.name == feature_view_proto.spec.name\n and existing_feature_view_proto.spec.project == project):\n```\n\n**BUG** - name-only matching, no project filter:\n\napply_data_source (line 396-397):\n```\n for idx, existing_data_source_proto in enumerate(registry.data_sources):\n if existing_data_source_proto.name == data_source.name:\n```\ndelete_data_source (line 426):\n\n` if data_source_proto.name == name:`\n\n\n## Steps to reproduce\n\n- feast apply for project test registers vals_to_add with project=test\n- feast apply for project test1 iterates all data_sources, finds vals_to_add from project test (matched by name only, no project check)\n- The equality check fails (they differ - at minimum different internal state), so it deletes the test version and adds a new one with project=test1\n\n### Specifications\n\n- Version: latest\n\n## Possible Solution\n\nThe fix would be to add the project filter to both apply_data_source and delete_data_source:\n```\n\n# apply_data_source fix (line 397):\nif existing_data_source_proto.name == data_source.name and existing_data_source_proto.project == project:\n\n# delete_data_source fix (line 426):\nif data_source_proto.name == name and data_source_proto.project == project:\n```","author":{"url":"https://github.com/ntkathole","@type":"Person","name":"ntkathole"},"datePublished":"2026-04-01T05:03:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6206/feast/issues/6206"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f0082c03-d99b-4915-b40c-65d182fa57f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9D6:33E8BE:C495AA:11EB282:6A4E24CE |
| html-safe-nonce | 2e35cabe642c300e62dc29389e66bd60c5e49b0e4d36cd0e229c98323759d9ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUQ2OjMzRThCRTpDNDk1QUE6MTFFQjI4Mjo2QTRFMjRDRSIsInZpc2l0b3JfaWQiOiIxODUwNTE1NjE3OTM0NjE1NzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9994cd28f427d3cf9cce0c86aa99e8cfdb4a0ce2c164b5fbbea5ee80b1e3af43 |
| hovercard-subject-tag | issue:4184109069 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6206/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c29ac6564aa60e1fa7bdcbd9b04daac16d449d13a49e47ac2e2312c8e8c5dba8/feast-dev/feast/issues/6206 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c29ac6564aa60e1fa7bdcbd9b04daac16d449d13a49e47ac2e2312c8e8c5dba8/feast-dev/feast/issues/6206 |
| og:image:alt | Current Behavior The issue is in sdk/python/feast/infra/registry/registry.py. When multiple projects share the same registry and have data sources with the same name (like the default vals_to_add),... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ntkathole |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width