change: unify the keyring and key_encrypt_salt fields, remove ssl:key_encrypt_salt#10771
Conversation
…ryption:keyring Signed-off-by: derobukal <[email protected]>
|
Thanks for contribution, we will check it later |
|
I think you should update the related test cases too |
| @@ -132,7 +122,7 @@ apisix: | |||
| enable: false | |||
There was a problem hiding this comment.
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.
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 <[email protected]>
|
I have updated the related test cases and fixed some problems @monkeyDluffy6017 |
| return origin | ||
| end | ||
|
|
||
| if not field and core.string.has_prefix(origin, "---") then |
There was a problem hiding this comment.
Do we still need the field parameter?
There was a problem hiding this comment.
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.
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 <[email protected]>
Signed-off-by: derobukal <[email protected]>
Signed-off-by: derobukal <[email protected]>
Signed-off-by: derobukal <[email protected]>
Signed-off-by: derobukal <[email protected]>
|
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 <[email protected]>


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