lloesche/auth-proxy-dcos

By lloesche

Updated almost 8 years ago

An authentication proxy for services running on Mesosphere DC/OS

Image

50K+

DC/OS Auth Proxy

An authentication proxy for services running on Mesosphere DC/OS

Intro

This adds basic auth in front of any http(s) service running inside DC/OS. Requires DC/OS 1.7+ Works best in combination with marathon-lb. The example auth-proxy.json app definition contains marathon-lb labels.

Usage

Adjust the HAPROXY_0_VHOST and HAPROXY_GROUP labels in auth-proxy.json.

Install using

$ dcos marathon app add auth-proxy.json

Environment Variables

VariableFunctionExample
LOGINLogin usernameLOGIN=lukas
PASSWORDLogin password (following this scheme)PASSWORD={PLAIN}letmein
SERVER_NAMEVhost to react onSERVER_NAME=_
LOCATIONPath to react onLOCATION=/
PROXY_PASSURI to proxy toPROXY_PASS=http://10.177.90:9090

Additional users can be defined via LOGIN0..100 and PASSWORD0..100, additional locations via LOCATION0..100 and PROXY_PASS0..100.

Docker Pull Command

docker pull lloesche/auth-proxy-dcos