Skip to content
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

hashlib.md5 errors in FIPS mode for Python3.9+ #4015

Closed
dawid-laszuk-sp opened this issue Mar 15, 2024 · 1 comment
Closed

hashlib.md5 errors in FIPS mode for Python3.9+ #4015

dawid-laszuk-sp opened this issue Mar 15, 2024 · 1 comment

Comments

@dawid-laszuk-sp
Copy link

Expected Behavior

Initiating the server should succeed.

Current Behavior

Getting an error

Traceback (most recent call last):
  File "/root/.local/bin/feast", line 5, in <module>
    from feast.cli import cli
  File "/root/.local/lib/python3.10/site-packages/feast/__init__.py", line 7, in <module>
    from feast.infra.offline_stores.bigquery_source import BigQuerySource
  File "/root/.local/lib/python3.10/site-packages/feast/infra/offline_stores/bigquery_source.py", line 6, in <module>
    from feast.data_source import DataSource
  File "/root/.local/lib/python3.10/site-packages/feast/data_source.py", line 28, in <module>
    from feast.repo_config import RepoConfig, get_data_source_class_from_type
  File "/root/.local/lib/python3.10/site-packages/feast/repo_config.py", line 29, in <module>
    from feast.usage import log_exceptions
  File "/root/.local/lib/python3.10/site-packages/feast/usage.py", line 50, in <module>
    "env_signature": hashlib.md5(
ValueError: [digital envelope routines] unsupported

Steps to reproduce

I'm honestly not sure how to enable FIPS mode. We're using Amazon Linux 2023 image and it could be

Specifications

  • Version: latest
  • Platform:
  • Subsystem:

Possible Solution

Allow passing usedforsecurity parameter for the hashlib.md5 method. Here's an example of similar approach in pytest-dev/pytest-randomly.

@jeremyary
Copy link
Collaborator

addressed via PR #4019. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants