CrystalNET-org / paperless-ftpd

Docker container tailored to run alogside paperless-ngx where it provides a ftpd service that authenticates against the paperless-ngx database backend
1 stars 1 forks source link

Broken paperless_auth binary #10

Open p3l1 opened 4 days ago

p3l1 commented 4 days ago

Hey there,

it seems like the content of the file paperless_auth is only Not found, in the latest tag (0.2.3).

When setting up the ftpd service, I had trouble with the authentication and did some digging. When inspecting the running container I found that the required go binary is not correctly built into the image. Its also only 9 bytes.

container:/opt/pureftpd/sbin$ ls -al
total 264
drwxr-xr-x    1 root     root          4096 Dec 22  2023 .
drwxr-xr-x    1 root     root          4096 Dec 22  2023 ..
-rw-r--r--    1 root     root             9 Dec 22  2023 paperless_auth
-rwxr-xr-x    1 root     root         22808 Dec 22  2023 pure-authd
-rwxr-xr-x    1 root     root         14096 Dec 22  2023 pure-certd
-rwxr-xr-x    1 root     root        139632 Dec 22  2023 pure-ftpd
-rwxr-xr-x    1 root     root         14096 Dec 22  2023 pure-ftpwho
-rwxr-xr-x    1 root     root         14096 Dec 22  2023 pure-mrtginfo
-rwxr-xr-x    1 root     root         22376 Dec 22  2023 pure-quotacheck
-rwxr-xr-x    1 root     root         14096 Dec 22  2023 pure-uploadscript

Would love to use this feature! Thanks for your great work on the paperless helm chart!

psych0d0g commented 4 days ago

interesting, ill investigate asap and will report back, thanks for bringing this up :)

p3l1 commented 3 days ago

Thanks! It seems like the link to the artifact is outdated.

https://github.com/CrystalNET-org/paperless-ftpd/blob/a41b6b2569b91256430b15667946b476e2ba9532/Dockerfile#L39