GitLab Webhook callback
Receive GitLab Push/Merge Request events, automatically extract changed SQL and trigger an audit.
GitLab configuration:
- Create an SCM monitoring configuration in the PawSQL admin console to obtain the webhookToken
- In GitLab project → Settings → Webhooks, fill in the URL:
{PAWSQL_SERVER}/api/v1/integrations/gitlab/webhook/{webhookToken} - Check Push events and Merge request events
Expected HTTP Headers:
X-Gitlab-Event: event type (push / merge_request)X-Gitlab-Token: secret token (optional)X-Gitlab-Event-UUID: unique event identifier
Request Body: GitLab Webhook Payload (JSON format), see the GitLab Webhook documentation