crazy-max / docker-firefox-syncserver

Firefox Sync Server Docker image
MIT License
194 stars 13 forks source link

WARNING:mozsvc.user:Authentication Failed: invalid hawk signature #53

Open kangaroo72 opened 3 years ago

kangaroo72 commented 3 years ago

Hi,

I'm starting "docker-firefox-syncserver" like this...

docker run -d -p 5000:5000 --name firefox_syncserver -e TZ="Europe/Paris" -e FF_SYNCSERVER_SECRET="xxxxxxxxxxx" -e FF_SYNCSERVER_FORWARDED_ALLOW_IPS="*" -e FF_SYNCSERVER_PUBLIC_URL="http://sync.domain.tld" -e force_wsgi_environ="true" -e FF_SYNCSERVER_ALLOW_NEW_USERS="true" -v $(pwd)/ff-sync:/data crazymax/firefox-syncserver:latest

I'm getting "WARNING:mozsvc.user:Authentication Failed: invalid hawk signature" Can someone help me with that issue??

Thanks, -Tom-

mind-overflow commented 2 years ago

hey, have you managed to find a solution? I'm having exactly the same problem with docker...

kangaroo72 commented 2 years ago

Hi, I have managed to run the FireFox-SyncServer with Docker-Compose. I also have written a howto. It's in German, but maybe it's interesting for you. Click here.

mind-overflow commented 2 years ago

Thank you so much! I finally figured it out with your guide. My issue was simply that, in the NGINX Reverse proxy, I was redirecting public HTTPS to local HTTP, but I was using the X-Forwarded-Proto https header, which made it look like HTTPS in the Firefox Sync Server. However, I had set the FF_SYNCSERVER_PUBLIC_URL environment variable with http://... and not with https://..., which is what caused the WARNING:mozsvc.user:Authentication Failed: invalid hawk signature issue.

Thanks!

kangaroo72 commented 2 years ago

You're very welcome. I'm also not an expert, but I'm working hard to get something working, what I want. I also have some contacts to experienced coders ;-) Sometimes the result is okay - have a nice day :-)