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

Add support for user-managed SSL certificate verification #188

Open
tdstein opened this issue Apr 30, 2024 · 2 comments
Open

Add support for user-managed SSL certificate verification #188

tdstein opened this issue Apr 30, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested sdk Used for automation

Comments

@tdstein
Copy link
Collaborator

tdstein commented Apr 30, 2024

By default, the requests package reads CA_BUNDLE information from the REQUESTS_CA_BUNDLE env var and falls-back to CURL_CA_BUNDLE. If neither of these are set properly, the request will result in an SSLError.

The requests package provides support for configuring server-side and client-side certificate locations. See https://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification

Add support to the connect.Client to accept these properties and pass them to the requests.Session instance.

Additionally, there may be an opportunity to default the verify property to a specific location when it is known that the client is running within Connect. Further research is needed.

@tdstein tdstein added enhancement New feature or request question Further information is requested labels Apr 30, 2024
@dbkegley
Copy link
Collaborator

@tdstein tdstein added the sdk Used for automation label Sep 13, 2024
@NicolaiLolansen
Copy link

The rsconnect package has a flag --insecure

TLS Support and Posit Connect
Usually, a Posit Connect server will be set up to be accessed in a secure manner, using the https protocol rather than simple http. If Posit Connect is set up with a self-signed certificate, you will need to include the --insecure flag on all commands. If Posit Connect is set up to require a client-side certificate chain, you will need to include the --cacert option that points to your certificate authority (CA) trusted certificates file. Both of these options can be saved along with the URL and API Key for a server.

https://pypi.org/project/rsconnect-python/

I think it would make sense to reflect the same behavior for this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested sdk Used for automation
Projects
None yet
Development

No branches or pull requests

3 participants