-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
SL validation failed for https://sts.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:618) #5744
Comments
Hi @andrealai75, Are you using a proxy? I note that the |
Yes we are behind proxy with endpoint restrictions. The .amazonaws.com domain is allowed. |
Can you provide how you are configuring the proxy? It's likely that the urllib3 change is the culprit. As noted in the |
We only set the usual proxy environment variables: |
You are right we are contacting the proxy over HTTP. I read urllib3/urllib3#1850 and it looks I should be getting a Warning and not a failure. |
Hello,
We are behind a corporate proxy, configured with The exact same job is however working with a previous version:
|
I reverted to version 1.18.165 and it‘s working fine for me. |
If you go back in the debug traceback, you should see an error from
We're capturing the output of that error that you see, but it's coming from @sonnyhui98, @julb - the change was made in |
As an extra note, if you install |
Thanks @nateprewitt! I think this is resolved. I've discussed with our doc writers and we will review the user guide for configuring a proxy to be sure it reflects any changes with this. |
|
Remember to set ca bundle for the awscli |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
We upgraded from 1.18.173 to 1.18.183 and now when we execute 'aws sts get-caller-identity' we get the following error: "SSL validation failed for https://sts.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:618)"
SDK version number
aws-cli/1.18.183 Python/2.7.5 Linux/3.10.0-1160.6.1.el7.x86_64 botocore/1.19.23
Python 2.7.5
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
Platform/OS/Hardware/Device
Red Hat Enterprise Linux Server release 7.7 (Maipo)
To Reproduce (observed behavior)
Using 1.18.183 just run 'aws sts get-caller-identity'. We also get the same error running for example 'aws s3 ls'.
If we downgrade using 'pip install --upgrade awscli==1.18.173' works fine on the same machine and user.
Expected behavior
'aws sts get-caller-identity' should work.
Logs/output
2020-11-23 14:53:52,987 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 217, in main
return command_table[parsed_args.command](remaining, parsed_args)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 358, in call
return command_table[parsed_args.operation](remaining, parsed_globals)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 530, in call
call_parameters, parsed_globals)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 650, in invoke
client, operation_name, parameters, parsed_globals)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 662, in _make_client_call
**parameters)
File "/usr/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/lib/python2.7/site-packages/botocore/client.py", line 663, in _make_api_call
operation_model, request_dict, request_context)
File "/usr/lib/python2.7/site-packages/botocore/client.py", line 682, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 137, in _send_request
success_response, exception):
File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 256, in _needs_retry
caught_exception=caught_exception, request_dict=request_dict)
File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 183, in call
if self._checker(attempts, response, caught_exception):
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 251, in call
caught_exception)
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 317, in call
caught_exception)
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 223, in call
attempt_number, caught_exception)
File "/usr/lib/python2.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
SSLError: SSL validation failed for https://sts.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:618)
2020-11-23 14:53:52,988 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255
SSL validation failed for https://sts.amazonaws.com/ EOF occurred in violation of protocol (_ssl.c:618)
Additional context
The text was updated successfully, but these errors were encountered: