Closed ppires closed 2 years ago
Send me a PR?
I think technically this issue belongs in fwr's repo.
I think technically this issue belongs in fwr's repo.
You're right, the problem is here, the password must be url-decoded before computing the hash.
Send me a PR?
It looks like a simple fix, I'll work on the PR. 😃
Which Faktory package and version? Faktory 1.6.1 Docker image (contribsys/faktory:1.6.1)
Which Faktory worker package and version? FWR 1.1.1
Please include any relevant worker configuration
Please include any relevant error messages or stacktraces
Are you using an old version? No
I'm using Faktory docker image version 1.6.1 (contribsys/faktory:1.6.1) and FWR 1.1.1
When I set a password for Faktory (using the env var
FAKTORY_PASSWORD
on the server) and the password has an invalid URL character (eg:@
), when I connect to the server with FWR, I get the invalid password error. If I use a password without any URL invalid characters, everything works fine.In the FAKTORY_URL I used the url-encoded password.
This docker compose file reproduces the error. If the password is changed to
password
(in bothFAKTORY_PASSWORD
andFAKTORY_URL
), FWR can fetch jobs.Maybe a url-decode is missing before computing the password hash??