Repository¶
A repository belongs to exactly one group. Group owners and admins can manage every repository in the group. A group member can also be a maintainer of a specific repository. Details and the full who-can-do-what table are in Roles & permissions.
Webhooks settings¶
Qaack manages webhooks on GitLab, GitHub, Azure DevOps, and Bitbucket. An incoming webhook syncs the repository's git refs, and changed refs can rebuild their environments.
Configure this under Settings → Lifecycle → Rebuild triggers. Branch, Tag, and PR/MR triggers turn on and off separately. Branches can also be limited with included and excluded patterns.
Trigger logic¶
When a webhook arrives:
- Qaack reads the changed git refs from the payload.
- Branches pass the included and excluded patterns.
- Branch or tag: the environment is rebuilt only if it has been built before. An environment that was never built is skipped.
- PR/MR: the environment is always built, even if it was never built before.
- A build already in progress is stopped and started again.
- Locked services are not updated.
Branch patterns¶
- Separate several patterns with commas and no spaces, like
release/*,hotfix/*. *matches any characters, sofeature/*matchesfeature/login.- A pattern matches anywhere in the branch name.
mainalso matchesmaintenance. - An empty included field includes every branch. An empty excluded field excludes none.
Important
When a branch matches both an included and an excluded pattern, it is excluded.
SSH keys¶
Each repository has a unique owned SSH pair key of 4096 bits.
Its automatically generated when creating repository time.
The key pair is injected into all services at path /root/.ssh/id_rsa
and /root/.ssh/id_rsa.pub when they are created.
You can get the public key through repository settings endpoint, private key is not accessible with API.
Also it add SSH config file to /root/.ssh/config file, with this
content:
StrictHostKeyChecking no
Scheduled rebuilds¶
Its possible to schedule when to rebuild the environments.
This is useful when you want to update a reusable every night, or you simply want to rebuild the environments to get the latest dependencies or external content.
A switch in repository settings turns this on and off. While it is off nothing
is rebuilt (the stored mode is disabled). Turning it on starts from the
Reusables mode at 03:00, both of which can be changed. The hour must
be a valid HH:MM, otherwise nothing is rebuilt.
Configure modes in the panel under Lifecycle — Scheduled rebuild.
Qaackfile mode¶
There are two places where the Qaackfile can be located, in the repository or directly in the UI panel as an input.
You can select on the panel the mode you want to use for each repository, panel, repo or both.
If you select both, the file will be taken from the repository if it exists, otherwise, it will be taken from the panel.
If you select repo, it must be located on /.qaack/qaack.yml on the git
ref you want to build, that means that you can have different
configurations for each branch, tag or PR/MR.
If you select panel, you can provide the file in the form when adding a repository, or in the repo settings.
As the extension indicates, it should be encoded in YAML format.
Integrations¶
Access token¶
Every repository type stores a credential used to talk to the git host (a token for GitLab, GitHub, Azure DevOps, and Bitbucket; a password for generic remotes).
From Settings → General you can paste a new token. Qaack stores it and, for hosted providers, checks that it can still reach the repository. This is a manual replace — it does not call any provider token-rotation API. See Access token.
GitLab¶
Automatic Token Rotation¶
When specifying a GitLab repository, Qaack will automatically manage the rotation of the access tokens used to access the repository.
This check is performed weekly and tokens are rotated if they are scheduled to expire within the next week.