this post was submitted on 11 Jul 2025
695 points (100.0% liked)

You Should Know

39755 readers
149 users here now

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason "Why" YSK:

**In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content. **



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Rule 11- Posts must actually be true: Disiniformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated.

If you file a report, include what specific rule is being violated and how.



Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

founded 2 years ago
MODERATORS
 

So if you do the Docker setup, obeying the instructions and substituting everything that needs to get substituted, but don't proofread the files in detail and so miss that line 40 of docker-compose.yml doesn't have the variable {{domain}} like in every other location you need to write your domain, but instead just says LEMMY_UI_LEMMY_EXTERNAL_HOST=lemmy.ml and so you fail to change it away from lemmy.ml... then, everything will work, until you type in your admin password for the first time, at which point your browser will send a request to lemmy.ml which includes your admin username, your email address, and the admin password you're trying to set. And, also, of course your IP address wherever you are sitting and setting up the server.

I have no reason at all to think the Lemmy devs have set their server up to log this information when it comes in. nginx will throw it away by default, of course, but it would be easy for them to have it save it instead, if they wanted to. And my guess is most people won't use a different admin password once they figure out why creating their admin user isn't working and fix it.

@[email protected] @[email protected] I think you should fix the docker-compose.yml file not to do this.

Edit: Just to increase the information-to-rudeness ratio of my post. The docs are at:

https://join-lemmy.org/docs/administration/install_docker.html

And they recommend using wget to download:

https://raw.githubusercontent.com/LemmyNet/lemmy-docs/main/assets/docker-compose.yml

Which is pulled from:

https://github.com/LemmyNet/lemmy-docs/tree/main/assets

Which is what has the wrong line 40 in it.

Edit: They fixed it. Good stuff.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 95 points 2 days ago (1 children)

I think you should also make a GitHub issue too

[–] [email protected] 20 points 2 days ago (4 children)

It would literally take me longer to make the github issue than it would take them to fix it, by quite a big margin. You can make one for it, if you still feel super-strongly about it though.

[–] [email protected] 47 points 2 days ago (1 children)

I am a lazy unreliable person. But I find value in what you found and want it fixed.

If you don’t do it, it probably will not get fixed so fast

[–] [email protected] 23 points 2 days ago* (last edited 2 days ago) (2 children)

I cannot imagine any responsible dev who would read this notification and say anything other than "Oh shit, yeah, that's really bad," and fix it on the spot before they continue with whatever they had visited Lemmy to do. Like I say, it's relevant that it takes literally seconds to grasp the issue and fix it.

I don't fully disagree with you, I get it, github issues is where issues with the software belong. I wasn't trying to be a jerk by suggesting that you do it. Anyone from these comments is welcome to. But, also, I am sort of curious about what their reaction will be. Finding out that kind of thing is interesting to me.

If they are actively uninterested in fixing it, however they get made aware of it, then that's really interesting.

[–] [email protected] 28 points 2 days ago (3 children)

Pretty sure it’s an oversight but devs are overworked, really overworked

There are many more important things to fix before this.

But an issue will put it in the todo list

[–] [email protected] 24 points 2 days ago

They’re so overworked that they spend most of their day policing other’s thoughts.

[–] [email protected] 19 points 2 days ago* (last edited 2 days ago) (3 children)

Within the last hour, dessalines has posted three things about communism that are longer than the fix for this issue.

Edit: Everyone's got the right to do whatever they want to do. I'm not trying to accuse anyone of not spending enough time making software for me, just because occasionally they might want to do some other things with their life. The thing I'm trying to emphasize with this is how short the fix is. It's seconds. It's not one of those "but you have to recompile, what about this other branch" or anything like that. It's literally a fairly critical security fix with 100% of the fix in a one-line change to a documentation file.

[–] [email protected] 29 points 2 days ago

Wow you typed a LOT to defend not making a GitHub issue. That energy redirected to writing a GitHub issue would be stellar.

[–] [email protected] 19 points 2 days ago (1 children)

Go fix it yourself. You're correct that's the admin's problem but if you're so insistent that it takes a minute go submit a merge request real quick.

Also it's only a security breach if you don't change the admin password or your domain which should be standard for setting things up on the Internet anyway.

[–] [email protected] 10 points 2 days ago (1 children)

I would fix it if we had a link. This problem is not present in the main branch.

https://github.com/LemmyNet/lemmy/blob/main/docker/docker-compose.yml

environment:
      # this needs to match the hostname defined in the lemmy service
      - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
      # set the outside hostname here
      - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
      - LEMMY_UI_HTTPS=false
      - LEMMY_UI_DEBUG=true
[–] [email protected] 8 points 2 days ago* (last edited 2 days ago) (2 children)

It's present in the link on:

https://join-lemmy.org/docs/administration/install_docker.html

Which refers people to download:

https://raw.githubusercontent.com/LemmyNet/lemmy-docs/main/assets/docker-compose.yml

What you're linking to is not what the live docs link to. I don't know what main/docker is for, but the docs link to main/assets, not there.

[–] [email protected] 5 points 2 days ago (1 children)

You are right, that is sus. The main repo does not have this and the docs repo have the main as a sub module, but still have a folder named assets with a different docker-compose.yml.

Would have been nice with a link from the start.

[–] [email protected] 4 points 2 days ago

Would have been nice with a link from the start.

Yeah, 100%. I edited the post to add more of the details.

