Skip to content
GitHub

StartFirst steps

Connect a forge

In the panel: Settings › Integrations/settings/integrationsNeeds settings:write

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.

  • You need settings:write and credentials:write on everything, which the root admin 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 api scope. read_api only lets Holtkeeper read; reviews, comments and merge requests need api.
  1. Open Settings › Integrations and, under Credentials, choose Add credential.

  2. 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.
  3. 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.

  4. Save.

  1. Choose Add forge in the section header.
  2. Fill in the form and save.
In the panel · Settings › Integrations › Add forge
SettingsIntegrationsAdd forge
IdworkRepositories are addressed as <forge>:<path>, so the id cannot change later.
URLhttps://gitlab.example.com
Tokengitlab-botA GitLab credential.
Bot usernameholtkeeper-botLeave empty when the token belongs to a person.
Packages for jobsJobs download private packages from this forge through the egress proxy, without seeing the token.
Add forge
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.

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:

  1. Make sure Holtkeeper is reachable from GitLab and its public URL is set (HOLTKEEPER_PUBLIC_URL), so the hook points at the right host.
  2. 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.
  3. 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.

In the panel · Settings › Integrations › Forges
1 forge23 repositories2 min ago last webhookAll webhooks deliver
Forge URL Token Repositories Updates
work https://gitlab.example.com gitlab-bot 23 Webhook

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.