go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.58k stars 5.45k forks source link

possible to make a gitea version that's focused purely on security? #29401

Closed ouvaa closed 6 months ago

ouvaa commented 7 months ago

Feature Description

  1. how secure is gitea for putting it out online?
  2. possible to provide a security hardened military grade version of gitea to be put front facing online?

Screenshots

No response

delvh commented 7 months ago

Please elaborate exactly what you mean by that.

Also, why should there be security hardened military grade version? Why shouldn't all instances have the same security features?

wxiaoguang commented 7 months ago

It really depends and impossible for anything to be pure secure.

Golang has bugs (then Gitea needs to use the fixed Golang to compile). Every software you are using including Linux kernel could have security bugs.

For Gitea, every problem in security report gets fixed in first time. And if you'd like to help, you could also to audit the source code and help for the security related problems.


Update: if you mean to have some special supported LTS versions (like some big/commercial softwares), I think Gitea doesn't have the manpower at the moment. So Gitea only maintains one active stable release with in-time security fixes.

ouvaa commented 7 months ago

@wxiaoguang @delvh i see plenty features of gitea and i'm just wondering if we can have a minimal version that has been thoroughly security audited and is extremely hardened because there are too many hackers and cybersecurity issues in the world today.

wxiaoguang commented 7 months ago

TBH I do not think it is possible for Gitea at the moment. There are a lot of dependencies between these features, and it's impossible to "partially" build Gitea.

For minimal "git" requirement, a SSH server is enough, then only the Linux & SSH & GIT code needs to be hardened.

techknowlogick commented 7 months ago

Gitea is used in many security sensitive industries, such as healthcare, nuclear energy, finance, aviation/aerospace, and more. However, a defence in depth approach is recommended for any service.

inferenceus commented 7 months ago

I have a pretty hardened Gitea server. As stated in previous comments, defense-in-depth is what matters more than a single program/process being secure, since there are always bugs and even sandboxes can have bugs. It's all about what you're trying to protect and what you're willing to sacrifice in terms of usability and performance etc.

Some starting points:

The most important rule of security is you are never unhackable. 100% security does not exist, but the more layers you have, the closer you can get to 99.99%.

GiteaBot commented 6 months ago

We close issues that need feedback from the author if there were no new comments for a month. :tea: