-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: support more sensitive fields for encryption #11095
Merged
shreemaan-abhishek
merged 15 commits into
apache:master
from
shreemaan-abhishek:feat/add-more
Mar 29, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
648800d
feat: support more sensitive fields for encryption
shreemaan-abhishek dc6999d
remove unwanted changes
shreemaan-abhishek 84caf22
revert
shreemaan-abhishek 79e6b26
cover jwe-decrypt
shreemaan-abhishek dc80600
test for redis
shreemaan-abhishek d0c1689
openwhisk test
shreemaan-abhishek 3e03564
revert conn test
shreemaan-abhishek 6b0f325
test oidc
shreemaan-abhishek 2ba566a
temp
shreemaan-abhishek c5db579
Merge branch 'master' of github.com:apache/apisix into feat/add-more
shreemaan-abhishek 10c31c7
fix lint
shreemaan-abhishek b442984
fix lint
shreemaan-abhishek 94eb907
remove redis schema
shreemaan-abhishek 03504c3
test jwe-decrypt
shreemaan-abhishek 4caad7c
fix comment
shreemaan-abhishek 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add this ?
I think the
check_schema
is run before the fields encrypted.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if data encryption is enabled then the secret length will be more than 32. So we should not check the length if data encryption is on.
yes. This is why we cannot use the code in
plugin.lua
, so I just copied the logic 😅There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the secret length will be more than 32. Is the secret is encrypted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, exactly.