[GH-ISSUE #78] Add some user auth to dashboard #369

Open
opened 2026-03-07 22:14:33 +03:00 by kerem · 7 comments
Owner

Originally created by @koddr on GitHub (Apr 14, 2021).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/78

Hi,

I think is a good practice to cover Asynqmon dashboard with some auth procedure to login. A common case is when such tools are put side by side in a Docker container and need to be accessed remotely over the network.

For example, we can set this username and password by environment variables at starting Docker container:

docker run --rm \
    --name asynqmon \
    -e ASYNQMON_USER=user \
    -e ASYNQMON_PASSWORD=password \
    -p 8080:8080 \
    hibiken/asynqmon

And catch them by simple os.Getenv function in backend.
Yes, it's very-very simple solution, but works and solves all needs on the topic.

Login form can looks like this (without links, only login+pass+button, of course):
https://material-ui.com/getting-started/templates/sign-in/

What do you think about this, @hibiken? 😉

P.S. also, we can make a little hard thing: separation of users into roles (e.g. a super-admin and a guest, like RabbitMQ does). But that's a start for the future!

Originally created by @koddr on GitHub (Apr 14, 2021). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/78 Hi, I think is a good practice to cover Asynqmon dashboard with some auth procedure to login. A common case is when such tools are put side by side in a Docker container and need to be accessed remotely over the network. For example, we can set this `username` and `password` by environment variables at starting Docker container: ```bash docker run --rm \ --name asynqmon \ -e ASYNQMON_USER=user \ -e ASYNQMON_PASSWORD=password \ -p 8080:8080 \ hibiken/asynqmon ``` And catch them by simple `os.Getenv` function in backend. Yes, it's very-very simple solution, but works and solves all needs on the topic. Login form can looks like this (without links, only login+pass+button, of course): https://material-ui.com/getting-started/templates/sign-in/ What do you think about this, @hibiken? 😉 P.S. also, we can make a little hard thing: separation of users into roles (e.g. a super-admin and a guest, like RabbitMQ does). But that's a start for the future!
Author
Owner

@hibiken commented on GitHub (Apr 14, 2021):

Yep, sounds good! We should allow options to enable auth (a simple auth to begin like you suggested).

Let me look into this 👍

<!-- gh-comment-id:819698740 --> @hibiken commented on GitHub (Apr 14, 2021): Yep, sounds good! We should allow options to enable auth (a simple auth to begin like you suggested). Let me look into this 👍
Author
Owner

@tinnkai commented on GitHub (Apr 13, 2022):

I also hope that hibiken can implement this function @hibiken

<!-- gh-comment-id:1098146681 --> @tinnkai commented on GitHub (Apr 13, 2022): I also hope that hibiken can implement this function @hibiken
Author
Owner

@tony9527167 commented on GitHub (Apr 17, 2022):

any updates?

<!-- gh-comment-id:1100970675 --> @tony9527167 commented on GitHub (Apr 17, 2022): any updates?
Author
Owner

@hibiken commented on GitHub (Apr 18, 2022):

@tinnkai @tonytony2020 thanks for the comments!
I'm planning to invest some time in tooling (CLI, Web UI) in the coming weeks. So I'll take a look at this issue then!

<!-- gh-comment-id:1101619100 --> @hibiken commented on GitHub (Apr 18, 2022): @tinnkai @tonytony2020 thanks for the comments! I'm planning to invest some time in tooling (CLI, Web UI) in the coming weeks. So I'll take a look at this issue then!
Author
Owner

@syahidfrd commented on GitHub (Jul 18, 2022):

Hi, i have made asynqmon with simple basic auth, you can check this https://github.com/syahidfrd/asynqmon-handler

docker run --rm \
    --name asynqmon-handler \
    -e ASYNQMON_USER=admin \
    -e ASYNQMON_PASSWORD=secure123 \
    -p 3000:3000 \
    syahidfrd/asynqmon-handler
<!-- gh-comment-id:1186790343 --> @syahidfrd commented on GitHub (Jul 18, 2022): Hi, i have made asynqmon with simple basic auth, you can check this https://github.com/syahidfrd/asynqmon-handler ``` docker run --rm \ --name asynqmon-handler \ -e ASYNQMON_USER=admin \ -e ASYNQMON_PASSWORD=secure123 \ -p 3000:3000 \ syahidfrd/asynqmon-handler ```
Author
Owner

@muqiuren commented on GitHub (Jul 31, 2023):

Is it supported now?

<!-- gh-comment-id:1657728901 --> @muqiuren commented on GitHub (Jul 31, 2023): Is it supported now?
Author
Owner

@zekiahmetbayar commented on GitHub (Oct 26, 2023):

I have a PR for this! https://github.com/hibiken/asynqmon/pull/313 @hibiken

<!-- gh-comment-id:1780928683 --> @zekiahmetbayar commented on GitHub (Oct 26, 2023): I have a PR for this! https://github.com/hibiken/asynqmon/pull/313 @hibiken
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#369
No description provided.