Skip to content

MOD-7872: Add Types To Hide User Input#5123

Merged
kei-nan merged 17 commits intomasterfrom
master_jk_create_types_to_hide_user_input
Nov 11, 2024
Merged

MOD-7872: Add Types To Hide User Input#5123
kei-nan merged 17 commits intomasterfrom
master_jk_create_types_to_hide_user_input

Conversation

@kei-nan
Copy link
Collaborator

@kei-nan kei-nan commented Oct 20, 2024

Add types that can be used to hide user input.
We want to avoid outputting user data outside the module.

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

  1. Before: there are no types to hide user data
  2. Change: Add types and functions to hide user data
  3. After: Having types that can hide user data

Which issues this PR fixes

  1. MOD-7872

Main objects this PR modified

  1. Obfuscation

Mark if applicable

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

@kei-nan kei-nan self-assigned this Oct 20, 2024
@kei-nan kei-nan force-pushed the master_jk_create_types_to_hide_user_input branch from aad1ecf to 15c38ce Compare October 21, 2024 12:16
@codecov
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 94.28571% with 4 lines in your changes missing coverage. Please review.

Project coverage is 86.52%. Comparing base (85a5415) to head (9f6b1c6).
Report is 76 commits behind head on master.

Files with missing lines Patch % Lines
src/obfuscation/hidden.c 94.28% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5123      +/-   ##
==========================================
+ Coverage   86.36%   86.52%   +0.15%     
==========================================
  Files         190      193       +3     
  Lines       34701    34756      +55     
==========================================
+ Hits        29971    30071     +100     
+ Misses       4730     4685      -45     

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

@kei-nan kei-nan force-pushed the master_jk_create_types_to_hide_user_input branch from 15c38ce to d3ff8c4 Compare October 21, 2024 12:42
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.

  1. In the PR description, I know that you are using the template, but maybe we should show that 1. is the current state, 2. is the change done, 3. is the outcome. WDYT?
  2. This is part of a bigger feature, then tests will be added later, right?

@kei-nan kei-nan requested a review from nafraf October 23, 2024 07:43
@kei-nan kei-nan force-pushed the master_jk_create_types_to_hide_user_input branch 2 times, most recently from 21e90e6 to 2ff2a11 Compare October 27, 2024 16:27
Base automatically changed from master_jk_obfuscation_api to master November 6, 2024 13:03
nafraf
nafraf previously approved these changes Nov 7, 2024
@kei-nan kei-nan force-pushed the master_jk_create_types_to_hide_user_input branch from 97290f7 to ca2494d Compare November 10, 2024 07:23
@kei-nan kei-nan enabled auto-merge November 11, 2024 11:50
@kei-nan kei-nan added this pull request to the merge queue Nov 11, 2024
Merged via the queue into master with commit d63f42a Nov 11, 2024
@kei-nan kei-nan deleted the master_jk_create_types_to_hide_user_input branch November 11, 2024 15:03
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Nov 11, 2024
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
@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 12, 2024
MOD-7872: Add Types To Hide User Input (#5123)

* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)

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-5123-to-2.8 origin/2.8
cd .worktree/backport-5123-to-2.8
git switch --create backport-5123-to-2.8
git cherry-pick -x d63f42af36fc201d38903715786f9df06b94023d

@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-5123-to-2.6 origin/2.6
cd .worktree/backport-5123-to-2.6
git switch --create backport-5123-to-2.6
git cherry-pick -x d63f42af36fc201d38903715786f9df06b94023d

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Jan 8, 2025
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

@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-5123-to-8.0 origin/8.0
cd .worktree/backport-5123-to-8.0
git switch --create backport-5123-to-8.0
git cherry-pick -x d63f42af36fc201d38903715786f9df06b94023d

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

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
kei-nan added a commit that referenced this pull request Jan 8, 2025
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
kei-nan added a commit that referenced this pull request Jan 9, 2025
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
kei-nan added a commit that referenced this pull request Jan 9, 2025
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
MOD-7872: Add Types To Hide User Input (#5123)

* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)

Co-authored-by: kei-nan <[email protected]>
kei-nan added a commit that referenced this pull request Jan 9, 2025
* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
MOD-7872: Add Types To Hide User Input (#5123)

* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)
github-merge-queue bot pushed a commit that referenced this pull request Feb 26, 2025
* MOD-7872: Add Types To Hide User Input (#5123)

* MOD-7872: initial commit

* * modify hidden types

* * compilation fixes

* * get recent updates

* * update hidden

* Apply suggestions from code review

Apply suggestions

Co-authored-by: nafraf <[email protected]>

* * add tests

* * fix hidden test
* move obfuscated types to their own header

* * add coverage
* update length on clone

* * remove obfuscated types

* * add more testing for more coverage

* * add testHiddenDropFromKeySpace for more coverage
* implemented missing mock functions to support the new test

* * remove obfuscate redundant function

* * set correct reply type

* * add missing code to get the cpp tests to pass

* * free ctx in test

* * Code Review - Round #1

---------

Co-authored-by: nafraf <[email protected]>
(cherry picked from commit d63f42a)

* * fix compilation

* * add bool include

* * wrong function name
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