-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iris / JSON Variable Issues? #709
Comments
Looks like the variable substitution format is not right? From the document it seems to be in the format of And probably request body should be named "title" and "message" for gotify to recognize it as a message |
Thank you for the suggestion. I tried both of the following formats, neither working:
That being said, the following did work from the command line (of course the variables did not 'work' but thats okay for this POC): So I am guessing it may be HOW Iris is sending the command? If so, does Gotify have a log I can tail to see where the issue may reside? Is there a specific format/protocol I need to know when sending the request to Gotify? Thank you! |
Webhook integrations are hard to debug without seeing what is being sent. Can you point a socat to your Iris system and see what is the actual payload being sent?
|
Unfortunately I can't get Iris to produce any output at this point. I think I will need to attack this from the Iris standpoint. I'll be back. |
Have you read the documentation?
You are setting up gotify in
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):
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!
The text was updated successfully, but these errors were encountered: