The discussion revolves around issues with Twitter, Github, and normal username/password logins not working after a Discourse upgrade. AstonJ initially reports the problem, and Falco suggests it might be related to a secure cookie change. Falco points out that the redirect URI is set to http instead of https, which is likely the cause of the issue.
AstonJ mentions that normal username and password logins are also not working, which Falco attributes to the secure cookie change. AstonJ asks if it’s possible to disable the secure cookie update or revert to an older version.
Falco suggests setting the Callback URL to use the path /auth/github/callback at the site domain, but AstonJ reports that this breaks the login. Cpradio asks if HTTPS is being terminated at Haproxy, and AstonJ confirms this.
Pfaffman notes that Github is experiencing issues, which might be causing the problem. AstonJ reports that disabling force_https seems to have brought log-ins back, but wonders what the purpose of force_https is. Fefrei reports a similar issue and mentions that disabling force_ssl fixes it.
Falco suggests adding proxy_set_header X-Forwarded-Proto https; to the nginx proxy configuration, which Fefrei confirms fixes the issue. AstonJ follows Falco’s advice and adds req add X-Forwarded-Proto: https if { ssl_fc } to the Haproxy configuration, which resolves the issue.
I upgraded the forum last night and this morning several members have emailed saying they can’t register (everything appears to work but when redirected back to the forum they are still shown the log-in/sign-up and can’t post etc).
I’ve tried using a Twitter log-in on one of our existing accounts and I get the same thing.
Anyone know how to troubleshoot this? There are no errors in the error log. The forum is at https://elixirforum.com
Edit: Normal username and password logins are not working either.
I set it to https earlier. But still, why would it affect normal username and password logins (which isn’t working either). Or Twitter?
I also just tried to rebuild one of the other forums… and that failed cos Could not resolve host: github.com; (which I guess is due to their current problems).
Can we switch this secure cookie update off via ACP or revert to an older version for the time being?
When using something outside docker, I know it’s recommended make the inner nginx listen in a unix socket so stuff don’t break. However I don’t have much experience in your stack.
Why is this an unsupported install @Falco? It is a Docker install as normal - the only difference is Haproy on the front (as there is no other way to run ‘normal’ websites on the same server - or do you know what the supported method is of running normal sites on a server as well?).
Also is there any way I can roll back the discourse version to before these new secure cookies were introduced? (Without reverting to an older database).
Btw, I’m not using web.ssl.template.yml as I thought there was no need if you are using something like nginix or haproxy on the front end (which handles the https side of things).
Right this minute 8.8.8.8 and 8.8.4.4 don’t find github and the ones of github’s DNS servers that I checked are unreachable. I’d wait a while before debugging this further
Tech Email: hostmaster@github.com
Name Server: ns2.p16.dynect.net
Name Server: ns3.p16.dynect.net
Name Server: ns4.p16.dynect.net
Name Server: ns1.p16.dynect.net