Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some user auth to dashboard #78

Open
koddr opened this issue Apr 14, 2021 · 7 comments
Open

Add some user auth to dashboard #78

koddr opened this issue Apr 14, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@koddr
Copy link

koddr commented Apr 14, 2021

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!

@hibiken
Copy link
Owner

hibiken commented 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 👍

@hibiken hibiken added the enhancement New feature or request label Apr 14, 2021
@tinnkai
Copy link

tinnkai commented Apr 13, 2022

I also hope that hibiken can implement this function @hibiken

@tony95271
Copy link

any updates?

@hibiken
Copy link
Owner

hibiken commented 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!

@syahidfrd
Copy link

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

@muqiuren
Copy link

Is it supported now?

@zekiahmetbayar
Copy link

I have a PR for this! #313 @hibiken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants