nginxinc / nginx-loadbalancer-kubernetes

A Kubernetes Controller to synchronize NGINX+ Resources with Kubernetes Ingress Resources
Apache License 2.0
58 stars 19 forks source link

NLK Basic Auth Support #173

Closed oguzhancelikarslan closed 6 months ago

oguzhancelikarslan commented 8 months ago

Is your feature request related to a problem? Please describe

The /api endpoint on the server I set up with Nginx Plus is protected with basic authentication. However, NLK cannot access this endpoint, and I believe this is an important feature.

Describe the solution you'd like

We can store a password for BasicAuth in the Secret. If the application finds this field filled, it should use it.

Additional context

When I examined the Nginx Plus Go Client, I noticed that such a structure does not exist, and it seems that development needs to be done there as well.

ciroque commented 8 months ago

Hi @oguzhancelikarslan, thanks for the report!

I will look into this next week, it definitely seems like a common use case.

brianehlert commented 7 months ago

The TLS option to secure traffic support mTLS, which also meets an authentication requirement. Is there something specific that I am missing?

oguzhancelikarslan commented 6 months ago

@brianehlert TLS option solved my problem.