d2iq-archive / mesos-rxjava

RxJava client for Apache Mesos HTTP APIs
Apache License 2.0
42 stars 27 forks source link

Add ability to run with DC/OS Enterprise strict security mode #87

Open zonybob opened 6 years ago

zonybob commented 6 years ago

DC/OS Enterprise Support

This is in support of #86

On DC/OS Enterprise, one can run with a strict security mode. In this environment, DC/OS schedulers cannot talk directly to Mesos masters on port 5050, but must rather go through DC/OS adminrouter. This requires 2 things not previously present in mesos-rxjava

  1. HTTPS support (talking to adminrouter over https)
  2. Ability to set an Authorization header

I did not do anything additionally to support enterprise other than the 2 items above. I took care of actually authenticating a service account and refreshing the token within my scheduler.

NOTE: I am aware that I need to add some tests and comments to make this PR complete. I wanted to at least get this out there for initial review as I know the project has changed ownership. I can follow any new guidance on formatting, docs, tests, etc.

Thanks!