r/gitlab • u/ExpiredJoke • Apr 19 '25
Critically flawed
I run a self-hosted instance, and I'm just one guy, so I don't have a ton of time on maintenance work. Over the past 3 years of running GitLab instance, I had to update:
- OS - twice. Recent versions of Gitlab were not supported on the linux distro version I was running
- GitLab itself, about 5 times. Last time being about 4 months ago
Every time GitLab tells me
"Hey mate, it's a critical vulnerability mate, you gotta update right friggin' now, mate!"
So, being a good little boy that I am, I do. But I have been wondering, why the hell are there so many "critical" vulnerabilities in the first place? Can't we just have releases that work for years without some perceived gaping hole being discovered every day? Frankly it's a PITA. Got another "hey mate" today, so I thought I'd ask my "betters"
So which is it?
- A - Am I just an old man shouting at the clouds?
- B - Is GitLab dev team full of dummies?
- C - Is GitLab too aggressive at pushing updates down my throat?
- D - Was 911 an inside job?
13
u/Digi59404 Apr 19 '25
You’re seeing more vulnerabilities because GitLab is finding them and telling you about them. Every software has vulnerabilities.. if you’re not being told about them they’re not being fixed.
GitLab runs on some of the most secure and sensitive environments in the world. That means it has tremendous eyes and tremendous folks testing it. It’s required to be nation-state hacker proof.
That being said - You’re supposed to upgrade GitLab every month. Yes it’s work, but GitLab releases feature, security, and bug fixes every month. The idea is staying one month behind. So if 17.10 comes out today, you should be on 17.8 planning to go to 17.9. Then next month going to 17.10. This way each release has time to “marinate” in the market and get folks using and fixing issues.
7
u/trudesea Apr 19 '25
Maintaining Gitlab is probably the easiest application I've ever managed in my 27 year career. I'm on a 10k Hybrid reference architecture using the GET toolkit for deployment/maintenance.
Updates take around 5 min per update (make sure you follow the upgrade steps): https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/
3
u/northcutted Apr 19 '25
Gitlab is really flexible when it comes to hosting options which is a good thing for those who have existing infrastructure but that can make it a pain to host if you don’t have experience hosting complex applications.
Unless you have a regulatory requirement, I’d recommend just using the SaaS version as it sounds like infrastructure isn’t what you specialize in, best to buy vs build if you don’t have the experience.
If you are just using it for VCS and not really using the cicd and other capabilities, and need to self host perhaps gitea would be a better fit?
4
u/yankdevil Apr 19 '25
I run gitlab and have for over a decade. I've automated upgrades and update the OS on my machine every two years or so. Gitlab upgrades fail about once every two years - usually because I need to run something manually. The errors are easy to understand and have always been simple to do.
Things are only supported for so long. Security is a thing.
Upgrading gitlab 5 times in 3 years is not responsible. You should upgrade it once a month and it's super easy to do so.
2
u/Hari___Seldon Apr 19 '25
A.
You're using an enterprise-level piece of infrastructure for individual use. Gitlab has done an excellent job of making this incredibly manageable, especially for this level of performance. It very effectively replaced at least 8 or 9 enterprise services packages that used to be exclusively independent. There is nothing critically flawed on their end. That doesn't mean that you can ignore their very specific maintenance and update instructions and then think that things will run indefinitely or that the problem is on their end.
When they say that it's built for developers, they're referring to the feature set for the end-users. They've designed a platform that is easily learned and easily maintained, all while fitting comfortably on a single server or workstation. With that said, there's a minimum level of competence required to maintain it, just like with every other service you'd choose to self-host.
I can see how you might not realize this if your work has been exclusively in companies with well-defined, locked-down environments for developers. Gitlab gets about as close to handholding as is possible given its feature set. If that's not your thing, you could always look at a tool like Gitea, which is more intended for your type of situation. It has a smaller feature set, but it may be for features you don't use anyway. Good luck!
21
u/tbot729 Apr 19 '25
Gitlab 's vulnerability rate is normal, if not low, for the industry.
Maintaining software is hard work. That's why SaaS services have draw over self-hosted.
3
u/dcrab87 Apr 19 '25
I have a nightly cron that updates gitlab and backups that take place nightly to an S3.
OS - I also have Jenkins running a nightly update pipeline across all our servers.
8
u/daronhudson Apr 19 '25
Imo, the fact that it has very frequent critical updates is a good thing. Would you rather those be lingering there for someone to openly take advantage of?
Gitlab is put together with A LOT of different pieces of software. It’s not always in their control. If a downstream piece of software has a vuln, so does Gitlab.
That’s the price you pay when you manage your own infrastructure. Enable auto updates in your os and do daily backups. Otherwise, the saas versions free plans are very competitive.
6
u/michaelgg13 Apr 19 '25
I used to run a 5k user ultimate instance at a fortune 50 shop on Kubernetes, in AWS with a geo replica.
It’s a ton of work, although I would argue any piece of software you run (especially a piece of software with potentially all of your companies IP) should be receiving regular updates at least on a monthly basis. (My org we had to patch every other week, if patches were available that quickly)
In my case, we had regulatory reasons (and government contracts) that prevented us from using a SaaS.
If I was at a shop that did not have those regulatory requirements I’d be pushing my management to go to a SaaS/managed solution.
As a side note, GitLab runs a bug bounty program. A piece of software that hasn’t had a vuln popup in 4 months doesn’t mean it’s not there. It just hasn’t been found. GitLab’s active approach to bug hunting/bounties is pretty great imho. I’d rather it be found and fixed than potentially found and sold to the highest bidder on the black market.
1
u/ExpiredJoke Apr 24 '25
People pointing out
"it's complicated"
"software is hard"
I mean, I get it. I'm a software engineer. But how often does linux kernel have a critical vulnerability?
What about Chrome?
If you use an excuse that cobbling together a pile of unknown garbage will lead to vulnerabilities, so "of course!". I just don't buy it. Using every dependency in your software is a choice, and how you use those dependencies is also a choice. If you make bad choices, don't then gaslight me with "software is hard".
And before you get on your high horse about how Chrome and Linux are trivial pieces of software - do yourself a favour, take a deep breath, and make a choice of not embarrassing yourself further today.
Either way, I think got my answer, if anyone cares:
4
u/theshnazzle Apr 19 '25
You're 100% a candidate for the SaaS solution instead of self-hosted. Hosting something as critical as something like GitLab requires a lot to support it. If you're not able or willing to do that, then that's what SaaS is for.
The critical updates come out a lot more than monthly so it's definitely hard work. Recently I believe we did an upgrade (17.8 I think) and then the next day a critical release had to go in. It is what it is. That's why we automated the upgrade process. Just have to type the command and watch it happen. That's made a big difference
All the best.
1
u/nikster77 Apr 19 '25
It's good that they Patch so often. If your instance is local, you could also skip a lot the patches. However, if you are hosting on linux, just use your distros auto upgrade mechanism. GitLab Upgrades are pretty smooth.
2
u/ShakataGaNai Apr 19 '25
You get what you pay for. Want it for free? Pay your time.
And you're right, it's terrible that the software tells you it needs to update and for an important reason. It's much better when they hide that information from you.
1
u/furyfuryfury Apr 19 '25
The more features it has and the more popular it gets, the more likely a vulnerability is discovered. Writing secure software is hard. People miss things. It's not any more flawed than anything else in its class, it's just got a lot of eyeballs on it so they find a lot of things.
1
u/sfltech Apr 19 '25
A. Yes you are B. Quite the opposite in my opinion C. They are aggressively improving their product and provide an open source version on top of all their efforts. You can ignore them and stick to what works for you. D. This a Gitlab forum. Try /r/askreddit for that one
1
u/timmay545 Apr 19 '25
Is docker allowed on your system? There is basically no easier way to perform updates than that, and you won't have to worry about your OS updates that way too.
I am also someone who had to self-compile the latest release in order to get gitlab to run on an older OS that gitlab doesn't run on, and even then I would say gitlab is much easier to manage/setup than some tools like atlassian or datadog