uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Password protected Status Page

Open uncappedshady opened this issue 2 years ago • 5 comments

⚠️ Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find similar feature request

🏷️ Feature Request Type

UI Feature

🔖 Feature description

Require the ability to password protect a status page.

✔️ Solution

When I visit a specific status page, it should prompt me to enter a username and a password and only display the status page once correct credentials has been entered.

❓ Alternatives

No response

📝 Additional Context

No response

uncappedshady avatar Jun 13 '22 10:06 uncappedshady

Status pages are inherintly public. If you want it so only you can access the information then you can just leave them on the dashboard and not create a status page. However, this won't work if you only want access from within your organization. In cases like this, you could look at using Authelia to provide your authentication.

Computroniks avatar Jun 13 '22 10:06 Computroniks

you can just do it within nginx reverse proxy, if you have one.

check uptime kuma instructions for setting up nginx config, use "location" parameter to define your status page url and add this: auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/.htpasswd;

You can find guide on this and on how to create user and pass - check here official nginx docs.

madroots avatar Jun 17 '22 07:06 madroots

Would be cool to have this one, use-case:

Having 10+ Status Pages with different "folders" per Customer/Team it would be cool to have an optional pw protection within uptime-kuma per Folder/Team.

Would this be possible with Authelia as well @Computroniks? thanks!

shakalandy avatar Oct 14 '22 14:10 shakalandy

I Found a way here, not the best but for my needs works fine.

I have a need to make all my status page private. No need for alter database or other UI things just protect the pages with login.

Here is the code that renders the StatusPages.

Before that code add a simple modification for redirect to / when user is not logged_in.

if (!this.hasToken) this.$router.push("/");

Just fork the project, adjust, make the build and be happy.

cheesepaulo avatar Nov 01 '22 15:11 cheesepaulo

@cheesepaulo Thanks for the advice. 👍👍👍

tahaipek avatar Mar 20 '23 18:03 tahaipek

@uncappedshady I think this is a duplicate of https://github.com/louislam/uptime-kuma/issues/1401 If you agree please close this issue, as issue-management is harder with zombies hanging around. If you disagree, what is the difference?

CommanderStorm avatar Jun 29 '23 13:06 CommanderStorm

Closing as duplicate of https://github.com/louislam/uptime-kuma/issues/1401

CommanderStorm avatar Dec 03 '23 23:12 CommanderStorm