-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Handle PermissionError when importing crypt when FIPS is enabled. #62587
Conversation
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Thank you for the PR. Is there anyway we can get some tests to make sure the functionality doesn't break in the future. as well as a changelog file. |
@takeda can we get a test case please? I know the fix seems simple but it dos still need a test case just to make sure this doesn't break again in the future. |
@whytewolf I'm not sure how this could be tested. To enable FIPS you switch a sysctl in the kernel |
@takeda sorry. I missed this was only catching on import. in theory you could mock the |
it does still need a changelog though |
Merging as tests passed previously before the changelog was added. |
Congratulations on your first PR being merged! 🎉 |
What does this PR do?
When salt runs on a machine where FIPS is enabled, it produces:
on import.
This error shows up in certain circumstances, for example when trying to get documentation from a module.
What issues does this PR fix or reference?
Fixes: not created
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes/No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.