Skip to content

Validate GitLab and Forgejo webhooks#410

Open
MrBlue-1996 wants to merge 1 commit into
LF-Decentralized-Trust-labs:mainfrom
MrBlue-1996:codex/validate-gitlab-forgejo-webhooks
Open

Validate GitLab and Forgejo webhooks#410
MrBlue-1996 wants to merge 1 commit into
LF-Decentralized-Trust-labs:mainfrom
MrBlue-1996:codex/validate-gitlab-forgejo-webhooks

Conversation

@MrBlue-1996
Copy link
Copy Markdown

Adds auth checks before GitLab/Forgejo webhook events are processed:

  • GitLab: validates X-Gitlab-Token against the active stored webhook secret
  • Forgejo/Gitea: validates X-Gitea-Signature / X-Forgejo-Signature over the raw request body
  • Keeps GITMESH_WEBHOOK_DEV_INSECURE=true for local curl testing

Validation:

  • git diff --check
  • corepack pnpm install --frozen-lockfile currently fails before tests because the existing lockfile is missing cross-env@7.0.3

Fixes #407.

Signed-off-by: MrBlue-1996 <67137605+MrBlue-1996@users.noreply.github.com>
@MrBlue-1996 MrBlue-1996 force-pushed the codex/validate-gitlab-forgejo-webhooks branch from ec7968d to 7d54d79 Compare May 30, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: GitLab and Forgejo webhook endpoints do not validate webhook authentication before processing events

1 participant