kubernetes-retired/kube-mesos-framework

libprocess https with basic auth possible?

banjocat opened this issue · 2 comments

FOUND IN VERSION (Details about the version, e.g. 0.7. Please list the other versions which this bug exist.)
[latest ]

PLATFORMS e.g. 'uname -a':
[ Linux * 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux]

COMMANDS OR DAEMONS: -- list all related components
[km scheduler ]

EXPECTED BEHAVIOR:
In spark you can set environmental variables to effect libprocess.
As shown below.
But http seems to be hardcoded within http_transporter.go with no option to add basic auth.

export LIBPROCESS_SSL_ENABLED=true
export LIBPROCESS_SSL_SUPPORT_DOWNGRADE=false
export LIBPROCESS_SSL_CA_FILE=/etc/pki/ca-trust/source/anchors/cert.pem
export LIBPROCESS_SSL_KEY_FILE=/app/mesos/security/server.key
export LIBPROCESS_SSL_CERT_FILE=/app/mesos/security/server.crt
export LIBPROCESS_SSL_VERIFY_CERT=0
export LIBPROCESS_SSL_REQUIRE_CERT=0
k82cn commented

@okzhchy , would you help on this one?

I think this is related to mesos/mesos-go#242

Sorry as I go down rabbit hole I see this is being used.