Skip to content

Dockerimage: :latest is still version 3.5.3 - getting 401, message='UNAUTHORIZED' #28

Description

@schenklklopfer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions