-
Notifications
You must be signed in to change notification settings - Fork 15
Use cases
zynzel edited this page Apr 30, 2025
·
9 revisions
DMH can be used to inform someone, that you didnt log for long period of time - and possibly you are dead or need lawyer.
It might also trigger action in some external system e.g. publish some blog post, publish message in social media or restart your server to ensure that your data stays encrypted.
Can be us used as safeguard mechanism for whistleblowers, journalists or activists. When you are missing, release EVERYTHING.
Side note:
- In that case ALWAYS host
DMHandVaulton different servers/environments -
Dont use active
actions(mail, sms, ...) to ask if you are still alive - those actions can be intercepted and then used to confirm that you are alive (when its not a case anymore). Find other way to informDMHabout your state, ex. visithttps://dmh-domain/api/aliveon your own. - Dont host
DMHorVaultin your home/office. Nobody should be aware thatDMHis in use. - Before depending on
DMH, PLEASE DO SOME TESTING.
DMH can be used not only for humans, but it can detect other service unavailability.
Most common usecase would be "monitoring for monitoring". Imagine that you are hosting monitoring for your infrastructure. How would you know, that your monitoring is dead?
- Configure Prometheus alert which is always firing
- alert: Watchdog
expr: scalar(1)
labels:
service: dmh-watchdog
severity: info
- Configure Alertmanager route:
receivers:
- name: dmh
webhook_configs:
- send_resolved: false
timeout: 3s
url: http://dmh.monitoring:8080/api/alive
route:
[...]
routes:
- matchers:
- service="dmh-watchdog"
receiver: dmh
repeat_interval: 5m
- Add notification action:
dmh-cli action add --kind mail --process-after 1 --min-interval 6 --data '{"message": "Monitoring stack is down, please investigate.", "subject": "DMH detected monitoring down", "destination": ["email@address.com"]}'
- When Prometheus/Alertmanager will stop sending alert to
DMH/api/aliveit means that something breaks and you would receive notification.