-
Notifications
You must be signed in to change notification settings - Fork 75
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
Pass client certificates to Kernel Gateway #51
Conversation
This feature is designed to be paired with Jupyter Kernel Gateway's client-ca option. --client-ca=<Unicode> (KernelGatewayApp.client_ca) Default: None The full path to a certificate authority certificate for SSL/TLS client authentication. (KG_CLIENT_CA env var) To use this feature, add paths to client key, cert and the CA that signed it to the following environment variables: KG_CLIENT_KEY KG_CLIENT_CERT KG_CLIENT_CA
When shall we merge this PR? Waiting for it as need to build a docker image on the docker stacks. Seems the conflicts are because of my recent changes where I also added some env variables to nb2kg handlers and managers. Although it won't be too much work to resolve the conflict and I would like to do so if necessary. |
@riceda195 or @liukun1016 - could either of you please resolve these conflicts? It would be great to produce a release soon and this looks like a good addition. Thanks! |
@kevin-bates , @riceda195 The reason for the conflict is that when the flag i.e. I resolved the conflict by make the codes more flexible, i.e. by initializing the parameters based on the Please let me know if there is any concern or improvement. Otherwise hope to merge this PR ASAP. |
@liukun1016, thanks for removing the conflict. Have you had a chance to test out the changes? |
For the timeout parameters it worked as my previous changes. But I haven't tested the certification part though since I am not so clear about how should we use the cert, client key and client auth. |
I added a slight modification to make the client_ca option/argument optional. Not every environment needs this, so it seemed logical to make it optional. |
Thanks @liukun1016 and @riceda195 - these changes look fine to me. |
@riceda195 Thanks for that. LGTM. |
anything else preventing this PR from being merged in? |
Thanks @riceda195 |
and thank you @liukun1016 and @kevin-bates |
This feature is designed to be paired with Jupyter Kernel Gateway's client-ca option.
--client-ca= (KernelGatewayApp.client_ca)
Default: None
The full path to a certificate authority certificate for SSL/TLS client
authentication. (KG_CLIENT_CA env var)
To use this feature, add paths to client key, cert and the CA that signed it to the
following environment variables:
KG_CLIENT_KEY
KG_CLIENT_CERT
KG_CLIENT_CA