Skip to content

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

Closed

Description

@dawid-laszuk-sp

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.

Activity

  1. jeremyary commented on Mar 22, 2024

    @jeremyary
    Collaborator

    addressed via PR #4019. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions