Skip to content
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

Support Gitea: Codeberg as repository for registering dub package. #554

Open
BoQsc opened this issue Oct 7, 2023 · 3 comments
Open

Support Gitea: Codeberg as repository for registering dub package. #554

BoQsc opened this issue Oct 7, 2023 · 3 comments

Comments

@BoQsc
Copy link

BoQsc commented Oct 7, 2023

image

https://codeberg.org/
https://about.gitea.com/

@WebFreak001
Copy link
Member

since gitea support is implemented right now, this should be easy to add - however we don't actually have a way to use the same repository provider multiple times from the config yet. I think it shouldn't be too hard to add though + it should also support short-form host versions

@ArthaTi
Copy link

ArthaTi commented Jan 15, 2024

Will you add just Codeberg or any Gitea provider? I self-host Gitea on https://git.samerion.com

@0xEAB
Copy link
Contributor

0xEAB commented Oct 22, 2024

or any Gitea provider?

I think we should not allow repos from arbitrary forges.

First of all, their internet connections may vary (in speed and reliability) – compared to well-known forges which tend to have pretty good peering.
The other thing is that I’m worried about opening us to potential attacks. For one, an attacker could try to waste resources by throttling the connection speed of their forge. And also, it opens the doors to supply chain attacks where a malicious actor would detect connections originating from the registry (maybe by IP, maybe by its access patterns, maybe through something else) and serve different data, modified to contain malicious payload, to those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants