Files
ukmesh/logging/alertmanager.yml
gadgethd d780729c5b fix(surface): project readyz, bound WS scope errors, authenticate alerts
- /readyz returns only database and MQTT state; owner-ACL generations,
  reconciliation errors and workload identity stay on the local-only surface
- an invalid network scope on a public WS upgrade returns 400 instead of
  throwing out of verifyClient
- POST /alerts requires a bearer token (fail-closed) and both in-repo senders
  send it; Alertmanager reads its token from a provisioned file

Audit: backend/src/index.ts:GET-readyz.publishes-owner-authorization-and-analysis-internals
       ws.verifyclient.invalid-network-scope-uncaught-exception
       backend/src/workers/alert-receiver.ts:POST-alerts:unauthenticated-alert-ingest-to-operator-webhook
2026-10-23 16:10:02 +00:00

29 lines
723 B
YAML

global:
resolve_timeout: 5m
route:
receiver: operations-receiver
group_by: [alertname, severity]
group_wait: 10s
group_interval: 1m
repeat_interval: 4h
receivers:
- name: operations-receiver
webhook_configs:
- url: http://alert-receiver:8080/alerts
send_resolved: true
http_config:
authorization:
type: Bearer
# Provisioned at deploy time with the same value as
# ALERT_RECEIVER_TOKEN; the receiver rejects unauthenticated posts.
credentials_file: /etc/alertmanager/alert_receiver_token
inhibit_rules:
- source_matchers:
- severity="critical"
target_matchers:
- severity="warning"
equal: [alertname]