[–] [email protected] 2 points 2 days ago (1 children)

That download to github assests is pointing to that file.

Maybe it's already fixed.

[–] [email protected] 2 points 2 days ago (1 children)
[–] [email protected] 4 points 2 days ago (1 children)

Ah. If someone has not fixed it yet I will submit a PR tonight.

[–] [email protected] 2 points 2 days ago (1 children)

Sounds great. Thank you, it sounds like a good idea.

[–] [email protected] 2 points 2 days ago

Personally it'd be better if you just did it but as you said it's a general security vulnerability and it would be better for the community if those did not exist.

[–] [email protected] 18 points 2 days ago

Why don’t you a pull request and fix it yourself ? If you have the ability to recognize and know what to fix, and if you care, do it!

I know I’m too lazy to help them, what is your excuse ?

I swear, I might just get off the fence and help them myself on unrelated issues, it’s making me that unsettled

[–] [email protected] 17 points 2 days ago (1 children)

I wouldn't give them the benefit of the doubt, the devs are dodgy fuckers.

[–] [email protected] 6 points 2 days ago (1 children)

But you use the software they make…

[–] [email protected] 18 points 2 days ago* (last edited 2 days ago) (2 children)

I'm on PieFed for exactly that reason.

[–] [email protected] 4 points 2 days ago (1 children)

Your information, the data itself, goes through their code to reach most people on lemmy.

[–] [email protected] 11 points 2 days ago* (last edited 2 days ago) (1 children)
[–] [email protected] 7 points 2 days ago (1 children)

I think this was the comment that pushed me to actually contribute to lemmy code. Thanks

[–] [email protected] 10 points 2 days ago

Okay Mr.Gotcha, please don't make any more hard hitting takes I can't take it.

[–] [email protected] 2 points 2 days ago

Every admin seems a bit shady to me….

[–] [email protected] 22 points 2 days ago (1 children)

Oh I abso-fucking-lutely can imagine seeing someone spamming me with DMs or making a public post to try and shame me instead of commenting on the actual source project going straight into my "ignore this twat" pile. This post is just a cry for attention. You're trying to be some sort of hero, saving us from evil or some shit.

Go make a GitHub request like a reasonable normal person and stop cluttering up others feeds with this inane bs.

[–] [email protected] 15 points 2 days ago (1 children)

I am not typing here in the hopes that they will fix it. I am typing here to communicate to other users what's up with it. Whether or not to fix it is up to them. You're welcome to your opinion.

[–] [email protected] 11 points 2 days ago* (last edited 2 days ago) (1 children)

Bullshit. In another comment you literally complain about them posting comments(3 communist comments I think you said?) and not fixing this because in your words it should take less time to just fix it. You also say that their response(or lack of) to this specific post is interesting to you as proof of their inner motivations.

Furthermore, if you didn't want them to fix it, then tagging them is only to bully them.

You're so full of shit you can't even keep it straight since you posted this an hour ago.

[–] [email protected] 10 points 2 days ago (1 children)

A lot of people, I think, would appreciate knowing if there's indication that their software might be doing something sketchy to them. You might feel that my appropriate response about it should be to shut up, shut up, shut up!, but I don't think I will. When it comes to issues of trust and security in software, it's usually not that good an idea to just silently fix it and not talk about it so nobody's feelings will be hurt and no one will feel bullied.

I've posted the patch and recommended that someone post a PR about it. I do think it would be good if it gets fixed. If the Lemmy devs claim that me being a twat is a good excuse for just leaving it as is, then like I said, that's a super interesting turn of events.

[–] [email protected] 9 points 2 days ago* (last edited 2 days ago) (1 children)

Attention whore on an imaginary crusade. That's all you are. Should change your name to Don Quiote.

[–] [email protected] 11 points 2 days ago
[–] [email protected] 32 points 2 days ago

It literally takes a minute to make a GitHub issue and you could have linked it here for your conversation. Probably would have helped the admins of ml change things. Especially considering that things like this get overlooked all the time in open source projects.

[–] [email protected] 27 points 2 days ago

And look at how much time you wasted defending your position to not post a github issue. Fucking unbelievable that you will publicly complain but NOT bring the issue up with the devs

Fuck people like you

[–] [email protected] 16 points 2 days ago (3 children)

I could have that PR up in like 5 minutes. And poop while I was doing it.

[–] [email protected] 11 points 2 days ago* (last edited 2 days ago)
***
a/docker-compose.yml	2025-07-12 00:17:33.050443300 +0000
+++ b/docker-compose.yml	2025-07-12 00:18:21.038972526 +0000
@@ -37,7 +37,7 @@
     image: dessalines/lemmy-ui:0.19.12
     environment:
       - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
-      - LEMMY_UI_LEMMY_EXTERNAL_HOST=lemmy.ml
+      - LEMMY_UI_LEMMY_EXTERNAL_HOST={{ domain }}
       - LEMMY_UI_HTTPS=true
     volumes:
       - ./volumes/lemmy-ui/extra_themes:/app/extra_themes

Edit: Just to be clear, this applies to https://github.com/LemmyNet/lemmy-docs/tree/main/assets which is linked to from https://join-lemmy.org/docs/administration/install_docker.html

[–] [email protected] 8 points 2 days ago

ragingHungryPanda

And poop while I was doing it.

looks skeptical

Bamboo is pretty fibrous.

[–] [email protected] 6 points 2 days ago