Skip to content

MOD-7864: Obfuscation API#5060

Merged
kei-nan merged 12 commits intomasterfrom
master_jk_obfuscation_api
Nov 6, 2024
Merged

MOD-7864: Obfuscation API#5060
kei-nan merged 12 commits intomasterfrom
master_jk_obfuscation_api

Conversation

@kei-nan
Copy link
Collaborator

@kei-nan kei-nan commented Sep 30, 2024

Introduce an obfuscation api

A clear and concise description of what the PR is solving, including:

  1. No obfuscation when outputting data
  2. Add an API to be used for obfuscating user data
  3. Having an obfuscation API

Which issues this PR fixes

  1. MOD-7864

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@kei-nan kei-nan requested a review from nafraf September 30, 2024 09:36
@kei-nan kei-nan self-assigned this Sep 30, 2024
@codecov
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 98.41270% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.31%. Comparing base (3e07eff) to head (364ee9c).
Report is 88 commits behind head on master.

Files with missing lines Patch % Lines
src/obfuscation/obfuscation_api.c 98.41% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5060      +/-   ##
==========================================
+ Coverage   86.30%   86.31%   +0.01%     
==========================================
  Files         190      191       +1     
  Lines       34604    34667      +63     
==========================================
+ Hits        29864    29924      +60     
- Misses       4740     4743       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kei-nan kei-nan requested a review from nafraf October 6, 2024 06:23
@kei-nan kei-nan force-pushed the master_jk_obfuscation_api branch from d4f29ef to f3284ea Compare October 13, 2024 08:35
@kei-nan kei-nan requested a review from nafraf October 21, 2024 14:03
@kei-nan kei-nan requested a review from nafraf October 22, 2024 11:34
Copy link
Collaborator

@nafraf nafraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's ok, only two simple questions.

@kei-nan kei-nan requested a review from nafraf November 6, 2024 08:05
@kei-nan kei-nan enabled auto-merge November 6, 2024 08:06
@kei-nan kei-nan added this pull request to the merge queue Nov 6, 2024
Merged via the queue into master with commit 9235579 Nov 6, 2024
@kei-nan kei-nan deleted the master_jk_obfuscation_api branch November 6, 2024 13:03
@kei-nan
Copy link
Collaborator Author

kei-nan commented Nov 6, 2024

/backport

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Nov 6, 2024
* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2024
MOD-7864: Obfuscation API (#5060)

* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)

Co-authored-by: kei-nan <[email protected]>
@kei-nan
Copy link
Collaborator Author

kei-nan commented Jan 8, 2025

/backport

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.8, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.8
git worktree add -d .worktree/backport-5060-to-2.8 origin/2.8
cd .worktree/backport-5060-to-2.8
git switch --create backport-5060-to-2.8
git cherry-pick -x 9235579a58d0cd02ff81a8f9fc471cd67b32d6a2

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.6
git worktree add -d .worktree/backport-5060-to-2.6 origin/2.6
cd .worktree/backport-5060-to-2.6
git switch --create backport-5060-to-2.6
git cherry-pick -x 9235579a58d0cd02ff81a8f9fc471cd67b32d6a2

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.10, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.10
git worktree add -d .worktree/backport-5060-to-2.10 origin/2.10
cd .worktree/backport-5060-to-2.10
git switch --create backport-5060-to-2.10
git cherry-pick -x 9235579a58d0cd02ff81a8f9fc471cd67b32d6a2

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 8.0, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 8.0
git worktree add -d .worktree/backport-5060-to-8.0 origin/8.0
cd .worktree/backport-5060-to-8.0
git switch --create backport-5060-to-8.0
git cherry-pick -x 9235579a58d0cd02ff81a8f9fc471cd67b32d6a2

kei-nan added a commit that referenced this pull request Jan 8, 2025
* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)
kei-nan added a commit that referenced this pull request Jan 8, 2025
* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)
kei-nan added a commit that referenced this pull request Jan 8, 2025
* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
MOD-7864: Obfuscation API (#5060)

* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
* MOD-7864: Obfuscation API (#5060)

* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)

* * fix compilation

* * forward declare index spec in query_node.h

* * fix test
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
* MOD-7864: Obfuscation API (#5060)

* MOD-7864: initial commit

* * modify object obfuscate api

* * compilation fixes

* * fix tests

* * add query node obfuscation test

* * Code Review - Round #1

* * add field path obfuscation
* update tests

* * Code Review - Round #2

* * Code Review - Round #3

* * Code Review - Round #4

* * add MAX_UNIQUE_ID_TEXT_LENGTH_UPPER_BOUND, compute it based on sizeof t_uniqueId

* * add copyright

(cherry picked from commit 9235579)

* * fix compilation

* * forward declare index spec in query_node.h

* * compilation fix

* * fix test
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.

2 participants