-
Notifications
You must be signed in to change notification settings - Fork 119
BE-310: Protect sensitive properties from enumeration attacks #8332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
TimDiekmann
merged 30 commits into
main
from
t/be-310-dont-allow-filtering-users-by-email
Feb 6, 2026
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
dc3f49d
BE-310: Add filter protection to prevent email enumeration attacks
TimDiekmann 8e552b5
BE-310: Use Filter::In with TypeBaseUrls for multi-type entity support
TimDiekmann 10fbd57
Update Rust formatting command in lefthook pre-commit hook
TimDiekmann 5ef15ef
BE-310: Fix clippy warnings in filter protection code
TimDiekmann dbbff23
BE-310: Exclude email from embedding generation for User entities
TimDiekmann b6c0333
BE-310: Skip filter transformation when protection config is empty
TimDiekmann 9bea7c9
BE-310: Add multi-property and multi-type filter protection tests
TimDiekmann d3eed40
BE-310: Add truth tables for multi-property and multi-type tests
TimDiekmann 200ffc4
BE-310: Fix clippy warnings in filter protection tests
TimDiekmann 06377a4
BE-310: Add ActorId support for self-exclusion bypass in filter proteβ¦
TimDiekmann 2ae379a
BE-310: Add property masking in SELECT statements
TimDiekmann 9561f9d
WIP: BE-310 embedding filtering
TimDiekmann 9d533e8
BE-310: Remove email masking from Node API and optimize getUser
TimDiekmann 014d9a2
BE-310: Bypass filter protection for instance admins
TimDiekmann 062b897
Remove excludedProperties handling from AI embedding generation
TimDiekmann 7e92ee4
Remove unused imports from hash-ai-worker-ts activities and workflows
TimDiekmann d904dd1
Remove outdated doc comment and enhance property protection examples in
TimDiekmann d90e8c3
Fix error handling in getWebShortname to return null on failure
TimDiekmann 7a7cc8a
Verify entity type in getUser to ensure it is a User
TimDiekmann a4e3d64
User `Parameter` over `Constant`s for filtering in properties
TimDiekmann cd65b3b
Fix syntax error in SELECT query parameter casting
TimDiekmann 56cc104
Remove unused property filter compilation methods from Postgres query
TimDiekmann cc97347
Use snapshot settings when creating Postgres connection pool
TimDiekmann 9c77148
Remove unused imports in Postgres query compilation code
TimDiekmann d90a8e1
Apply property masking to traversed entities in subgraph queries
TimDiekmann e32d415
Fix property masking order in subgraph traversal
TimDiekmann 625afdd
Extract user entity type check into isUserEntity helper function
TimDiekmann 4263f1b
Use type-only imports in workflows.ts for clarity
TimDiekmann 2f45f6f
Remove private IP exceptions from Kratos dev config for webhooks
TimDiekmann 9806505
Initialize email property metadata in getUser function
TimDiekmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.