-
Notifications
You must be signed in to change notification settings - Fork 610
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
Issue when enabling fips mode on the SDK #4965
Comments
Hi @vineet199, could you please confirm if you have fips build of nodejs? I think this issue here could be related. Thanks! |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
The application is compiled with Node js v20.5.0, which has FIPS support. Thank you for your patience! |
@vineet199, when "use_fips_endpoints" is set to true then, it just make the SDK to send the requests to endpoints that are fips compliant. The SDK is actually not using MD5, but sha256. You can actually reproduce this at your end, without using the SDK by doing the following: import crypto, { createHash } from "crypto";
crypto.setFips(true);
const hash = createHash("sha256"); As you can see we are just using a nodejs native cryptographic function to create a sha256 hash. So, do you know what would be the fips compliance function that we should be using in this case? Please let me know. Thanks! |
You are absolutely right. We were looking into it recently and found that the openssl we were using required a fips compliance configuration step, which we had overlooked, on configuring and enabling fips mode in the openssl library installed, the aws-sdk works as expected. This issue can be considered as invalid. Thank you for your efforts and support |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
I am trying to use the aws-sdk in FIPS mode. However, some of the functions, such as the createHash function in aws-sdk is not FIPS compliant. This is the value set in my aws config as well -
region=us-east-1
use_fips_endpoint=true
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v20.5.0
Reproduction Steps
Observed Behavior
Expected Behavior
When fips is disabled, the above code snippet works fine and retrieves the secret from the secret manager client successfully
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: