question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supporting manual configuration of SSL Client Certs

See original GitHub issue

Hello all, this is somewhat related to #304

I am trying to build a custom orchestration/spawner/launcher system for deploying a distributed cluster. Ideally this system would manage session security, to prevent arbitrary clients from connecting to a scheduler. (We’re interested in this from the perspective of a multi-user host.)

Because this is all based on Tornado, it would be very convenient to be able to just use ssl_options and communicate SSL Client Certificates before launching anything in distributed. However this doesn’t work for the Client object, as this keyword isn’t exposed. It looks like ssl_options would need to be propagated to the Client somehow from this line up. (And maybe for Scheduler and Worker as well, I haven’t read the those implementations very closely yet)

Based on reading issues/blogs/etc it looks like managing security isn’t an immediate (or even necessarily future) goal of distributed/dask, but would it be acceptable to expose a little more of Tornado’s framework to permit programmatic management of SSL for more custom deployments? Ideally distributed could just pass some kwargs around and not consider the problem further.

If you’re amenable to the idea, I would be happy to work towards a PR (given a little API guidance).

Edit: I see that there is an existing PR #537 that sort of addresses this, but it looks like it may have stalled out a little, and it doesn’t seem to have a way to pass the ssl_options into TCPClient.connect in the same way that would be natural for the TCPServer objects.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mrocklincommented, Jan 10, 2017

Definitely amenable to a PR helping dask.distributed to pass through Tornado keywords 😃

1reaction
pitroucommented, Jan 12, 2017

I can think of two options:

  • either accept a SSLContext parameter (and only that)
  • or accept a new kind of “security” object, that could define a SSL context, but possibly hold other parameters later (such as authentication, capabilities, etc.)

Either way, I am busy refactoring the I/O layer, so it’s not a good idea to start work on this immediately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure SSL Certificates - Support Tutorials - DigiCert.com
Configuring SSL Certificates can be a tricky process. Luckily we are here to help. This page has instructions on troubleshooting existing SSL Certificate...
Read more >
SSL configuration - OCLC Support
Open up the CSR Details page from the SSL management page, and paste the intermediate certificate into the box toward the end of...
Read more >
SSL framework - Operations Manual - Neo4j
Describes how to set up SSL within your environment, how to view, validate, and test the certificates.
Read more >
TLS/SSL Configuration for Clients — MongoDB Manual
A full description of TLS/SSL, PKI (Public Key Infrastructure) certificates, and Certificate Authority is beyond the scope of this document.
Read more >
SSL/TLS Strong Encryption: How-To - Apache HTTP Server ...
Support Apache! Basic Configuration Example; Cipher Suites and Enforcing Strong Security; OCSP Stapling; Client Authentication and Access Control; Logging. See ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found