this post was submitted on 11 Apr 2024
132 points (79.7% liked)

Technology

34879 readers
59 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev 4 points 7 months ago* (last edited 7 months ago) (1 children)

Not sure what you're suggesting. Here... are you suggesting random write access to a port on a device you host? Anybody can push a branch to your selfhosted repo?

Or are you talking about self-hosted forgejo, gitlab, etc.?

Anti Commercial AI thingyCC BY-NC-SA 4.0

Inserted with a keystroke running this script on linux with X11

#!/usr/bin/env nix-shell
#!nix-shell -i bash --packages xautomation xclip

sleep 0.2
(echo '
spoiler Anti Commercial AI thingy [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) Inserted with a keystroke running this script on linux with X11 ```bash' cat "$0" echo '``` :::') | xclip -selection clipboard xte "keydown Control_L" "key V" "keyup Control_L"

:::

[–] lurch@sh.itjust.works 1 points 7 months ago (1 children)

Yes, if you want to accept pull requests from anyone, you can set up a jailed git server with public access, for example.

[–] onlinepersona@programming.dev 2 points 7 months ago (1 children)

That's not a pull request, but a merge request. Besides the point though. What I'm getting at is: isn't that asking for trouble? Somebody could

while true ; do
  head /dev/urandom -c 100MB > file.txt
  git add file.txt
  git commit -m "new commit"
  git push
done

and fill up your hard drive. Also, depending on the protocol, they could try fuzzing it. Or, pipe /dev/urandom into nc and blast your git port.

And of course, the first problem is discoverability. Who's going to find your random, unfederated, git service?

It just doesn't sound like a convincing solution, IMO.

Anti Commercial-AI license

[–] lurch@sh.itjust.works 1 points 7 months ago

no, it's not specific to merge requests. theres a tool called git-shell that prevents abuse