Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsws-dockerfiles.