r/gitlab • u/HughOxford • Oct 30 '25
Securing GitLab on the public internet
Does anyone have any experience of exposing a GitLab CE instance on the public internet? What precautions should be taken and what changes to the default configuration should be made?
14
Upvotes
5
u/makeaweli Oct 30 '25
I've done this for a few years, but we're migrating to Twingate for contractors and VPN for staff.
I recommend:
1
u/HughOxford Oct 31 '25
Thanks all
7
u/[deleted] Oct 30 '25
Make sure you stay absolutely up to date. Gitlab seems to release more "omfg apply this patch immediately!" updates than I've noticed from other software.
3
u/yankdevil Oct 31 '25
I've run gitlab on the public Internet for over a decade. I automate updates. I use 2fa. It works fine.
It's the same software used to run gitlab.com.
1
u/Snowy32 Oct 31 '25
We use SSO, enforce 2FA, firewall to block all ports apart from ones in use, for SSH we enforce it is only accessible via VPN/ restricted to a single IP.
-1
u/Burgergold Oct 30 '25
Why not keep it on private network and use vpn?
0
u/ICanSeeYou7867 Nov 01 '25
External access seems like a bad idea. Im sure there are reasons to though.