-
Notifications
You must be signed in to change notification settings - Fork 290
Add nodejs fips test #493
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
Add nodejs fips test #493
Conversation
|
Let's try first set of shots [test] |
Testing Farm results
|
|
@tjuhaszrh The error is here: |
|
@tjuhaszrh Thanks for this pull request. I have several question regarding nodeJs. What do you thinkg about this code? |
|
[test] |
|
Sorry I think the issue was caused just by messy string nesting in Adding backslash seems to have fixed it. |
My understanding is that My usage of the fips variable was also wrong since I only care about the So I think: |
c36fca6 to
415e2cd
Compare
|
Adjustments:
|
|
Great to see this test being added |
|
[test] |
364e024 to
31dd709
Compare
Hi @mhdawson , does it make sense to test also some a simple app, like we have in directory |
phracek
left a comment
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.
It is almost done. Thanks for this pull request. Great work.
cfff436 to
2c3f72f
Compare
|
[test] |
|
@phracek a simple test application would be a good idea as well. |
|
@tjuhaszrh Add to this pull request also fips https://github.com/sclorg/s2i-nodejs-container/blob/master/test/test-lib-nodejs.sh#L133 Add there also function like is here https://github.com/sclorg/s2i-nodejs-container/blob/master/test/test-lib-nodejs.sh#L44 |
|
Added a simple app that in the context of a server verifies what kind of Hash algorithms and Ciphers are allowed to be used under FIPS.
|
phracek
left a comment
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.
Thanks for the new app. Please address my changes.
Add test that verifies that if: Container is in fips mode, node is also using fips mode. Container isnt in fips mode, node also isnt using fips mode. Add simple Fips application which in the context of server verifies: * That FIPS allows the generation of only secure hash algorithms and ciphers. * Should allow: SHA256, AES. Should Fail: MLD, 2Key 3DES.
Couple test fixes caught by testing on RHEL9 host. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
|
Rebased against upstream. Fixing some tests. [test] |
|
Let's tests one more time [test] |
phracek
left a comment
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.
The tests have passed. GREAT WORK. THank you
Add two test cases to verify that if:
Nodejs fips state is verified with:
node -e 'const crypto = require("crypto"); return crypto.getFips();which should return the same value (1 for enabled, 0 for disabled) as cat "/proc/sys/crypto/fips_enabled".