StartFirst steps
Connect a forge
A forge is a GitLab instance plus the token Holtkeeper uses there. Forges are added in the panel, never in the config file, and the token is stored as a sealed credential that the forge refers to. Connecting one takes two forms: the credential, then the forge. Webhooks, SSH keys and package access are optional and can wait.
Before you start
Section titled “Before you start”- You need
settings:writeandcredentials:writeon everything, which therootadmin and the Admin role have. - Create a GitLab account for Holtkeeper, such as
holtkeeper-bot, and add it to the groups or projects it should look after. Developer is enough for reviews and merge requests; registering webhooks needs Maintainer or Owner. - Create a personal access token for it with the
apiscope.read_apionly lets Holtkeeper read; reviews, comments and merge requests needapi.
Add the token
Section titled “Add the token”-
Open Settings › Integrations and, under Credentials, choose Add credential.
-
Pick the GitLab kind and fill in:
- Name:
gitlab-bot. - URL:
https://gitlab.example.com. - Secret: the token. It is sealed with the vault key and never shown again.
- Expires: the token’s expiry date, if it has one.
- Name:
-
Optionally turn on Rotate automatically: before the token expires, Holtkeeper asks GitLab for a replacement with the New token lifetime you set, and stores it. Nothing else needs to change.
-
Save.
Add the forge
Section titled “Add the forge”- Choose Add forge in the section header.
- Fill in the form and save.
| Field | What to enter |
|---|---|
| Id | A short, permanent name. Repositories become work:acme/checkout-web. |
| URL | The GitLab base URL. |
| Token | The credential you just added. Without one the form says so and links to creating it. |
| Bot username | The account behind the token when it is a bot: its pushes, merge requests and notes are ignored, and review skips its merge requests. |
| Packages for jobs | On by default where the egress proxy runs: jobs install private npm, Maven or PyPI packages from this forge. |
The forge appears in the Forges list with its token, repository count and how changes arrive.
Get changes quickly (optional)
Section titled “Get changes quickly (optional)”Out of the box Holtkeeper polls every repository every five minutes, which is enough to start. For changes within seconds, give the forge a webhook:
- Make sure Holtkeeper is reachable from GitLab and its public URL is set (
HOLTKEEPER_PUBLIC_URL), so the hook points at the right host. - On the forge, generate the webhook secret with Register on GitLab on. Holtkeeper adds or updates a hook on every group the forge’s repositories live in, sending tag push, merge request, comment and pipeline events. On GitLab Free, which has no group hooks, it adds one project hook per project instead.
- Copy the secret now if you also add hooks by hand: it is shown only once.
While webhooks deliver, polling slows to once an hour as a safety net. If GitLab disables a hook after failed deliveries, the forge shows it and Re-enable now brings it back. Single repositories can also have their own webhook URL, under their Settings › Updates.
| Forge | URL | Token | Repositories | Updates |
|---|---|---|---|---|
work |
https://gitlab.example.com |
gitlab-bot |
23 | Webhook |
SSH key (optional)
Section titled “SSH key (optional)”Holtkeeper clones and pushes over HTTPS with the token by default. A forge can instead issue an Ed25519 SSH key on the token’s account, used for Clone and push, Sign commits or both, with a lifetime in days and an optional commit name and email. Signed commits show as verified in GitLab when the email is a verified email of that account. Rotate the key before its lifetime ends.
Related
Section titled “Related”- Add repositories — the next step.
- Integrations — forges, credentials and request limits in detail.
- The fleet — forges, folders, teams and scopes.