Skip to content

AIRA-38: PagerDuty Webhook HandlerΒ #63

@learn-design-develop

Description

@learn-design-develop

πŸ‘€ User Story

As the core processing layer, I need a comprehensive webhook handler for processing PagerDuty incident events with proper validation and error handling.

🎯 Rationale

Webhook Handler is the critical entry point for incident notifications.

βœ… Acceptance Criteria

  • Create aira/core/webhook_handler.py with processing class
  • Implement POST /webhooks/pagerduty endpoint
  • Define Pydantic models for payloads (PagerDutyWebhookEvent, PagerDutyIncident)
  • Implement HMAC-SHA256 signature validation using X-PagerDuty-Signature
  • Use PAGERDUTY_WEBHOOK_SECRET config
  • Map event types to internal format
  • Request/response logging with correlation IDs (via shared utility)
  • Add webhook processing metrics (success_count, error_count, processing_duration)
  • Comprehensive unit & integration tests

πŸ“‹ Metadata

  • Status: MVP

  • Category: Security

  • Week: Week 3

  • Complexity: Medium

  • Critical Path: Yes

  • Dependencies: AIRA-34, AIRA-31


Original Ticket: #38
Phase 1 MVP Tracking Issue

Metadata

Metadata

Labels

critical-pathBlocking other ticketsmvpPhase 1 MVP scopesecuritySecurity-related tickets

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions