-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2062] [Bug] Dbt doesn't run when FIPS mode is enabled #6900
Comments
Thanks for reporting this @ZorinAnton ! The situationHere are a couple similar issues that other open-source projects have run into related to FIPS mode and MD5 hashing:
Basically, it sounds like you got this error because your system wanted to make extra certain that the The fixWe aren't using this for cryptographic security, so I think the fix would just be to update this: dbt-core/core/dbt/config/project.py Lines 668 to 669 in df64511
To be this instead: def hashed_name(self):
return hashlib.md5(self.project_name.encode("utf-8"), usedforsecurity=False).hexdigest() |
possible way to solve it: https://github.com/pytest-dev/pytest-randomly/pull/415/files |
Sounds like we should do this everywhere we're calling And by that, I actually mean: We should swap out all those direct calls to |
Any chance this could be included in the next patch release? |
@nielspardon Sure, it feels like a precise-enough change, and unblocks your ability to use dbt on a FIPS-enabled machine running Python 3.9+. We just cut v1.4.2rc1 yesterday, so this wouldn't be included until v1.4.3. |
I guess that's unlucky timing then. How often do you perform patch releases? |
@jtcohen6 I see 1.4.5 was released in the meantime and the fix for this was not backported. What's up? |
@nielspardon Sorry about that! We'll include in the next v1.4 patch |
Is this a new bug in dbt-core?
Current Behavior
Execution failure with
Expected Behavior
normal execution
Steps To Reproduce
Execute
dbt run
on a RHEL>=8.6 with FIPS mode enabledRelevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: