Repository navigation
feat: PagerDuty ingress, platform coverage matrix and runbook templates (Fixes #17) - #216
Merged
Merged
Conversation
… templates (#17) - POST /webhook/pagerduty: PagerDuty V3 subscriptions. incident.triggered and incident.reopened become agent incidents (severity from urgency, PD id, number, priority, service, URL); other events are acknowledged and ignored. Signed with PAGERDUTY_WEBHOOK_SECRET (v1= HMAC, rotation-friendly), per org via org config + X-Org-ID, or the usual bearer WEBHOOK_SECRET. Incidents on PAGERDUTY_SERVICE_ID or keyed with an agent incident ID are ignored so escalations never loop back; redeliveries are deduplicated. - docs/PLATFORM_SUPPORT.md: coverage status per platform (built-in / manual / planned / out of scope, linked to #74-#77) and PagerDuty setup. - docs/runbooks/: uploadable templates for CircleCI/Bitbucket Pipelines, DNS (Route 53/Cloudflare), TLS outside certbot, and Vault/secrets rotation. - COVERAGE_GAPS, API reference, .env.example and mkdocs nav updated. Fixes #17
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #17.
The issue's checklist
Decide per platform (implement, webhook, or out of scope):
docs/PLATFORM_SUPPORT.mdhas a new Coverage status table that marks each platform Built-in, Manual (planned in #NN) or Out of scope, linked to Infra mutations still out of scope: Terraform apply, config management, cluster destroy #74–Security identity: secret rotation, IAM/SSO, pentest, fleet CIS, compliance product #77.PagerDuty webhook for alert ingress:
POST /webhook/pagerduty(below).Accurate PLATFORM_SUPPORT matrix: the PagerDuty row no longer says ingress isn't implemented. TLS is marked built-in for certbot (
renew_certificatesalready handles DNS-01 and wildcard certificates, so that part of the issue was out of date) and manual everywhere else.A runbook template per gap category:
docs/runbooks/(in the docs nav) has templates ready to upload as org docs:Each covers how incidents arrive, environment placeholders, diagnosis order, allowed actions and when to escalate.
POST /webhook/pagerdutyincident.triggeredandincident.reopenedare queued; all other events get200 {"status": "ignored"}, so PagerDuty doesn't retry or disable the subscription.severity(highurgency →critical, otherwisewarning), PagerDuty incident ID, number and priority, service, URL, and the body details. The type is classified the same way as Alertmanager alerts.X-PagerDuty-Signature: v1=<HMAC-SHA256>, which accepts a comma-separated list while a secret rotates, againstPAGERDUTY_WEBHOOK_SECRET.PAGERDUTY_WEBHOOK_SECRETstored for the org, plusX-Org-ID, binds the request to that org, and the platform secret is refused for it (the same model as [SECURITY] Per-org webhook secrets and tenant binding for multi-API-key deployments #61).Authorization: Bearer <WEBHOOK_SECRET>applies.incident_key=<agent incident id>onPAGERDUTY_SERVICE_ID). Incidents with an agent incident key, or on that service, are ignored. If that service also gets real alerts, setPAGERDUTY_INGEST_AGENT_SERVICE=true."status": "duplicate".PAGERDUTY_WEBHOOK_SECRETis added to the org credential keys and documented in.env.example, the API reference and the PagerDuty setup steps.Not in this PR (tracked)
API clients for CircleCI and Bitbucket Pipelines (#76), DNS tools (#75), and a Vault integration (#77).
Tests
tests/test_pagerduty_webhook.py, 19 tests:Full suite: 1448 passed, 4 skipped.
mkdocs build --strictandcheck_docs_links.pypass (43 pages, 0 errors). Flake8 (CI selection) and bandit are clean.