Title: SnowflakeRegistry._apply_object UPDATE path missing project_id filter - cross-project overwrites · Issue #6208 · feast-dev/feast · GitHub
Open Graph Title: SnowflakeRegistry._apply_object UPDATE path missing project_id filter - cross-project overwrites · Issue #6208 · feast-dev/feast
X Title: SnowflakeRegistry._apply_object UPDATE path missing project_id filter - cross-project overwrites · Issue #6208 · feast-dev/feast
Description: Summary SnowflakeRegistry.apply_object in sdk/python/feast/infra/registry/snowflake.py omits project_id from the WHERE clause on the UPDATE path, allowing an apply* call for one project to overwrite a same-named object belonging to a dif...
Open Graph Description: Summary SnowflakeRegistry.apply_object in sdk/python/feast/infra/registry/snowflake.py omits project_id from the WHERE clause on the UPDATE path, allowing an apply* call for one project to overwrit...
X Description: Summary SnowflakeRegistry.apply_object in sdk/python/feast/infra/registry/snowflake.py omits project_id from the WHERE clause on the UPDATE path, allowing an apply* call for one project to overwrit...
Opengraph URL: https://github.com/feast-dev/feast/issues/6208
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SnowflakeRegistry._apply_object UPDATE path missing project_id filter - cross-project overwrites","articleBody":"**Summary**\n\nSnowflakeRegistry._apply_object in `sdk/python/feast/infra/registry/snowflake.py` omits project_id from the WHERE clause on the UPDATE path, allowing an apply_* call for one project to overwrite a same-named object belonging to a different project.\n\n**Problem**\n\nThe _apply_object helper has two SQL branches:\n\n- SELECT (existence check) — correctly scoped:\n`SELECT ... WHERE project_id = '{project}' AND {id_field} = '{name}'`\n- UPDATE (overwrite) — missing project_id:\n`UPDATE ... WHERE {id_field} = '{name}'`\n\nBecause the UPDATE does not include project_id in its WHERE clause, it matches all rows with that name across every project (when registry is shared). This affects every resource type that goes through `_apply_object`: entities, data sources, feature views, feature services, saved datasets, validation references, permissions, and infrastructure objects.\n\n**Reproducer**\n\n- Create a Snowflake-backed registry shared by two projects (project_a and project_b).\n- In project_a, run feast apply with an entity named driver.\n- In project_b, run feast apply with an entity also named driver (but with different configuration).\n- Query project_a's driver entity — it now reflects project_b's definition because the UPDATE overwrote the row without filtering by project_id.\n\n**Expected behavior**\n\nThe UPDATE query should include project_id in the WHERE clause so that only the row for the correct project is updated:\n\n`UPDATE ... WHERE project_id = '{project}' AND {id_field} = '{name}'`\n\n**Impact**\n\nAffects all resource types (entities, data sources, feature views, feature services, saved datasets, validation references, permissions, infra objects).\nAny multi-project deployment sharing a Snowflake registry is at risk of silent data corruption.\n\nNote: The DELETE path (_delete_object) correctly includes project_id, so this bug is limited to the update/overwrite path.\n\n\n","author":{"url":"https://github.com/ntkathole","@type":"Person","name":"ntkathole"},"datePublished":"2026-04-01T05:26:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6208/feast/issues/6208"}
| 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:fd738a1f-30da-cdd6-950b-c65acc3e4d1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8A2:47423:5DFA3F2:840B653:6A5002DD |
| html-safe-nonce | ffd596d20451823f158b24b8611e68c72a63c9c26eef80b306e7764482a28cc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEEyOjQ3NDIzOjVERkEzRjI6ODQwQjY1Mzo2QTUwMDJERCIsInZpc2l0b3JfaWQiOiIyOTk3NjE2NDM2ODMzMTU3ODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 64555bfa1ce95775b5df6f7ee713fe83ecd7335db85a72c5860c709ae1d7ff12 |
| hovercard-subject-tag | issue:4184217195 |
| 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/6208/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9503958030bbe14290dce968191d5192e34d3c572c7f349b2cd8b8826dac6f99/feast-dev/feast/issues/6208 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9503958030bbe14290dce968191d5192e34d3c572c7f349b2cd8b8826dac6f99/feast-dev/feast/issues/6208 |
| og:image:alt | Summary SnowflakeRegistry.apply_object in sdk/python/feast/infra/registry/snowflake.py omits project_id from the WHERE clause on the UPDATE path, allowing an apply* call for one project to overwrit... |
| 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 | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| 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 | e155b8a71f9284454f73118dfe5e634e74f7afb3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width