-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NOD-498] Call api config schema proxy #348
base: main
Are you sure you want to change the base?
Conversation
This PR exceeds the recommended size of 450 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
This PR exceeds the recommended size of 450 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
@@ -77,7 +85,7 @@ | |||
|
|||
db.closeConnection(conn) | |||
headers = {'Host': 'api.dev.platform.pagopa.it:443'} | |||
requests.get(utils.get_refresh_config_url(context),verify=False,headers=headers) | |||
requests.get(utils.get_refresh_config_url(context), verify=False, headers=headers) |
Check failure
Code scanning / CodeQL
Request without certificate validation High
it is disabled
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 8 days ago
To fix the problem, we need to ensure that the request made on line 88 performs TLS certificate verification. This can be done by either removing the verify=False
parameter, which will default to verify=True
, or by explicitly setting verify=True
. If there is a specific certificate that needs to be used, we can provide the path to the certificate file.
Steps to fix:
- Remove the
verify=False
parameter from therequests.get
call on line 88. - Ensure that the request still functions correctly with certificate verification enabled.
-
Copy modified line R88
@@ -87,3 +87,3 @@ | ||
headers = {'Host': 'api.dev.platform.pagopa.it:443'} | ||
requests.get(utils.get_refresh_config_url(context), verify=False, headers=headers) | ||
requests.get(utils.get_refresh_config_url(context), headers=headers) | ||
|
This PR exceeds the recommended size of 450 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
No description provided.