Skip to content

Commit

Permalink
Merge pull request #5 from aquasecurity/require-tls-certificate-valid…
Browse files Browse the repository at this point in the history
…ation-lambda

fix: Require TLS certificate validation in Lambda's
  • Loading branch information
Noamstrauss authored Oct 6, 2024
2 parents f018ebe + 21fad58 commit 7de94ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/single/modules/lambda/functions/create_cspm_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_signature(aqua_secret, tstmp, path, method, body):
return sig

def http_request(url, headers, method, body=None):
http = urllib3.PoolManager(cert_reqs='CERT_NONE')
http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED')

try:
response = http.request(method, url, body=body, headers=headers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def http_request(url, headers, method, body=None):
if body is None:
body = {}

http = urllib3.PoolManager(cert_reqs='CERT_NONE')
http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED')

try:
response = http.request(method, url, body=body, headers=headers)
Expand Down

0 comments on commit 7de94ab

Please sign in to comment.