-
Notifications
You must be signed in to change notification settings - Fork 194
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
Extracion of crypto-pgp and making crypto work on FIPS #6241
Conversation
@ppalaga FYI |
The failure seems merely linked to uncommitted changes. |
...untime/src/main/java/org/apache/camel/quarkus/support/bouncycastle/BouncyCastleRecorder.java
Outdated
Show resolved
Hide resolved
...ployment/src/main/java/org/apache/camel/quarkus/component/joor/deployment/JoorProcessor.java
Outdated
Show resolved
Hide resolved
...ts/crypto/src/test/java/org/apache/camel/quarkus/component/crypto/it/AbstractCryptoTest.java
Outdated
Show resolved
Hide resolved
That's quite a pr. Many thanks for transparently explaining the intent in the first note and putting so much useful comment in the code. It really helps one without much fips knowledge to review :) |
...a/org/apache/camel/quarkus/support/bouncycastle/deployment/BouncyCastleSupportProcessor.java
Outdated
Show resolved
Hide resolved
ce03dc3
to
ef505c7
Compare
769ec8b
to
34d109f
Compare
There might be more problems related to this question. The major one is that bcpg depends on bcprov. Class BcKeyFingerprintCalculator references org.bouncycastle.crypto.Digest; The same class is not part of the bcfips. (I checked the jar downloaded by maven, and you can see it e.g in this fork) Therefore it is not possible to replace bcprov with bcfips.
|
34d109f
to
06d980b
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.
@JiriOndrusek The ci failure seems linked to needed regeneration, beyond looks good
06d980b
to
0c1ef98
Compare
Yes, I forgot to regenerate POMS when I was maintaining camel-main, hopefully now it is ok |
0c1ef98
to
826227c
Compare
Good to know, thanks for the information! |
...untime/src/main/java/org/apache/camel/quarkus/support/bouncycastle/BouncyCastleRecorder.java
Outdated
Show resolved
Hide resolved
826227c
to
ceecb2b
Compare
I switched this PR to draft and I'll rebase to |
ceecb2b
to
62ad91f
Compare
@ppalaga I applied the idea of crypto not needing BC. |
05dc90e
to
4d58503
Compare
84bb4f0
to
3df5f85
Compare
98d71ef
to
9587b1a
Compare
62ad91f
to
c7c6cef
Compare
c7c6cef
to
155bf86
Compare
The crypto/crypto-pgp changes are present in Camel 3.7.0. |
@ppalaga WDYT? Can we merge this PR? |
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.
Looks great, thanks @JiriOndrusek !
fixes #6088
Crypto component was split into
crypto
andcrypto-pgp
to support FIPS. See the commit. (this is the reason of why this PR is opened againstcamel-main
)crypto-pgp
is not registering BC as a provider; component contains only PGPDataFormatcrypto
contains all other (CryptoDataFormat, components)How to run
crypto
on FIPS the BC dependency has to be excluded and BCFIPS added (or another BC implementation for FIPS) .Limitation: Because of the BCFIPS, it is not possible to use crypto and crypto-pgp together on FIPS system (if BCFIPS is utilized)
This PR contains:
crypto-pgp
component (uses BC). The component and all tests are extracted from thecrypto
component. All tests work on FIPS system.fips
profile in crypto integration test module, to allow execution on FIPS systemscertificate-generator-support
because the tests requireDES
and thecertificate-generator-support
usesRSA
.