Skip to content

Add authentication to Alertmanager and manual webhook endpoints #10

Closed

Description

@OkiriGabriel

Problem

Only the GitHub webhook verifies signatures; other ingress endpoints accept unauthenticated POST requests.

Current state

  • api/server.py github_webhook checks WEBHOOK_SECRET + verify_github_signature()
  • alertmanager_webhook and manual_trigger accept unauthenticated POSTs with no signature check
  • README claims webhook signatures as an authentication layer

Acceptance criteria

  • Require WEBHOOK_SECRET (or separate ALERTMANAGER_WEBHOOK_SECRET) on /webhook/alertmanager and /webhook/manual
  • Support shared HMAC header pattern consistent with GitHub
  • Return 401 on invalid/missing signature when secret is configured
  • Add API tests for auth pass/fail

Files

  • api/server.py, docs/API_REFERENCE.md, README.md

Activity

  1. added
    bug
    help wanted
    security
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions