-
Notifications
You must be signed in to change notification settings - Fork 288
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
base: master
Are you sure you want to change the base?
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 |
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.
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.
[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
|
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".