Skip to content

[SECURITY] Per-org webhook secrets and tenant binding for multi-API-key deployments #61

Done

Description

@OkiriGabriel

Problem

Multi-tenant routing relies on an unauthenticated X-Org-ID header while webhook auth uses a single global WEBHOOK_SECRET for all tenants.

Any party with the platform webhook secret can enqueue incidents under any org_id and trigger processing with that org's stored BYOK credentials.

Slack /slack/action verifies only the global SLACK_SIGNING_SECRET, even though per-org SLACK_SIGNING_SECRET is already in ORG_CREDENTIAL_KEYS.

Impact

Tenant impersonation: one shared secret authenticates the platform, not the tenant. Org selection is trust-on-first-use via header.

Proposed solution

  1. Add per-org WEBHOOK_SECRET to org credential keys (stored alongside other BYOK keys)
  2. Validate incoming webhook identity maps to the claimed org (HMAC with org-specific secret)
  3. For Slack: resolve org from payload/workspace and verify with that org's signing secret
  4. Document multi-tenant webhook setup in API reference and README
  5. Add tests for cross-org rejection (valid platform secret + wrong org header)

References

  • api/webhook_auth.py
  • api/server.py (X-Org-ID handling on Alertmanager/GitHub webhooks)
  • services/org_config.py (ORG_CREDENTIAL_KEYS)

Activity

  1. added
    enhancement
    security
    on Aug 31, 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

    enhancementsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions