this post was submitted on 10 Dec 2025
450 points (99.6% liked)

Selfhosted

53899 readers
256 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

By 'Git instances' they mean Gogs instances that allow open registration. I know most of the community moved from Gogs to Gitea, and then to Forgejo, but thought this was still worth noting.

top 50 comments
sorted by: hot top controversial new old
[–] scrubbles@poptalk.scrubbles.tech 145 points 2 weeks ago (2 children)

Good note, and good callout, we should always call out these things.

But yes if you're self hosting and you both have a public facing instance and allow open registration, you are a much much braver person than I.

[–] jeena@piefed.jeena.net 30 points 2 weeks ago (2 children)

I'm not allowing random people hosting their git repos on mine but it's public and they can fork my own stuff on it in theoretically upload some bullshit.

[–] null@piefed.nullspace.lol 13 points 2 weeks ago (1 children)

Got curious and lurked your profile. You might want to update your about from Lemmy to PieFed 🙂

[–] jeena@piefed.jeena.net 7 points 2 weeks ago (1 children)

Oh, there is still some Lemmy link somewhere? I'm trying to find it but couldn't, where did you see it?

[–] null@piefed.nullspace.lol 11 points 2 weeks ago (1 children)

Oh actually it’s on your homepage (jeena.net) in the About section on the left side

[–] jeena@piefed.jeena.net 9 points 2 weeks ago (1 children)

Aah, there it was, thanks! Fixed.

[–] irmadlad@lemmy.world 6 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I live in South Korea, brew beer

Way off topic, but I use to be a prolific brewer of beer. In fact the rig that I built can turn 50 gallons of wort in about 3 hours and it's ready to pitch the yeast in. Brewing beer is a very fascinating process. I also made meads, wines, and have dabbled in sake, tho I wouldn't say my sake was ready for prime time. LOL And you are a musician. I already like you and I don't even know you. LOL

[–] jeena@piefed.jeena.net 8 points 2 weeks ago (1 children)

Haha, yeah, although some of my hobbies slowed down a lot since I got a family. Small children really take up a lot of time.

Today for example the 2.5 years old ate a lot of potato's and schnitzel without really chewing. Then he drank a ton of milk after dinner. While his big sister already went to bed at 21:30 he was still jumping on the bed at 22:00 und suddenly he puked out everything on the bed. So we had to clean RhE bed, the floor, him and us, was everything, shower etc.

Now it's 23:00 and he is still excited about it and is singing in the freshly made bed instead of sleeping.

Actually we wanted to watch a episode of some TV series bit now it's way too late for this.

load more comments (1 replies)
[–] Jason2357@lemmy.ca 3 points 1 week ago (1 children)

Any time you have a server willing to process random data uploaded from randos, just expect it to be compromised eventually and prepare for the eventuality by isolating it, backing it up religiously, and setting up good monitoring of some sort. Doesnt matter if its a forge, a wiki, or like nextcloud or whatever. It will happen.

[–] Jason2357@lemmy.ca 2 points 1 week ago (1 children)

To anyone afraid of the above conclusion, a dedicated $5 VPS with automatic snapshots get you a long way.

load more comments (1 replies)
[–] bort@sopuli.xyz 116 points 2 weeks ago (1 children)

Here are the steps:

  • The attacker creates a standard Git repository.
  • They commit a single symbolic link pointing to a sensitive target.
  • Using the PutContents API, they write data to the symlink. The system follows the link and overwrites the target file outside the repository.
  • By overwriting .git/config (specifically the sshCommand), the attacker can force the system to execute arbitrary commands--

amazing.

[–] addie@feddit.uk 28 points 2 weeks ago (1 children)

Especially since any version of Git from the last view years has a passionate hatred of symlinks for this reason, which is a bit annoying if you've a legit usecase. They're either very out-of-date, or have done some very foolish customisation...

[–] JackbyDev@programming.dev 2 points 1 week ago (1 children)

I think the ZIP standard has something similar and it causes similar problems.

[–] PlexSheep@infosec.pub 7 points 1 week ago (1 children)

It's because of the old notion of "be generous in what you accept and strict in what you send". I think the error is something about adding more parent directories so that part of your zip file will be extracted above the selected directory. Not all implementations of zip support this "feature".

There are also all kinds of stupid ancient features in tar and zip from a time when hard drives were measured in megabytes or less. The latest episode of the open source security podcast talks about it.

[–] Jason2357@lemmy.ca 3 points 1 week ago (2 children)

We also have COW filesystems now. If you need large datasets in different places, used by different projects, etc, just copy them and use BTRFS or ZFS or whatever. It wont take any space and be safer. Git also has multiple ways of connecting external data artifacts. Git should by default reject symlinks.

load more comments (2 replies)
[–] 1984@lemmy.today 71 points 2 weeks ago* (last edited 2 weeks ago) (8 children)

People have open registration on those things... Thats.. Brave...

I have my own gitea instance in my homelab but of course its not accessable from the internet.

[–] quick_snail@feddit.nl 12 points 2 weeks ago (3 children)

Well that kinda kills collaboration

[–] 1984@lemmy.today 19 points 2 weeks ago (1 children)

Yeah. If I needed collaboration, I would just whitelist their ips or require everyone involved to use Wireguard vpn, Tailscale or other solutions that allows access without being publically exposed.

[–] quick_snail@feddit.nl 6 points 2 weeks ago (1 children)

That kills collaboration from new people who just, like, discovered your project on some Lemmy thread

[–] Natanael@infosec.pub 8 points 2 weeks ago

They can still collaborate old school way. You can publish static mirrors of git, then take email patches lol

[–] greedytacothief@lemmy.dbzer0.com 5 points 2 weeks ago (8 children)

I do the same thing. Anything I put on there isn't something that I would share with the Internet anyway. If it was a serious project, sure. It's just nice to have a personal git you can access over a VPN sometimes.

load more comments (8 replies)
load more comments (1 replies)
[–] Lightfire228@pawb.social 8 points 2 weeks ago (4 children)

I wonder if it'd be feasible to make a fediverse github

[–] JackbyDev@programming.dev 6 points 1 week ago (1 children)

Git is already a distributed version control system.

[–] Lightfire228@pawb.social 2 points 1 week ago* (last edited 1 week ago) (1 children)

But it doesn't have any built-in concept of users, write permissions, or authentication (except for commit signing)

Hosting an unauthenticated git repo would be the equivalent to an open ssh port with no password required

Not to mention collaborative things like issue tracking, PRs, forums, etc

[–] JackbyDev@programming.dev 2 points 1 week ago (7 children)

Forgejo has all that, and then you can achieve "federation" by virtue of pushing to whatever remote. I wasn't suggesting people use git itself (which is possible). I just meant that it's distributed as opposed to centralized like Subverison is.

[–] hikaru755@lemmy.world 5 points 1 week ago

Well but distributed != federated. Which is why Forgejo is currently working on a federation feature.

load more comments (6 replies)
[–] eutampieri@feddit.it 3 points 2 weeks ago* (last edited 2 weeks ago)

There was a discussion on Forgejo and ActivityPub IIRC

Edit: this is what you’re looking for: https://forgefed.org/

load more comments (1 replies)
load more comments (6 replies)
[–] Lem453@lemmy.ca 22 points 2 weeks ago (4 children)

If i remember correctly on my gitea (now forgejo) the default is open registration which really shouldn't be the case for projects that are targeted towards self hosters.

My inital install was a long time ago so I don't remember for sure

[–] JadedBlueEyes@programming.dev 8 points 2 weeks ago (1 children)

Yeah in my project open registration is behind an option called yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse lol

[–] JackbyDev@programming.dev 2 points 1 week ago

Honestly, this is always more effective than a comment in the config because it can get removed. All it would take is a popular guide having the config with that option on and the comment gone.

[–] AmbiguousProps@lemmy.today 7 points 2 weeks ago (2 children)

I'm a current gitea user.. should I be moving to forgejo?

[–] victorz@lemmy.world 18 points 2 weeks ago (1 children)
[–] AmbiguousProps@lemmy.today 4 points 2 weeks ago (1 children)

Thanks! I'll add it to the todo list.

[–] klangcola@reddthat.com 3 points 2 weeks ago (5 children)

I just did it not long a ago. Gittea -> Forgejo10 -> Forgejo11 LTS, in Docker. Surprisingly quick, painless and smooth.

(My only issue was not Forgejo, but MySQL. Because the hardware is ancient and Docker compose pulled down a new version of mysql8 at the same time as pulling forgejo. New version of mysql8 didnt support my CPU architecture. Easy fix was to change the label mysql8oraclelinux7 in Docker compose and pull that image. There is a issue with solutions in the MySQL Docker GitHub repo)

load more comments (5 replies)
load more comments (1 replies)
[–] EncryptKeeper@lemmy.world 5 points 2 weeks ago

Reading between the lines I feel like when you say “Targeted towards self hosters” what you mean is “John Q Hobbyist who doesn’t know any better”

And in response to that I would contend that Gitea is not actually targeted at those folks, though they obviously use it. Gitea is FOSS but it’s still “targeted” at professionals.

[–] Jason2357@lemmy.ca 2 points 1 week ago

This absolutely. Anyone who actually wants open registration will be configuring their own SSO or whatever backend. The default should be safe for testing and/or hobbyists.

[–] GreenKnight23@lemmy.world 16 points 1 week ago (1 children)

this is what I'm talking about when it comes to the selfhosted communities.

if you don't know how to properly segment and vlan your network, you have no business exposing your shit to the internet.

[–] Jason2357@lemmy.ca 12 points 1 week ago

While good, network security isnt the issue. Its running a web service with open registration allowing randos to upload content that gets processed by the server.

Throw this up on a dedicated $5 VPS and you still have a problem. The default should be manual registration by admins.

load more comments
view more: next ›