fix(kargo): route webhook receiver ahead of API and keep basePath #3

Merged
Ghost merged 1 commit from fix/kargo-webhook-route into master 2026-10-24 08:03:33 -05:00

Every CI Notify Kargo got 405 (rgxr and dummy): the webhook IngressRoute had priority: 20, below the API route default priority (= rule length), so kargo-api answered. Behind that, the stripPrefix middleware turned /webhooks/generic/<hash> into /generic/<hash>, which this Kargo version 404s (verified in-cluster: with prefix 200, stripped 404). Priority 1000, middleware removed.

🤖 Generated with Claude Code

Every CI `Notify Kargo` got **405** (rgxr and dummy): the webhook IngressRoute had `priority: 20`, below the API route default priority (= rule length), so `kargo-api` answered. Behind that, the stripPrefix middleware turned `/webhooks/generic/<hash>` into `/generic/<hash>`, which this Kargo version 404s (verified in-cluster: with prefix 200, stripped 404). Priority 1000, middleware removed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
priority 20 lost to API route's default priority (rule length ~24), so
every CI notify got 405 from kargo-api. Receiver also serves under
basePath, so stripping prefix returned 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tt5Kc71LcLjqfyZWoZosqh
Ghost merged commit b095f15664 into master 2026-10-24 08:03:33 -05:00
Ghost deleted branch fix/kargo-webhook-route 2026-10-24 08:03:33 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gitops/charts!3
No description provided.