gaborgsomogyi commented on code in PR #23359:
URL: https://github.com/apache/flink/pull/23359#discussion_r1318280705


##########
flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/entrypoint.sh:
##########
@@ -19,6 +19,7 @@
 
 : ${HADOOP_PREFIX:=/usr/local/hadoop}
 
+export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1

Review Comment:
   Just for the record this is needed not to blow up the following python code:
   ```
       @classmethod
       def _ensure_ffi_initialized(cls) -> None:
           with cls._init_lock:
               if not cls._lib_loaded:
                   cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
                   cls._lib_loaded = True
                   cls._register_osrandom_engine()
                   # As of OpenSSL 3.0.0 we must register a legacy cipher 
provider
                   # to get RC2 (needed for junk asymmetric private key
                   # serialization), RC4, Blowfish, IDEA, SEED, etc. These 
things
                   # are ugly legacy, but we aren't going to get rid of them
                   # any time soon.
                   if cls.lib.CRYPTOGRAPHY_OPENSSL_300_OR_GREATER:
                       if not os.environ.get("CRYPTOGRAPHY_OPENSSL_NO_LEGACY"):
                           cls._legacy_provider = cls.lib.OSSL_PROVIDER_load(
                               cls.ffi.NULL, b"legacy"
                           )
                           cls._legacy_provider_loaded = (
                               cls._legacy_provider != cls.ffi.NULL
                           )
                           _legacy_provider_error(cls._legacy_provider_loaded)
   
                       cls._default_provider = cls.lib.OSSL_PROVIDER_load(
                           cls.ffi.NULL, b"default"
                       )
                       _openssl_assert(
                           cls.lib, cls._default_provider != cls.ffi.NULL
                       )
   ```
   



-- 
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]

Reply via email to