-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PRDP-186] Implement AES encryption and PDV Tokenizer #64
Conversation
…to PRDP-186-implement-tokenizer # Conflicts: # README.md # src/main/java/it/gov/pagopa/receipt/pdf/generator/client/impl/PDVTokenizerClientImpl.java
SecretKey tmp = factory.generateSecret(spec); | ||
SecretKeySpec secretKeySpec = new SecretKeySpec(tmp.getEncoded(), ALGORITHM); | ||
|
||
Cipher cipher = Cipher.getInstance(AES_CBC_PKCS_5_PADDING); |
Check failure
Code scanning / SonarCloud
Encryption algorithms should be used with secure mode and padding scheme High
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.
Padding vulnerability rule java:S5542 ignored because encryption/decryption is used inside application workflow and is impossible to access it from the outside
SecretKey tmp = factory.generateSecret(spec); | ||
SecretKeySpec secretKeySpec = new SecretKeySpec(tmp.getEncoded(), ALGORITHM); | ||
|
||
Cipher cipher = Cipher.getInstance(AES_CBC_PKCS_5_PADDING); |
Check failure
Code scanning / SonarCloud
Encryption algorithms should be used with secure mode and padding scheme High
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.
Padding vulnerability rule java:S5542 ignored because encryption/decryption is used inside application workflow and is impossible to access it from the outside
This PR exceeds the recommended size of 400 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Comment this PR with update_code to update |
SonarCloud Quality Gate failed. 0 Bugs 83.2% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
🔝
List of Changes
Motivation and Context
Issue PRDP-186
The need is to save on CosmosDB tokenized fiscal codes
How Has This Been Tested?
Run unit tests
Screenshots (if appropriate):
Types of changes
Checklist: