-
Notifications
You must be signed in to change notification settings - Fork 84
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
refactor(sdk): remove deprecated EncryptWithAES code #1235
refactor(sdk): remove deprecated EncryptWithAES code #1235
Conversation
b3cad37
to
78f5b74
Compare
@marcpfuller , this PR needs to be rebased and fix conflicts. |
BRAKING CHANGE: remove deprecated EncryptionWithAES code, use AESProtection CLoses: edgexfoundry#1227 Signed-off-by: Marc-Philippe Fuller <[email protected]>
78f5b74
to
05dff3e
Compare
@marcpfuller Failed test case
|
@bnevis-i, I resolved the failed testcase. |
8d39707
to
fa918c9
Compare
Codecov Report
@@ Coverage Diff @@
## main #1235 +/- ##
==========================================
- Coverage 66.48% 66.19% -0.30%
==========================================
Files 39 38 -1
Lines 3297 3227 -70
==========================================
- Hits 2192 2136 -56
+ Misses 961 951 -10
+ Partials 144 140 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
@marcpfuller there is also a new binary file (internal/app/__debug_bin) that should not be added
@@ -378,21 +378,6 @@ func (app *Configurable) Encrypt(parameters map[string]string) interfaces.AppFun | |||
} | |||
|
|||
switch strings.ToLower(algorithm) { | |||
case EncryptAES: |
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.
Also need to remove the EncryptAES
constant.
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 have removed the constant, and all its references.
Signed-off-by: Marc-Philippe Fuller <[email protected]>
fa918c9
to
b07c832
Compare
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.
LGTM. Thanks!
BRAKING CHANGE: remove deprecated EncryptionWithAES code, use AESProtection
CLoses: #1227
Signed-off-by: Marc-Philippe Fuller [email protected]
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/app-functions-sdk-go/blob/main/.github/CONTRIBUTING.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)fix: remove references to deprecated code for EncryptWithAES edgex-docs#919
Testing Instructions
make test
New Dependency Instructions (If applicable)
N/A