The Docker image page for faradaysec/faraday_agent_dispatcher (https://hub.docker.com/r/faradaysec/faraday_agent_dispatcher/tags) shows the same digest for :latest, :3.6.0, :3.7.0 and even :3.8.0: ad663c8ab138
But in fact the Version inside one of these Images is still Version 3.5.3!
As you can see here:
root@faraday01:~/faraday# docker run --rm -it --name faraday-agent01 --entrypoint /bin/bash faradaysec/faraday_agent_dispatcher:latest
┌──(root㉿c0f7dda7ae42)-[/usr/local/src/faraday_agent_dispatcher]
└─# faraday-dispatcher --version
The configuration folder does not exist, creating it
faraday-dispatcher, version 3.5.3
This old Version still has the Bug that the dispatcher cannot connect to a current server, that was fixed here: aab0f29
Please fix your Docker Image Build Pipeline that we can get a newer version than 3.5.3!
WORKAROUND:
Patch the following files in the Image or mount them by runtime:
Patch online:
sed -i "s|v3/info|config|g" /usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher_io.py
sed -i "s|v3/info|config|g" /usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher.py
Mount by runtime:
docker run --rm --name faraday-agent01 -v /root/faraday-agent01/dispatcher.yaml:/root/.faraday/config/dispatcher.yaml -v /root/faraday-agent01/dispatcher.py:/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher.py -v /root/faraday-agent01/dispatcher_io.py:/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher_io.py faradaysec/faraday_agent_dispatcher --token nnnnnn
The Docker image page for
faradaysec/faraday_agent_dispatcher(https://hub.docker.com/r/faradaysec/faraday_agent_dispatcher/tags) shows the same digest for:latest,:3.6.0,:3.7.0and even:3.8.0:ad663c8ab138But in fact the Version inside one of these Images is still Version
3.5.3!As you can see here:
This old Version still has the Bug that the dispatcher cannot connect to a current server, that was fixed here: aab0f29
Please fix your Docker Image Build Pipeline that we can get a newer version than 3.5.3!
WORKAROUND:
Patch the following files in the Image or mount them by runtime:
Patch online:
Mount by runtime:
docker run --rm --name faraday-agent01 -v /root/faraday-agent01/dispatcher.yaml:/root/.faraday/config/dispatcher.yaml -v /root/faraday-agent01/dispatcher.py:/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher.py -v /root/faraday-agent01/dispatcher_io.py:/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/dispatcher_io.py faradaysec/faraday_agent_dispatcher --token nnnnnn