mesos / mesos-go

Go language bindings for Apache Mesos
Apache License 2.0
545 stars 146 forks source link

enable tls transport for executor #350

Open kkrishna opened 6 years ago

kkrishna commented 6 years ago

Looked for this topic in issues and explored code, however couldn't find relevant information. My apologies if this has been discussed earlier.

Mesos is running with tls enabled (LIBPROCESS_SSL_ENABLED=true) in my cluster; I'm looking for sample code to enable tls transport for executor. Sample executor example doesn't have sufficient details.

It seems, this can be realized using DriverConfig.NewMessenger? looking for sample code/pointers on the same.

jdef commented 6 years ago

I haven't written any sample code for this yet. PRs welcome :)

If you use the newer v1 API then you'd presumably configure TLS using the TLSConfig or RoundTripper funcs in the api/v1/lib/httpcli package.

kkrishna commented 6 years ago

Much appreciate your response @jdef Noticed this commit Not sure, httpOpt isn't public? Is this change-set complete for tls support? let me know if any additional ones need to be done for tls support in v0 API.

appreciate your help. thanks.