Coder Social home page Coder Social logo

Comments (3)

Code-Egg avatar Code-Egg commented on June 18, 2024

Hi,

Right. basically it's hashed, and we strongly recommend user to set their personal password right away.
https://github.com/litespeedtech/lsws-docker-env#setting-the-webadmin-password

Best,
Eric

from lsws-dockerfiles.

RiRa12621 avatar RiRa12621 commented on June 18, 2024

It's fine that you recommend to have folks change it, hashing is not a very valid argument imho, espcecially md5crypt

$ cat passwd
admin:$1$RaqgGtmd$81EhmoqpWhiJJtCDRp0FX/
$ john passwd --show
admin:123456

1 password hash cracked, 0 left

from lsws-dockerfiles.

lars-hagen avatar lars-hagen commented on June 18, 2024

It's fine that you recommend to have folks change it, hashing is not a very valid argument imho, espcecially md5crypt

$ cat passwd
admin:$1$RaqgGtmd$81EhmoqpWhiJJtCDRp0FX/
$ john passwd --show
admin:123456

1 password hash cracked, 0 left

Hi Rick,

Thank you for your message.

This was a design choice, due to the nature of docker.

Litespeed auto generates a random password by default. We disabled that, because the docker image isn't built on the user end but on the CI(travis) end. So lets say we print the password to the console, it will be on travis, anyone can still see it. Lets say we generate the password when you start up the containers on your end, what if you ran docker-compose up -d then you dont see the logs. Now you have to try and look through the logs to find it. Lets say we store the randomly generated password in the environment, well its still in plain text. Sure we can encrypt it using a random hash but ultimately everything is still there.

The goal with this setup was to have something simple that just works. Another problem with docker-compose up is that it doesn't allow for user interaction, if they did it would have solved this problem. We didn't want to over complicate things with this setup, we wanted to keep it as simple as possible, which was why we stuck with the default litespeed password.

You could argue that the password should be random, so when you run the setup first time, you would be forced to change it. But then we have to communicate that somehow to the user, would that be via stdout or a web page. And it has to be bullet proof so we don't introduce new problems.

I hope that cleared some things. If not feel free to write again, and if you a solution to the problem feel free to make a PR.

Best Regards
Lars

from lsws-dockerfiles.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.