DFIR-IRIS documentation (https://docs.dfir-iris.org/operations/modules/natives/IrisWebHooks/#examples-without-rendering) gives example configuration of Discord webhook:
{ "instance_url": "https://iris.local", "webhooks": [ { "name": "Discord", "trigger_on": [ "on_postload_ioc_create", "on_postload_ioc_update", "on_postload_note_create", "on_postload_note_update" ], "request_url": "https://discord.com/api/webhooks/XXXX/XXXX", "request_rendering": "markdown", "request_body": { "embeds": [{ "description" : "%DESCRIPTION%", "title" : "%TITLE%" }] } } ] }
When I add the discord webhook URL and change "instance_url" to "http://127.0.0.1:8000" (I am developing locally) leaving everything else as is, I get error:
`2024-10-19 20:16:18 :: INFO :: module_handler :: call_modules_hook :: Calling module iris_webhooks_module asynchronously for hook on_postload_ioc_create :: None
Traceback (most recent call last):
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in call
return self.value
AttributeError: 'ChannelPromise' object has no attribute 'value'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors
yield
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
return retry_over_time(
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time
return fun(*args, **kwargs)
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory
self._connection = self._establish_connection()
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection
conn = self.transport.establish_connection()
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/transport/pyamqp.py", line 203, in establish_connection
conn.connect()
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/connection.py", line 324, in connect
self.transport.connect()
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/transport.py", line 129, in connect
self._connect(self.host, self.port, self.connect_timeout)
File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/transport.py", line 172, in _connect
entries = socket.getaddrinfo(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
`
How should "instance_url" be set up to work locally (on localhost) please? Could it be included in the documentation?
DFIR-IRIS documentation (https://docs.dfir-iris.org/operations/modules/natives/IrisWebHooks/#examples-without-rendering) gives example configuration of Discord webhook:
{ "instance_url": "https://iris.local", "webhooks": [ { "name": "Discord", "trigger_on": [ "on_postload_ioc_create", "on_postload_ioc_update", "on_postload_note_create", "on_postload_note_update" ], "request_url": "https://discord.com/api/webhooks/XXXX/XXXX", "request_rendering": "markdown", "request_body": { "embeds": [{ "description" : "%DESCRIPTION%", "title" : "%TITLE%" }] } } ] }
When I add the discord webhook URL and change "instance_url" to "http://127.0.0.1:8000" (I am developing locally) leaving everything else as is, I get error: `2024-10-19 20:16:18 :: INFO :: module_handler :: call_modules_hook :: Calling module iris_webhooks_module asynchronously for hook on_postload_ioc_create :: None Traceback (most recent call last): File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in call return self.value AttributeError: 'ChannelPromise' object has no attribute 'value'During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors yield File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection return retry_over_time( File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time return fun(*args, **kwargs) File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory self._connection = self._establish_connection() File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection conn = self.transport.establish_connection() File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/kombu/transport/pyamqp.py", line 203, in establish_connection conn.connect() File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/connection.py", line 324, in connect self.transport.connect() File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/transport.py", line 129, in connect self._connect(self.host, self.port, self.connect_timeout) File "/Users/oliver/PycharmProjects/iris-web2/.venv/lib/python3.9/site-packages/amqp/transport.py", line 172, in _connect entries = socket.getaddrinfo( File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 953, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] nodename nor servname provided, or not known ` How should "instance_url" be set up to work locally (on localhost) please? Could it be included in the documentation?