Description
Have you read the documentation?
- Yes, but it does not include related information regarding my question.
- Yes, but the steps described in the documentation do not work on my machine.
- Yes, but I am having difficulty understanding it and want clarification.
You are setting up gotify in
- Docker
- Linux native platform
- Windows native platform
Describe your problem
Greetings, I am attempting to utilize DFIR Iris' webhook module to POST messages to my gotify server upon the occurrence of a certain type of event. This action is supported within Iris. Here is my webhook configuration within Iris (documentation):
{
"instance_url": "https://foo.bar.local",
"webhooks": [
{
"name": "Gotify",
"active": true,
"trigger_on": ["on_postload_alert_create"],
"request_url": "https://gotify.foo.work/message?token=R4ND0MNUMB3R$",
"use_rendering": false,
"request_rendering": "none",
"request_body": {
"alert_title": "[ALERT] ${alerts.alert_title}",
"alert_description": "${alerts.alert_description}"
}
}
]
}
When an alert comes in to Iris, it should send a POST to the gotify server. Unfortunately, it never gets there.
I attempted to do a quick test and, from the Iris server commandline, executed the following:
curl "https://gotify.foo.work/message?token=R4ND0MNUMB3R$" -F "title=[ALERT] ${{alerts.alert_title}}" -F "message=${{alerts.alert_description}}" -F "priority=7"
This produced this error:
-bash: title=[ALERT] ${{alerts.alert_title}}: bad substitution
If, I removed the variables, the alert is received just fine.
So it seems the issue is the format of my request from the Iris Server. Is there a way to utilize variables such as are referenced above, to a gotify server and have it delivered?
Thank you!