docker-flow / docker-flow-proxy

Docker Flow Proxy
https://docker-flow.github.io/docker-flow-proxy/
MIT License
317 stars 189 forks source link

Feature - support per-path basic auth configuration with docker labels #93

Closed felicienfrancois closed 2 years ago

felicienfrancois commented 5 years ago

Basic authentification can currently be setup at a service level using com.df.users docker label.

Would be very useful to be able to setup it in a per-path basis using the multiple path mapping pattern:

        - com.df.serviceDomain.1=api.qa.myapp.com
        - com.df.servicePath.1=/rest/
        - com.df.serviceDomain.2=www.qa.myapp.com
        - com.df.servicePath.2=/
        - com.df.users.2=myUser:myPassword # currently does not work

Use case is protecting frontend of staging environments while keeping API endpoints accessible with their built-in authentication

thomasjpfan commented 5 years ago

This is a good idea. One way to implement this is to create a userlist for services that have com.df.users defined and use the http_auth acl for authentication.

vfarcic commented 5 years ago

This project needs adoption. I moved to Kubernetes and cannot dedicate time to this project anymore. Similarly, involvement from other contributors dropped as well. Please consider contributing yourself if you think this project is useful.

lle0x commented 2 years ago

Dear @felicienfrancois

If this issue is still relevant, please feel free to leave a comment here.

lle0x commented 2 years ago

Closed due to inactivity