Closed alexppg closed 3 years ago
@alexppg Do you mean request to Clair, right?
Yes. @hashmap
This would really be great, or basically any type of auth for the Clair server, so that it can be exposed to the web. Is anyone working on this? :)
Just checked, basic auth works out-of-the-box in Klar (at least for v1 API):
CLAIR_ADDR=https://LOGIN:PASSWORD@HOST:PORT
To add basic authentication to Clair when using ingress-nginx, follow the official docs: https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/auth/basic
Pull request with README update: https://github.com/optiopay/klar/pull/130
I have not tried it, but since it's done a looot ago, I'll just open another issue if I need to. Thanks for your efforts!
It would be nice to support basic authentication, since the default behavior is to be open to everybody.