Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(authentication): enhance logging and integrate Fail2Ban configuration (#187) #188

Merged
merged 4 commits into from
Oct 12, 2024

Commits on Oct 10, 2024

  1. feat(authentication): improve IP logging by extracting real client IP…

    … from X-Forwarded-For header
    
    - Added getRealRemoteIP function to retrieve the real client IP address when behind a reverse proxy.
    - Updated authentication logging to use the extracted IP instead of r.RemoteAddr.
    - Ensured compatibility for both proxy and non-proxy setups, falling back to r.RemoteAddr when X-Forwarded-For is not present.
    jiongxuan committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    1fdd0b1 View commit details
    Browse the repository at this point in the history
  2. docs: add Fail2Ban configuration guide to README

    - Added a section in README.md explaining how to configure Fail2Ban for WebDAV security.
    - Included examples for filter and jail configuration.
    - Provided instructions on setting up and testing Fail2Ban to block IPs after failed login attempts.
    jiongxuan committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    bf3c0d5 View commit details
    Browse the repository at this point in the history
  3. feat(authentication): enhance login failure logging and reduce log vo…

    …lume
    
    - Added logging for invalid username attempts to provide more detailed failure reasons.
    - Removed "login attempt" log entries to reduce log volume and focus on final verification results.
    - Retained logging for invalid password and successful user authorization for clarity.
    jiongxuan committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    4b71710 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. chore: removed the the login attempt log commented line to makes the …

    …code cleaner and more focused
    jiongxuan committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    12822e7 View commit details
    Browse the repository at this point in the history