Repository navigation
Backlog
Milestone
Description
Summary
Remove all legacy per-workspace Webhook v1 (/webhook/v1/{webhookId}) code paths, endpoints, configuration flags, and UI migration controls across all VCS providers (GITHUB, GITLAB, AZURE_DEVOPS, AZURE_SP_MI, and BITBUCKET) in Terrakube 2.36.0.
Why Webhook v1 Is No Longer Needed
- Full VCS Coverage on Webhook v2: Every webhook-capable VCS provider (GitHub, GitLab, Azure DevOps /
AZURE_SP_MI, and Bitbucket) now supports shared repository webhooks (/webhook/v2/{repoWebhookId}). - v2-Only Creation & Default Disabled: New webhook setups in both the API and UI exclusively create Webhook v2, and
/webhook/v1/{webhookId}is disabled by default (returning404 Not Found). - Automated Startup Migration: Remaining unmigrated workspaces are automatically migrated sequentially on API startup via the
@DisallowConcurrentExecutionQuartz job (WebhookV1ToV2MigrationJob), ensuring all workspaces are on v2 prior to 2.36.0.
Reference Migration Stack
- feat: add Bitbucket support for shared repository webhooks (v2) #4064 — Add Bitbucket support for shared repository webhooks (v2)
- feat: add webhook v1 disable flag and default UI to v2-only creation #4065 — Add
io.terrakube.webhook.v1.disabledflag,404/hook enforcement, and UI v2-only creation - feat: disable webhook v1 by default and add startup Quartz migration job #4066 — Disable Webhook v1 by default and add startup Quartz v1 → v2 migration job
Proposed Removal Scope for 2.36.0
- API Controller & Security: Remove
POST /webhook/v1/{webhookId}fromWebHookControllerand/webhook/v1/**fromDexWebSecurityAdapter. - Webhook Services & Providers: Remove v1 webhook processing, creation, update, and deletion methods (
WebhookService.processWebhook,createOrUpdateWorkspaceWebhook,deleteWorkspaceWebhook, and per-provider v1 helpers inGitHubWebhookService,GitLabWebhookService,AzDevOpsWebhookService, andBitBucketWebhookService). Note: keepWebhookService.triggerPolledPushor relocate it if Azure DevOps outbound polling still relies on it. - Configuration & Migration Job: Remove
io.terrakube.webhook.v1.disabled,io.terrakube.webhook.v1.migration-on-startup,WebhookProperties.V1, and the temporaryWebhookV1ToV2Migration*Quartz scheduler/job/service classes once the migration window has elapsed. - Elide Hooks & Entity Cleanup: Simplify
WebhookManageHookandWebhookEventManageHookto assume v2 unconditionally (and evaluate dropping/deprecatingWebhook.migratedV2andWebhook.remoteHookIdvia Liquibase if no longer needed). - UI: Remove the one-way "Migrate to shared webhook" control and legacy v1
remoteHookIddisplay fromui/src/domain/Workspaces/Settings/Webhook.tsx. - Tests: Remove legacy
/webhook/v1/**unit and integration tests.
Metadata
Metadata
Assignees
Labels
No labels
Activity