Skip to content
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

[Data masking] Core data masking algorithm #11686

Merged
merged 39 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a60694e
Create some tests and stub of mask function
jerelmiller Mar 14, 2024
ae85873
Skip all but first test
jerelmiller Mar 14, 2024
6ad0687
Add typename selection to all queries in test
jerelmiller Mar 14, 2024
c0ef7a1
Add implementation to get basic masking in place
jerelmiller Mar 14, 2024
ae859d3
Add implementation to mask array data
jerelmiller Mar 14, 2024
b30cacd
Get masking working with inline fragments
jerelmiller Mar 14, 2024
acc9da0
Remove skip on tests that are working
jerelmiller Mar 14, 2024
e85702d
Enable test that checks no fragments
jerelmiller Mar 14, 2024
0229340
Fix masking on arrays
jerelmiller Mar 14, 2024
7c33099
Track known selection sets
jerelmiller Mar 15, 2024
4be09c3
Add array to referential integrity test
jerelmiller Mar 15, 2024
27b86c8
Add obj nested obj that didn't change to referential integrity test
jerelmiller Mar 15, 2024
1b0341c
Add logic to ensure referential integrity is kept
jerelmiller Mar 15, 2024
7991303
Add additional tests that check combinations of inline fragments
jerelmiller Mar 15, 2024
f1401fd
Beef up referential equality tests and skip them for now
jerelmiller Mar 15, 2024
b461ab8
Get working implementation of all inline fragments
jerelmiller Mar 15, 2024
5fc96d7
Fix incorrect query for test
jerelmiller Mar 15, 2024
9aeed6a
Small refactor to matching type condition
jerelmiller Mar 15, 2024
91e7477
Add policies as requirement to mask function
jerelmiller Mar 15, 2024
598e1cc
Configure possible types for inline fragment tests
jerelmiller Mar 15, 2024
dbff072
Add one more edge case for inline fragment matches
jerelmiller Mar 15, 2024
7a05a04
Add dataMasking option to the client and pass it through to query man…
jerelmiller Mar 18, 2024
07eb8f8
Mask the result before returning result
jerelmiller Mar 18, 2024
dc91836
Add first test for data masking
jerelmiller Mar 18, 2024
ff02b3d
Fix typo
jerelmiller May 15, 2024
b8f562c
Ensure object references are maintained properly
jerelmiller May 15, 2024
3f5fae2
Track changes with flag instead of using deep equality check
jerelmiller May 15, 2024
1e80462
Remove data masking from rest of client for now
jerelmiller May 15, 2024
d38d123
Use generic function to match on fragment types
jerelmiller May 15, 2024
3d483f0
Don't return top-level data object
jerelmiller May 15, 2024
22d2edd
Minor tweak to types
jerelmiller May 15, 2024
89fc543
Add test to ensure inline fragments that don't match are handled
jerelmiller May 15, 2024
695fc1f
Remove unneeded result argument
jerelmiller May 16, 2024
ec46225
Add test to ensure field aliases are handled
jerelmiller May 16, 2024
64b7ec1
Minor tweak to code flow for field masking
jerelmiller May 16, 2024
94e0487
Use null prototype for created objects
jerelmiller May 16, 2024
045040b
Export deepFreeze function but retain public exports
jerelmiller May 16, 2024
7a33acf
Deep freeze objects in test to ensure they don't get modified
jerelmiller May 16, 2024
d4f02f2
Add field alias to inline fragment
jerelmiller May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading