tls:// scheme rather than https://. You will also likely need to set the Certificate Path if you aren't doing that already.docker-java client may need CS to set the DOCKER_TLS_VERIFY setting to tell it that you want to use TLS/HTTPS, but we are currently not doing that. (And if you could do me a favor and not hit the "Blame" button on that code to check who wrote it but forgot to set this configuration option, and also who left the prescient comment TODO are there other things that need to be configured here?, I'd appreciate it.) It would be a very simple matter to add that, but it would require a new release be cut, which could take some time.https:// to tls://, ensure you’re providing the path to the certificates, and hope the docker-java client is nice to us.--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/8b62feb9-1c81-40f9-91ed-512a82b1f216n%40googlegroups.com.
1. The docker-java docs suggest I should be able to set DOCKER_TLS_VERIFY as an environment variable on the client, and that this will be picked up. But it seems to be ignored for some reason.
-DDOCKER_TLS_VERIFY=1 (Though I don't remember the best place to add this to the tomcat args. Maybe someone else can chime in with help there.)2. The docker-java docs also suggest that DOCKER_TLS_VERIFY toggles whether to use HTTP or HTTPS, but it's perhaps worded slightly confusingly. I think the behaviour of `DOCKER_TLS_VERIFY` is:- if it's undefined, TLS is not used- if it's defined and set to false (or 0), TLS is used but the certificates are not verified- if it's defined and set to true (or 1), TLS is used and the certificates are verifiedTo handle these three situations, would the Container Service also need to take an addition parameter when configuring a remote host to control whether certs are verified or not?
DOCKER_TLS_VERIFY to true (or the equivalent through the docker-client Java API), otherwise we leave it unset. But as you pointed out that would not cover all three cases, only true and unset. To cover the explicit false case, maybe we could use this logic:tcp://, leave DOCKER_TLS_VERIFY unset.tcp:// but cert path is unset, set DOCKER_TLS_VERIFY to false.tcp:// and the cert path is set, set DOCKER_TLS_VERIFY to true.To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/cb491c93-56cd-4a11-8c40-2dbd25bb7116n%40googlegroups.com.
> The behavior I had in mind is that if the Certificate Path is provided, we would setDOCKER_TLS_VERIFYtotrue(or the equivalent through thedocker-clientJava API), otherwise we leave it unset. But as you pointed out that would not cover all three cases, only true and unset. To cover the explicit false case, maybe we could use this logic:
- If the host scheme is not
tcp://, leaveDOCKER_TLS_VERIFYunset.- If the scheme is
tcp://but cert path is unset, setDOCKER_TLS_VERIFYtofalse.- If the scheme is
tcp://and the cert path is set, setDOCKER_TLS_VERIFYtotrue.That seems to me that it covers all the options and tracks with the user's intent without requiring an explicit configuration setting. But it would need to be documented. (...and implemented.)
tcp:// but cert path is unset, set DOCKER_TLS_VERIFY to false), I think this would be slightly incorrect behaviour. If DOCKER_TLS_VERIFY is false , then the cert path will still need to be defined - the certs will be used to connect using TLS, but they will not be verified with root authorities (which is useful if you have self-signed certs).You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/h1ODNrTIQnY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/CADwXCSrsQAAOOx%3Dr_Z2HWS0jjJWyD6APq_ugsayiWkAMAqXJ0g%40mail.gmail.com.