-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Making docker usage with localhost and external ip more clear #3836
Conversation
Previous related discussion: #3002 |
My PR does not change a code, but only extends docs with a clarification that using ordinary "3001:3001" could lead unexpected results like (e.g. security issues like continious brute force, leak of password via unencrypted http due MiTM attack). I know that is would be a problem of end user itself, but not everybody is friendly with container technologies and administration :) |
I agree that this is a better solution. However, I think the language in the proposed change is not clear and maybe confusing.
In both cases, the container is still running at localhost.
"Other users" can be on the same machine and they can still access the application. I think the only difference here is whether the port binding is accessible for external IPs. Explaining that clearly would be enough. |
This comment was marked as resolved.
This comment was marked as resolved.
I understand If people copy this command in the README.md without reading, I think there will be a lot of people asking why Uptime Kuma is not working. So please move it to the wiki instead under
It seems that the feature had been removed. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@louislam, uptime kuma allows intruder who can brute force admin password (first issue - password strength, uptime kuma allows me to use |
I have updated the docs-change proposed in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarification in the docs ✨
All changes in this PR are small and uncontroversial
⇒ merging with junior maintainer approval
@@ -43,11 +43,18 @@ It is a temporary live demo, all data will be deleted after 10 minutes. Sponsore | |||
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1 | |||
``` | |||
|
|||
Uptime Kuma is now running on http://localhost:3001 | |||
Uptime Kuma is now running on <http://0.0.0.0:3001>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still thinking, using localhost
here could have more accessible for someone who would like to try this in their current PC. While 0.0.0.0
is not working for any cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure what case you are refering to.
I think you are referring to cases where the default route is not local or completely borked. Thing is, that I am not quite sure if localhost wou work in this case.
I assume that in somebody goes around and configures his*her default network route, they are knowlegable to know how to deal with this
=> likely does not matter
If you think this is better, I can revert this change ^^
https://superuser.com/questions/949428/whats-the-difference-between-127-0-0-1-and-0-0-0-0
does claim
The all-zero value does have a special meaning. So it is "valid", but has a meaning that may not be appropriate (and thus treated as not valid) for particular circumstances. It is basically the "no particular address" placeholder. For things like address binding of network connections, the result can be to assign an appropriate interface address to the connection. If you are using it to configure an interface, it can remove an address from the interface, instead. It depends on the context of use to determine what "no particular address" really does.
In the context of a route entry, it usually means the default route. That happens as a result more of the address mask, which selects the bits to compare. A mask of "0.0.0.0" selects no bits, so the compare will always succeed. So when such a route is configured, there is always somewhere for packets to go (if configured with a valid destination).
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
This pull request makes a small change in README.md related to running in docker. Previously it said that using
-p 3001:3001
will expose this port to localhost, but it actually exposes it to 0.0.0.0, and it can lead problems like a target for brute force (it's expecially dangerous for VPS or for machines that have external IP).Type of change
Please delete any options that are not relevant.
Checklist
(including JSDoc for methods)
Screenshots (if any)
It displays the situation met by me by using default commandline.
And what would be if we will use the second commandline.