You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what to do for this specific point; according to my understanding of the login / ban mechanism, I'd expect this method to be on par with handleFailedLogin() as far as proxy handling is concerned:
the IP is not behind a trusted proxy:
- current, expected: reset the ban counter for this IP
the IP is behind a trusted proxy but is not forwarded:
- expected: do nothing
- current: reset the ban counter for the proxy's IP
the IP is behind a trusted proxy and forwarded:
- expected: reset the ban counter for the forwarded IP
- current: reset the ban counter for the proxy's IP
Oh I didn't remember that. So, if I understand correctly, currently the ban mechanism is pretty useless if Shaarli is behind a reverse proxy, as the REMOTE_ADDR IP is always the proxy's one? It may be a good idea to expand a bit this comment and open a new issue?
TODO
Update documentation:
Shaarli configuration
Shaarli configuration when served behind a reverse proxy
Docker image usage
Rework IP banning and lifting when behind a reverse proxy
The text was updated successfully, but these errors were encountered:
This adds a dedicated manager class to handle all ban interactions, which is instantiated and handled by LoginManager.
IPs are now stored in the same format as the datastore, through FileUtils.
Fixesshaarli#1032shaarli#587
Relates to #1008 (comment)
Relates to #1010
@virtualtam wrote:
@ArthurHoaro wrote:
TODO
The text was updated successfully, but these errors were encountered: