mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 17:26:47 +00:00
**What** - Protect the `/system/alert` endpoint when basic auth is enabled - Update the alert manager config to send the basic auth credentials - Bump the gateway version Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
27 lines
624 B
YAML
27 lines
624 B
YAML
route:
|
|
group_by: ['alertname', 'cluster', 'service']
|
|
group_wait: 5s
|
|
group_interval: 10s
|
|
repeat_interval: 30s
|
|
receiver: scale-up
|
|
routes:
|
|
- match:
|
|
service: gateway
|
|
receiver: scale-up
|
|
severity: major
|
|
inhibit_rules:
|
|
- source_match:
|
|
severity: 'critical'
|
|
target_match:
|
|
severity: 'warning'
|
|
equal: ['alertname', 'cluster', 'service']
|
|
receivers:
|
|
- name: 'scale-up'
|
|
webhook_configs:
|
|
- url: http://gateway:8080/system/alert
|
|
send_resolved: true
|
|
http_config:
|
|
basic_auth:
|
|
username: admin
|
|
password_file: /run/secrets/basic-auth-password
|