Skip to content

Commit

Permalink
feature: 国密改造
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Sep 5, 2023
1 parent 6279fdb commit bcb8650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
2 changes: 1 addition & 1 deletion env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bcb8650

Please sign in to comment.