Skip to content

fix: Isolate default user permissions - #6729

Merged
ntkathole merged 1 commit into
feast-dev:masterfrom
Nikhi00718:fix/independent-user-permissions
Aug 14, 2026
Merged

fix: Isolate default user permissions#6729
ntkathole merged 1 commit into
feast-dev:masterfrom
Nikhi00718:fix/independent-user-permissions

Conversation

@Nikhi00718

@Nikhi00718 Nikhi00718 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

User previously used three mutable list objects as constructor defaults. All users created without explicit permissions therefore shared the same roles, groups, and namespaces lists. Mutating one user's default collection could unexpectedly change another user's effective authorization state.

This change creates a fresh list for each omitted permission collection and adds a regression test covering all three fields. Explicitly supplied lists keep the existing behavior.

Which issue(s) this PR fixes:

No existing issue or pull request matched this bug. The draft PR starts the discussion as allowed by Feast's contribution guide.

Checks

  • I've made sure the focused regression test is passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Validation performed:

  • uvx ruff check sdk/python/feast/permissions/user.py sdk/python/tests/unit/permissions/test_user.py
  • uvx ruff format --check sdk/python/feast/permissions/user.py sdk/python/tests/unit/permissions/test_user.py
  • isolated execution of the new regression test with the repository source ? 1 passed

The repository's full unit-test environment did not finish resolving within the local execution window, so that limitation is documented here and the broader suite is left to CI.

Misc

Release note

Fix default Feast users sharing mutable roles, groups, and namespaces lists.

AI assistance disclosure

I identified and reproduced the issue, then used OpenAI Codex to assist with the implementation and regression-test work. I personally reviewed the resulting diff and ran the validation commands listed above to verify the fix. Any full-suite or local-environment limitations are documented in the validation section.

@Nikhi00718
Nikhi00718 marked this pull request as ready for review August 12, 2026 12:29
@Nikhi00718
Nikhi00718 requested a review from a team as a code owner August 12, 2026 12:29
@codecov-commenter

codecov-commenter commented Aug 14, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.80%. Comparing base (97b0f25) to head (3199ae6).
⚠️ Report is 2 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6729      +/-   ##
==========================================
- Coverage   46.81%   46.80%   -0.01%     
==========================================
  Files         415      415              
  Lines       50399    50399              
  Branches     7214     7214              
==========================================
- Hits        23592    23591       -1     
  Misses      25157    25157              
- Partials     1650     1651       +1     
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 48.13% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
sdk/python/feast/permissions/user.py 97.22% <100.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e56578d...3199ae6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: NIKHIL <atnikhil06@gmail.com>
@ntkathole
ntkathole force-pushed the fix/independent-user-permissions branch from c1cd49b to 3199ae6 Compare August 14, 2026 06:18
@ntkathole
ntkathole merged commit e37adbf into feast-dev:master Aug 14, 2026
17 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants