Skip to content

Commit

Permalink
Revert "PNLP-8575: remove unverified-ssl-context"
Browse files Browse the repository at this point in the history
This reverts commit 1df0985.
  • Loading branch information
SyrexMinus committed May 16, 2024
1 parent e0d2112 commit e2cf2b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/db_adapter/ceph/ceph_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from core.logging.logger_utils import log
from core.monitoring.monitoring import monitoring

ssl._create_default_https_context = ssl._create_unverified_context

Check failure

Code scanning / Semgrep OSS

Semgrep Finding: python.lang.security.unverified-ssl-context.unverified-ssl-context Error

Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context' instead.


class CephAdapter(DBAdapter):
def __init__(self, config):
Expand Down

0 comments on commit e2cf2b7

Please sign in to comment.