Commit 5d2611781e28a869d2049f9ea19bcccc42249780 broke my Apache reverse proxy setup.
I'm not a fan of basic auth (and configuring all different credendtials for all my web facing tools) nor do I trust apps to be bullitproof (no offence). I like offloading all my authentication requirements to one single application. That's why I've setup oath2 authentication in my Apache server and setup reverse proxies to stuff I want exposed to the internet. It seems it's now required to define a username and password when accessing from a non private ip range which seems to break my setup.
Is there any way to disable this check?
Snippet of Apache config:
ProxyPass /sickrage http://localhost:8081/sickrage
ProxyPassReverse /sickrage http://localhost:8081/sickrage
#Define access profile
<Location /sickrage>
Include access_directives/profiles/me-oath.conf
</Location>
Branch/Commit: 5d2611781e28a869d2049f9ea19bcccc42249780
What you did: Try to browse to my SickChill instance via reverse proxy
What happened: Got message about internet facing without password
What you expected: Normal login
Logs:
2020-02-25 17:46:50 WARNING WEBSERVER :: Remote access was attempted by xxx.xxx.xxx.xxx (public ip)
Hi, thanks for the report. Please use search to make sure your issue has not been reported yet, and someone will try to help you as soon as possible.
I'll look into an ini only override
Basic auth is now an option.
I'm sure if you use a reverse proxy, you can figure out how to add the header in your reverse proxy config.
>>> import base64
>>> value = 'Basic ' + base64.encodestring('username:password')
>>> print('Header needs to look like:')
Header needs to look like:
>>> print('Authorization: {}'.format(value))
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Basic really sucks, but ANY auth is better than NO AUTH.
Hey miigotu,
Wow, thnx for the really quick response and fix. Seems to work great!
For other peeps, example of my modified config (with user/pass example)
(Apache)
ProxyPass /sickrage http://localhost:8081/sickrage
ProxyPassReverse /sickrage http://localhost:8081/sickrage
#Define access profile
<Location /sickrage>
Include access_directives/profiles/me-oath.conf
RequestHeader set Authorization: "Basic ZXhabXBsZepleGFtcGxl"
</Location>
@erikhubers I hope that isnt your real digest value posted publicly on github =P
I edited it but the history is still available, if it is the real one you should delete the comment and post again ;)
I see now you said (with user/pass example) so I guess its a fake haha
Hehe jep, I was typing a reply. But you were faster :P
Oof, I wanted to get it out quick and made a boo-boo. Fixed in https://github.com/SickChill/SickChill/commit/d44fe0b9a68d679fb4152d1bb2897eb7aea3d32a
Most helpful comment
I'll look into an ini only override