-
Notifications
You must be signed in to change notification settings - Fork 725
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
[Bug]: FATAL FIPS SELFTEST FAILURE #2613
Comments
If any others are having this issue, you'll have to work your way through the Anomalib code base and update some of the import paths in order to use the code not as a package.
Move everything in src/anomalib into the top level anomalib folder. |
Just to make sure did you install anomalib via pypi, or from source?
Can you also elaborate what you did here ? |
I did not install Anomalib at all. If I install it, either from pypi or from source, I get the FATAL FIPS error.
This let's me access and use the code without installing Anomalib. Otherwise I end up with import errors like |
I want to add that one of the suggestions from a coworker. I attempted to apply his fixes and install from source, but I still got the FATAL FIPS error. I'm unsure if it's because we missed one, or if it's another issue.
https://stackoverflow.com/questions/77425682/what-is-the-point-of-usedforsecurity We believe it's somewhere in this direction. I wish the error would provide more information. |
Can you share the exact same steps how you get this error?
and maybe any other details so we could reproduce. Not sure if this is related to Anomalib. Never seen this before |
Yes, that is no issue. I, too, would like to understand this issue more. Machine
We use RHEL 9.5 for the OS and it was installed with FIPS enabled. "To enable FIPS mode on Red Hat Enterprise Linux (RHEL) 9.5, use the fips-mode-setup --enable command, which will configure the system to use only FIPS-approved cryptographic algorithms. " This is the part that I don't know if you'll be able to replicate. I'm unsure if it could be setup in a vm for testing purposes. We have two production servers that run the same OS (different hardware), and all of our work laptops also have FIPS enabled running windows 11. EDIT: My coworker is confident if you put any linux OS with fips enabled on a vm, it should be replicatable. I believe RHEL has a free consumer version too. From here, it's following the Anomalib installation instructions. I generally use Env Setup 1
Env Setup 2
test.py
ResultsAlso, importing torchvision causes the exact same error when it's installed through Anomalib. test.py
BUT, if I have a clean environment, and I The only thing my work has been able to figure out involves the use of md5 which is not allowed by FIPS. We usually resolve this by doing For the time being, I have cloned the repo into our ML library, and I just access the code without installing Anomalib. It's not ideal, but I can use Anomalib for the time being. Thank you for looking into this. I am willing to assist, so please don't hesitate to ask. If we can resolve this, I can resolve it most likely for other libraries where I have this same issue. |
@samet-akcay I have good news for you. I managed to get some help from a coworker, and we very painfully (probably inefficiently) traced it to the PyAV library. For Anomalib,
I was then able to run I haven't tested it completely out, and I imagine whatever parts use PyAV will fail. We haven't been able to trace it farther than this, as neither of us are Cython programmers, and we are going to have to learn some Cython to trace this farther. We have made an issue here. Sorry if this wasted any of your time. I do greatly appreciate your willingness to help. If you know Cython and are bored, please help us dig in more. |
What is the av library used for in anomalib? Does it need to be in the requirements? |
With that being said, we might need to think about a better solution for dependency management. As we add more models to Anomalib, the list of dependencies also grow. Adding these dependencies to the main requirements pollute the overall list. |
This is unfortunate for anyone who uses video anomaly detection and requires FIPS. Hopefully that pool of people is small for now. Luckily for me, I don't use video (yet). If you require any assistance in running Anomalib tests on a FIPS enabled machines, feel free to @ me. I can at the very minimum, tell you if I get the FATAL FIPS error. I will do my best to assist. |
Describe the bug
Hello all,
I was excited for Anomalib v2 release for several months now and I have run into the dreaded FATAL FIPS SELFTEST FAILURE. I am required to work on FIPS enabled devices and this forces certain security practices. I am now unable to use Anomalib v2 as a package.
I have been able to replicate this on multiple machines in my office. I've experienced this with other libraries, and the only fix I have found is to clone the repo, don't install it, and run it as code. Unfortunately, I haven't quite figured out what causes this and the appropriate way to solve it. I am willing to attempt to fix this, but I would need guidance in where to start.
I really hope this can be resolved as Anomalib has been superb in our work.
Dataset
N/A
Model
N/A
Steps to reproduce the behavior
OS information
OS information:
Expected behavior
Expected to work as intended.
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
No response
Configuration YAML
N/A
Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: