cortex-tenant icon indicating copy to clipboard operation
cortex-tenant copied to clipboard

Basic Auth support

Open fculpo opened this issue 3 years ago • 1 comments
trafficstars

Hi, our central cortex/mimir cluster is basic-auth protected, could cortex-tenant be configured to read a k8s secret containing username/password ?

Topology would be like: (local (prometheus) -> (cortex-tenant)) -----> (remote (cortex basic-auth ingress))

fculpo avatar Jul 12 '22 09:07 fculpo

another possible way is to have cortex-tenant in the remote cluster (with a basic-auth ingress) absorbing all traffic form all clusters, but then I'm afraid it will be a bottleneck

fculpo avatar Jul 12 '22 09:07 fculpo

I would also like to have this feature to be able to deploy cortex-tenant on remote clusters having to communicate with basic auth protected ingress. @blind-oracle Can I suggest a PR for this ? If so, any contributing guidelines ?

stevenbressey avatar Sep 16 '22 11:09 stevenbressey

@stevenbressey @fculpo I've pushed a new release with HTTP basic auth support in egress, please try if that suits you. I can add HTTP auth for ingress too a bit later.

blind-oracle avatar Sep 16 '22 13:09 blind-oracle

Thanks so much for the quick response !

stevenbressey avatar Sep 16 '22 14:09 stevenbressey

@stevenbressey No problem, be advised though that I never tried if it works, but according to specification it should :)

blind-oracle avatar Sep 16 '22 14:09 blind-oracle

I am wondering how everyone is managing authentication for tenants? Mimir/cortex only ships with basic pw auth, not configurable per tenant so one must spin up something like nginx themselves and manually configure, but then how would cortex-tenant auth to it (per tenant) if that were the case?

ctrought avatar Oct 05 '22 04:10 ctrought