origin icon indicating copy to clipboard operation
origin copied to clipboard

Integrate simple auth basic to Openshift Routes.

Open jkroepke opened this issue 6 years ago • 7 comments

Hi,

HAProxy supports auth basic. Sometimes its required to simply protect debug/dev or web server stats urls.

It would be nicely if routes can be project via annotations. Is might looks insecure, but since certificates are included as plaintext so it should be okay.

Version
oc version
oc v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth

Server 
openshift v3.9.0+71543b2-33
kubernetes v1.9.1+a0ce1bc657
Additional Information

HAProxy documentations: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#3.4

With the new ingress handler upcoming in 3.10, auth basic credentials can be provided as secret like: https://github.com/kubernetes/ingress-nginx/tree/c9fcefe8401cb9e61d5989d836aa7e9dbda71ca1/docs/examples/auth/basic

jkroepke avatar Jul 15 '18 10:07 jkroepke

+1

hufon avatar Jul 24 '18 11:07 hufon

@openshift/sig-network-edge

jwforres avatar Jul 25 '18 13:07 jwforres

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-merge-robot avatar Oct 23 '18 15:10 openshift-merge-robot

/lifecycle frozen

jkroepke avatar Oct 23 '18 17:10 jkroepke

/remove-lifecycle stale

jkroepke avatar Oct 23 '18 17:10 jkroepke

That would be really great. It is possible with custom templating and mounting a secret. Would you accept a PR implementing it?

ibotty avatar Oct 21 '20 11:10 ibotty

mounting a secret

RedHat decide to avoid a dependency against user provided secrets.

Thats one reason why certificate and private keys are part of the Route object.

It looks like the content of a htaccss needs to be passed inside a value of a annotation.

jkroepke avatar Oct 21 '20 11:10 jkroepke