diff --git a/config/default.py b/config/default.py index e6526cc32f..c9c183824f 100644 --- a/config/default.py +++ b/config/default.py @@ -807,7 +807,7 @@ def check_engine_admin_permission(request, *args, **kwargs): } # 加密 -if env.BKAPP_CRYPTO_TYPE == "SHANGMI": +if env.BKPAAS_CRYPTO_TYPE == "SHANGMI": BKCRYPTO_ASYMMETRIC_CIPHER_TYPE = bkcrypto_constants.AsymmetricCipherType.SM2.value BKCRYPTO.update( { diff --git a/env.py b/env.py index 43db006dd3..95eee907e0 100644 --- a/env.py +++ b/env.py @@ -111,4 +111,4 @@ # 获取加密类型 -BKAPP_CRYPTO_TYPE = os.getenv("BK_CRYPTO_TYPE") or os.getenv("BKAPP_CRYPTO_TYPE") or "CLASSIC" +BKPAAS_CRYPTO_TYPE = os.getenv("BKPAAS_BK_CRYPTO_TYPE", "") or os.getenv("BK_CRYPTO_TYPE") or "CLASSIC"