Skip to the content.

Notifications & alerting

The proxy can dispatch structured security alerts to external systems — generic HTTP webhooks and Slack incoming webhooks — whenever a security-relevant event occurs. This turns the supply-chain controls from “blocks a build and logs a line” into “blocks a build, logs a line, and pages the platform-security channel”.

Implemented in internal/notify. Off by default; enable it under the notifications config block.

What it alerts on

Event type Fired when Default severity
policy_block The admission policy (Task 9) blocks an artifact (denylist, allowlist, risk score, malicious commit). high
provenance_failure A block caused by a provenance signature/attestation requirement (signature-required, attestation-required, low-confidence). high
vulnerability The SBOM/OSV gate (Task 15) warns on, blocks, or quarantines an artifact. the finding’s max severity
commit_scan An LLM commit-scan verdict (Task 7) is produced. A malicious verdict is escalated to ≥ high. the verdict’s max severity
quarantine An artifact is quarantined (made unservable and evicted). the finding’s max severity
llm_package_scan The LLM package-content scan (Task 173) flags a package: once per fresh malicious/suspicious verdict, and on every refused pull. Fields: disposition, action, model, confidence. The summary is the proxy’s own sentence — the model’s free-text reasons are shaped by the package under review and are deliberately not carried into an alert. See llm-package-scan.md. critical (malicious), high/medium (suspicious)
cost_budget An LLM cost ceiling is reached — the commit scanner’s per-tenant budget, the package scan’s per-tenant or global budget (once per budget window, with scope/tenant fields), or the full scan’s daily or monthly ceiling (scope: full-scan, with window, spentUsd, ceilingUsd; once per UTC day or month). high when unscanned work is refused, medium when it is let through (and for the full scan, whose pause leaves clients’ pulls to the gate as always)
rescan_regression The continuous re-scan subsystem (Task 18) finds a cached artifact became vulnerable against a newly-disclosed CVE. the new max severity
lockdown The emergency-lockdown / global kill-switch (Task 74) was engaged, cleared, or auto-expired (freeze/strict/targeted-block). critical on engage, else high

Each alert carries a stable type, a severity, a title/summary, the affected coordinate (ecosystem, backend, artifact), the triggering subject when authenticated, and a small map of structured fields (advisory id, reason code, CVSS, commit SHA, …).

Design guarantees

Sinks

Generic webhook (kind: webhook)

POSTs a stable JSON document:

{
  "type": "vulnerability",
  "severity": "critical",
  "title": "Vulnerable artifact blocked",
  "summary": "…",
  "timestamp": "2026-06-19T12:00:00Z",
  "ecosystem": "npm",
  "backend": "npm-proxy",
  "artifact": "left-pad@1.0.0",
  "subject": "alice",
  "fields": { "advisory": "CVE-2026-9999", "action": "block", "maxCvss": "9.8" },
  "source": "pullthrough-security"
}

Add headers for an Authorization bearer token or an HMAC-signature header your receiver expects.

Slack (kind: slack)

POSTs to a Slack incoming webhook URL with a severity-colored attachment and the structured fields rendered as attachment fields. Optional channel, username, and iconEmoji overrides are honored.

Routing

routes map event types and a severity floor to sinks. With no routes, an implicit catch-all delivers every event type to every sink at the global minSeverity.

notifications:
  enabled: true
  minSeverity: medium          # global floor
  redactFields: ["internalTicket"]
  sinks:
    - name: secops-slack
      kind: slack
      url: ${SLACK_WEBHOOK_URL} # treat as a secret; ${ENV}/enc:v1: supported
      channel: "#supply-chain-alerts"
      username: pullthrough
      iconEmoji: ":shield:"
    - name: siem
      kind: webhook
      url: https://siem.internal.example.com/ingest/pullthrough
      headers:
        Authorization: Bearer ${SIEM_TOKEN}
  routes:
    # Page Slack only for the serious, actionable blocks.
    - sinks: [secops-slack]
      eventTypes: [policy_block, provenance_failure, quarantine, rescan_regression]
      minSeverity: high
    # Forward everything (above the global medium floor) to the SIEM.
    - sinks: [siem]

Operating it

Security notes