Skip to content
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

"--no-verify" option doesn't work #65

Closed
rganz opened this issue Feb 6, 2018 · 6 comments
Closed

"--no-verify" option doesn't work #65

rganz opened this issue Feb 6, 2018 · 6 comments

Comments

@rganz
Copy link

rganz commented Feb 6, 2018

When I try to connect to my cluster on Azure using sfctl I get an error. I assume it is because of the self-signed certificates.

sfctl cluster select --endpoint https://cluster.region.cloudapp.azure.com:19080 --pem ./cluster.pem
Error occurred in request., SSLError: HTTPSConnectionPool(host='cluster.region.cloudapp.azure.com', port=19080): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

Then I pass the --no-verify option, I just get another error that this is not recomended. But then nothing happens.

sfctl cluster select --endpoint https://cluster.region.cloudapp.azure.com:19080 --pem ./cluster.pem --no-verify
c:\program files\python36\lib\site-packages\urllib3\connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)

I reach the SF Explorer page with Chrome without any problems.
curl of https://cluster.region.cloudapp.azure.com:19080 works als well, when I pass the certificate and the --insecure option.

sfctl version is 3.0.0.
sf runtime version is 6.1.456.9494
hosting on Azure

@samedder
Copy link
Collaborator

samedder commented Feb 6, 2018

@rganz what doesn't work? Can you run sfctl node list? The warning will always be displayed, it's a reminder that you're performing an insecure operation.

@rganz
Copy link
Author

rganz commented Feb 7, 2018

Oh, that works. I was expecting some feedback to cluster select like a "sucessfully selected".

@rganz rganz closed this as completed Feb 7, 2018
@paolosalvatori
Copy link
Member

Is there any way to eliminate the warning? It's very annoying, thanks

@Christina-Kang
Copy link
Contributor

Thank you for the feedback, @paolosalvatori ! We can look into an option to suppress the warnings when explicitly requested.

@suhuruli for visibility

@samedder
Copy link
Collaborator

samedder commented Sep 6, 2018 via email

@suhuruli
Copy link

suhuruli commented Sep 6, 2018

There are two good pieces of feedback on this thread.

  1. @rganz, brought up a good point of having a message letting users know the connection was successful.

  2. @paolosalvatori, your point of getting rid of that warning is valid. Instead of spamming the user's terminal, we can just display the warning once and then not show it for future commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants