potiuk commented on code in PR #60065:
URL: https://github.com/apache/airflow/pull/60065#discussion_r2664700544
##########
airflow-core/src/airflow/utils/code_utils.py:
##########
@@ -50,6 +51,12 @@ def get_python_source(x: Any) -> str | None:
return source_code
+def get_python_source_md5(x: Any) -> str:
+ """Get Python source MD5 hash/fingerprint."""
+ source_code = str(get_python_source(x))
+ return hashlib.md5(source_code.encode()).hexdigest()
Review Comment:
Please use airflow-core/src/airflow/utils/hashlib_wrapper.py -> this one is
used whenever we use md5 from core, this makes it works even in FIPS-enabled
environment that disable weak algorithms when used for security.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]