counterscale icon indicating copy to clipboard operation
counterscale copied to clipboard

Dashboard Login Pass

Open xemorytr opened this issue 1 year ago • 4 comments

The project source codes are made publicly viewable.

So it would be better if the admin panel entry is encrypted.

There may be something I missed, if there is a link to it, can you share it?

or

An idea to add a new feature to the project.

Thanks

xemorytr avatar Oct 14 '24 20:10 xemorytr

I've been wanting this too, and in the Cloudflare workers documentation there are some examples on basic authentication. Haven't pieced together how to make it work for Counterscale yet though.

dayofdoom avatar Oct 18 '24 17:10 dayofdoom

It's true that today Counterscale depends on being deployed on a publicly-accessible URL. There is no authentication or user/login today.

But I agree this is important and consider it a high priority.

benvinegar avatar Oct 21 '24 05:10 benvinegar

Something to check https://dev.to/charca/password-protection-for-cloudflare-pages-8ma. @benvinegar this actually worked, but for the entire project, but I am not sure if it affects data collection? So, I removed it for now.

lrh11099 avatar Oct 21 '24 08:10 lrh11099

It can be achieved by using Cloudflare Zero Trust without touching the code. You can setup an Access Application that points to the dashboard path and only add authentication to the page. Here is a tutorial I found for just that. https://runcloud.io/blog/wordpress-login-pages-cloudflare-zero-trust#step-3-configure-the-application

intitni avatar May 28 '25 14:05 intitni

For visibility, I'm working on single user auth for the dashboard in #202. Aiming to ship it in the next release!

stordahl avatar Jul 30 '25 18:07 stordahl

Will be included in 3.2.0 - already available in pre-release version 3.2.0-beta.0

stordahl avatar Aug 25 '25 15:08 stordahl