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
* Add IpFilter and corresponding test skeleton
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Extend IpFilter with blocklist mode and add unit tests
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Enhance IpFilter to return 403 for blocked IPs and add corresponding test case
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Extend IpFilter with allowlist mode and add corresponding unit tests
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Refactor IpFilter to support both allowlist and blocklist modes, update logic, and add unit tests for allowlist mode
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Handle missing client IP in IpFilter, return 400 response, and add corresponding test case
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Refactor tests in `IpFilterTest` to use `assertAll` for improved assertion grouping and readability
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Refactor `IpFilter` to use `HttpResponse` instead of `HttpResponseBuilder` and update tests accordingly
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Add unit tests for edge cases in `IpFilter` allowlist and blocklist modes
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Refactor `IpFilter` and tests to use `HttpResponseBuilder` instead of `HttpResponse`
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Handle empty client IP in `IpFilter`, return 400 response, and add corresponding test case
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Add comments to `IpFilter` empty methods, clarifying no action is required
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Fix typos in comments within `IpFilterTest`
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Add Javadoc comments to `IpFilter` and `IpFilterTest` for improved clarity and documentation
* Refactor `IpFilter` to use thread-safe collections and normalize IP addresses
* Make `mode` field in `IpFilter` volatile to ensure thread safety
* Ensure UTF-8 encoding for response string in `IpFilterTest` and add attribute management to `HttpRequest`
* Ensure UTF-8 encoding for response string in `IpFilterTest` and add attribute management to `HttpRequest`
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Integrate IP filtering into `ConnectionHandler` and update configuration to support filter settings
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Refactor IP filter check in `ConnectionHandler` to use `Boolean.TRUE.equals` for improved null safety
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* Validate null inputs for allowed/blocked IPs in `IpFilter`, enhance test coverage, and fix typographical error in comments
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
* refactor: extract applyFilters() method using FilterChainImpl
Co-authored-by: Andreas Kaiberger <andreas.kaiberger@gmail.com>
* refactor: cache filter list at construction time
Co-authored-by: Andreas Kaiberger <andreas.kaiberger@gmail.com>
* refactor: cache filter list at construction time
Co-authored-by: Andreas Kaiberger <andreas.kaiberger@gmail.com>
* test: verify GPG signing
* Replace hardcoded status codes in `IpFilter` and `ConnectionHandler` with constants from `HttpResponseBuilder` for better maintainability
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
---------
Co-authored-by: Rickard Ankar <rickard.ankar@iths.se>
0 commit comments