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

[feature] Password enforced by default #2339

Open
edoardottt opened this issue Apr 30, 2024 · 0 comments
Open

[feature] Password enforced by default #2339

edoardottt opened this issue Apr 30, 2024 · 0 comments
Labels

Comments

@edoardottt
Copy link

In certain scenarios it could be useful to don't have a password, for example when you're not exposing the docker container to the network (even private network), but only to localhost. That's the only reasonable scenario when it could be okay to don't have a password-protected instance (even in private networks it's a problem).

Something like this could be implemented:

Option 1

  1. On first install generates a random uuid and use that as a one-time use path for a setting password page. e.g. http://localhost:8000/3da194fb-8363-48c2-a210-9f3eafc10533.
  2. How to provide to the user this URL? I don't know, printing the URL in the terminal could be a problem (if they use -d in docker-compose up).
  3. The page presents the option to set a password or to don't use a password (with a banner saying "You have to know you are doing a stupid thing").
  4. Once the decision is made, the URL becomes invalid and that page is not accessible anymore. The password options are then only editable in the settings.

I know security by obscurity is not something useful, but in my opinion a uuid v4 for this scenario could be okay.

I know you provide an hosted version of changedetection too, so I don't know if this is a problematic process and how this can be adapted to the hosted version.

Option 2

Another option could be to create a file with a temporary pseudo-random password. That one is valid just for the first use, when you login you're prompted with a page giving the user 2 options:

  1. change the password
  2. don't use a password (with the same banner saying "You have to know you are doing a stupid thing")

Finally that file is deleted and the one-time password invalidated.

@edoardottt edoardottt added the enhancement New feature or request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants