The GitLab admin account can open every private project on the server. The first ten minutes after installation decide whether that master key stays yours alone.
On the TurnKey route there is no default password printed in a manual for an attacker to look up. During first boot, the console asked you to create the passwords, for the system and for the GitLab admin account. That design is a gift - nobody else on earth knows those passwords. Unless, of course, the habits of the first session give them away. This guide is about those ten minutes: logging in as root, locking the doors in the right order, and never working daily with the master key in your pocket.
👆 The login is one minute. The three rows underneath are the difference between an admin account and an accident waiting for a date.
Open the server's address in your browser and sign in with the username root and the GitLab admin password you created on the console during first boot. Notice what did not happen: there was no default password to change, and there is no forgot-password email on a fresh private box, because no mail service has been configured yet. If the password was never written down, recovery means direct access to the server itself and system-level work. That is not a flaw in the product - it is what a private server means - and it is exactly why the next rule exists.
Your install actually has two powerful passwords: the system root password, which controls the whole appliance, and the GitLab root password, which controls every project, user and setting inside GitLab. Make them different from each other, make both long and unique, and save them in a proper password manager the day they are created. Never keep them in a shared text file on the server, in a team chat, or on a sticky note on the machine. The day a laptop with that note is lost, or an employee leaves on bad terms, you will understand what these passwords really are: the keys to the company's entire code history.
Out of the box, GitLab allows anyone who can reach the sign-in page to register their own account. On a public demo that is a feature. On your company's server it is an open door. Go to Admin Area, then Settings, then General, then Sign-up restrictions, and either require administrator approval for every sign-up or disable sign-ups entirely. After that, you create each developer's account yourself, with their real name. On a LAN-only server this is basic hygiene. On an internet-facing server it is survival, because automated bots probe new websites constantly, and an open registration page will be found.
The root account sees everything, can delete everything, and its name on an action tells you nothing about which human did it. So use it only for administration. Create your own named account, give that account administrator rights for maintenance work, and use a normal account for your everyday projects. Turn on two-factor authentication for the admin accounts - GitLab supports app-based codes, and the setup takes two minutes. The payoff comes on the bad day: when a developer's laptop is stolen, you disable one named account and remove its keys. Nobody has to change a shared master password that half the office knows.
Watch the admin login and first configuration in the video, then run through these four rules before your team arrives.
▶️ Watch Full VideoThe username is root. There is no factory password on the TurnKey route - the appliance made you create one at first boot. Anyone offering you a default password list for a fresh install is describing a security hole, not a feature.
A self-hosted box has no working forgot-password email until mail is configured, so recovery requires direct access to the server console and system-level steps, or restoring your backup onto a fresh install. This is why saving the password in a manager on day one is not optional.
Keep root as the break-glass administration account, protect it with a unique password plus two-factor authentication, and simply do daily work as named users. The goal is not hiding the key - it is never needing to share it.