How to connect with Basic Auth?


#1

If I have subdomain protected by Cloudflare Access how can I authenticate my request using HTTP Basic Auth?


#2

Doesn’t looks like basic auth is supported.

Is this for some automated service where you need to be able to login without using an IDP? Maybe this helps -


#3

That one works but need Basic Auth for access from Grafana (Elasticsearch Data Source) which has only that :frowning:


#4

You could do that via Workers theoretically, putting them in front and checking the credentials there. It’s not Access Auth though. Don’t know if there is a way to add those credentials @Judge linked to and make the work. You can add them, but don’t think it will work as Access is probably handled before.

Maybe use a secondary path for this purpose?


#5

Hi Matteo,

thanks for this but honestly this seems like a lot of work for a simple task which is protecting my elasticsearch cluster. I will probably have to setup nginx server on our end that will take care of this…was hoping Cloudflare Access would be easy go to solution for simple auth… :frowning:


#6

Well Basic Auth isn’t really the best protection and also is directly supported by all browsers.