Connect a self-hosted GitLab
Register your own GitLab instance, then build as on gitlab.com.
Your instance needs GitLab 15.7 or newer, at an https address Firn's servers can reach. Firn talks to it when you connect it and when someone signs in.
All of Firn's requests come from egress.firnlayers.com, currently 152.70.24.68. If your GitLab only accepts certain sources, allow the name where you can, since the address may change.
1. Create an OAuth application
An administrator creates it under Admin > Applications, so it belongs to the instance and not to one person.
- Name:
Firn - Redirect URI:
https://firnlayers.com/auth/self-managed/callback - Trusted: yes
- Confidential: yes
- Scopes:
openid,read_api
Firn uses the token only during sign-in, to read who you are and which groups you hold Reporter or higher in, and revokes it right after. openid lets Firn check that the sign-in really came from your instance's signing key. That is also why it should be trusted: without a token left behind, GitLab would ask everyone to authorize Firn again at every sign-in.
2. Connect it
On the sign-in page, choose Sign in with another forge, type your GitLab's address, and choose Connect. Paste the application ID and secret, and sign in. Once it works, your instance is connected, and anyone on it signs in the same way.
Create the application under Admin > Applications, and connect while signed in as an administrator. Firn then confirms the application belongs to your instance.
If Firn can't confirm it, you'll see a warning. This happens when the application was created in someone's user settings, or when admin mode is on for your instance. If admin mode is on and the application really is under Admin > Applications, email us and we'll mark it as confirmed.
An application from someone's user settings still works, but GitLab asks everyone to approve Firn each time they sign in, and nobody can sign in any more once that person's account is deleted.
To switch to another application, delete the old one in GitLab, or renew its secret, and connect your instance again. Once GitLab rejects the old application, the new one takes its place and your history stays. If the old one was the instance's own, the new one has to be too, and you connect it signed in as an administrator.
When your instance is connected, Firn records the keys it signs CI tokens with, and accepts builds signed by those keys only. If you rotate your instance's CI signing key, email [email protected], or builds stop being accepted until we record the new one.
3. Sign in and add the build job
From here it is the same as GitLab CI. Your builds' tokens are issued by your instance, so nothing in the snippet changes.