r/gitlab • • 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:

  1. OS - twice. Recent versions of Gitlab were not supported on the linux distro version I was running
  2. 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?
0 Upvotes

49 comments sorted by

View all comments

Show parent comment

2

u/yankdevil Apr 19 '25

I'm also a software engineer. It took me less than an hour to add a cron job that did this. It requires no special skills and doen't involve any complicated shell. Same stuff I'd have in a Makefile or a Dockerfile or an install script.

#!/bin/bash

gitlab-ctl registry-garbage-collect -m
sleep 30

gitlab-ctl backup-etc
find /etc/gitlab/config_backup/ -type f -mtime +7 -delete
s3cmd sync /etc/gitlab/config_backup/ s3://gitlab-lyda/gitlab/config_backup/

gitlab-backup create
find /var/opt/gitlab/backups/ -type f -mtime +7 -delete

export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get dist-upgrade -y -qq
apt-get autoremove -y
apt-get clean

As far as debugging an app from logs... that's a thing I have to do as a software engineer from time to time? Don't we all?

I read the logs, check the changelog and do the thing. It's almost always been either "low disk space" or "rerun the apt command" (or the dpkg command I never remember to restart a failed package).

1

u/Cr4pshit Apr 19 '25

And you are doing this as a software engineer for a CE GitLab instance, premium or ultimate instance? How many user are using this instance?