mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #491] Hashed-Passwords not working with docker compose #274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rogibaer on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/491
Problem
Using hashed passwords in docker compose doesnt work.
Configuration
I use docker compose to deploy DUFS.
This is my compose file:
version: '3.8'
services:
dufs:
image: sigoden/dufs
container_name: dufs
ports:
- "5000:5000"
volumes:
- cert:/cert
- /BINDPATH:/data # Path obfuscated
command: /data --tls-cert /cert/MyCertificate.crt --tls-key /cert/MyKey.key --allow-all
-a 'admin:$6$AWXrSMrBJQ0ZquNX$yHlpug.8wh.r1ebcWBFBAstBpaNi/iQCPHTOB3sAaie515bI8kW1./AyQ1yiX0z0IWb7UtGmRbDti0okA0ida.@/:rw'
restart: unless-stopped
volumes:
cert:
The login doesnt work.
If I try to save my password-database using Keepass to the webDAV-Location the Console of the Container just prints:
2024-11-26T12:18:05Z INFO - 10.5.101.4 "GET /FILENAME" 401
Which obviously means "forbidden"
If i use the password in plain text its working like a charm.
If you need more logs for troubleshooting please let me know!
Environment Information
@sigoden commented on GitHub (Nov 26, 2024):
Dufs has complete testing, so it cannot be an issue with Dufs itself.
You need to investigate this problem on your own; I am unable to help.
@Rogibaer commented on GitHub (Nov 27, 2024):
Found the issue.
For anyone wondering:
In your compose.yml if you are using envoiroment-variables you need to escape the
symbol by doubleing it to$.You can compare your compose.yml to the actual data interpreted by docker compose using docker-compose config.