-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
change: unify the keyring and key_encrypt_salt fields, remove ssl:key_encrypt_salt #10771
Conversation
…ryption:keyring Signed-off-by: derobukal <derobukal@gmail.com>
Thanks for contribution, we will check it later |
I think you should update the related test cases too |
conf/config-default.yaml
Outdated
@@ -132,7 +122,7 @@ apisix: | |||
enable: false |
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.
we should put this attribute enable
under the keyring
, because it's only for encrypt_fields
in plugin schma, and change a name, modify the comments
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.
how about changing enable
to enable_encrypt_fields
and leave it still at this place, because it's undering data_encryption
and the attribute name has shown its function
i will add them |
Signed-off-by: derobukal <derobukal@gmail.com>
I have updated the related test cases and fixed some problems @monkeyDluffy6017 |
apisix/ssl.lua
Outdated
return origin | ||
end | ||
|
||
if not field and core.string.has_prefix(origin, "---") then |
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.
Do we still need the field
parameter?
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.
I reserved this parameter because ssl encryption is need to check whether the origin
has a ---
prefix and data encryption is not. If I remove it, is the prefix check of origin
should be also removed too? or just reserve the check and put it to ssl and data encryption?
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.
I prefer the later one: reserve the check and put it to ssl and data encryption
, the data encryption
don't have a prefix like ---
, so no need to consider the data encryption
please make the ci pass |
Signed-off-by: derobukal <derobukal@gmail.com>
Signed-off-by: derobukal <derobukal@gmail.com>
Signed-off-by: derobukal <derobukal@gmail.com>
Signed-off-by: derobukal <derobukal@gmail.com>
Signed-off-by: derobukal <derobukal@gmail.com>
Hi @monkeyDluffy6017, I.am feeling confused on how to fix |
@RitterHou This error log can be ignored: |
@monkeyDluffy6017 I switched the branch to master and tested |
@RitterHou I think the error is imported by your modifications |
I have found the reason for this error, the SSL key encryption must check whether the key is started with Can you help me to solve this problem? @monkeyDluffy6017 I am not sure whether I can remove the
|
Maybe we should add the |
Signed-off-by: derobukal <derobukal@gmail.com>
Description
This is a fix for issue 10484, the field ssl:key_encrypt_salt has been removed, all the encrypt and decrypt operations are using data_encryption:keyring field now.
key_encrypt_salt and keyring are all used for data encrypt and decrypt, but in fact the are doing the same thing, this change remove key_encrypt_salt only field keyring need to be reserved.
Fixes #10484
Checklist