Rößner-Network-Solutions

Skip to content
Snippets Groups Projects
  1. Sep 06, 2024
    • Christian Roessner's avatar
      Refactor: Consolidate geoip-policyd systemd and configs · f152bfe2
      Christian Roessner authored
      Removed Ansible roles and moved the geoip-policyd configuration and service file under the systemd directory. Updated the build workflows to include the new locations for packaging purposes. This refactoring simplifies the project structure and ensures consistent deployment configurations.
      v1.0.8
      f152bfe2
  2. Sep 05, 2024
  3. Sep 04, 2024
  4. Sep 03, 2024
    • Christian Roessner's avatar
      Update build scripts to include Git metadata · 506ea823
      Christian Roessner authored
      Removed sed command from .gitlab-ci.yml and added Git metadata extraction in Dockerfile to embed version information in the build process. This ensures the built binaries include the latest Git tag and commit hash.
      v1.0.3
      506ea823
    • Christian Roessner's avatar
      Update versioning and CI build configurations · 8033d740
      Christian Roessner authored
      Changed the version variable in main.go from a constant to a variable for dynamic assignment during build. Updated the GitLab CI configurations, including the removal of the golangci-lint stage and upgrading specific tool versions. Modified the Makefile to streamline build and test commands, and removed the lint task.
      8033d740
    • Christian Roessner's avatar
      Rename IP and Country properties for clarity · be199942
      Christian Roessner authored
      Updated the RemoteClient struct to rename IP-related and Country-related fields to ForeignIPs and ForeignCountries. This ensures a clearer distinction between foreign and home properties, improving code readability and maintainability. Updated all related functions and comments accordingly.
      be199942
    • Christian Roessner's avatar
      Rename functions and update policy handling logic · 9a1ea957
      Christian Roessner authored
      Renamed multiple functions for clarity, such as `applyHomeSettings` to `checkHomeCountry` and `setCurrentValues` to `setCurrentClientInfo`. Introduced `updatePolicyResponse` to update policy data, adjusted policy checks to account for 'isHome', and enriched the HTTP response structure with new fields.
      9a1ea957
  5. Sep 01, 2024
  6. Aug 31, 2024
  7. Aug 30, 2024
    • Christian Roessner's avatar
      Add current client IP and country code logging · d87b0206
      Christian Roessner authored
      Enhanced logging by including current client IP and country code in the PolicyResponse. Updated relevant functions to set and log these new fields to better trace the client request details.
      v1.0.0
      d87b0206
    • Christian Roessner's avatar
      Refactor `main.go` for code clarity and modularity · e2178754
      Christian Roessner authored
      This commit significantly refactors `main.go`, introducing new functions to break down complex logic into more manageable parts. Functions like `initializeLogger`, `initializeSignalHandler`, and `configureRedis` enhance code readability and maintainability. Comments have been added to all functions to document their purpose and usage. Additionally, updates include enhanced error handling and structured setup of GeoIP and LDAP services.
      e2178754
  8. Aug 29, 2024
    • Christian Roessner's avatar
      Refactor Redis client creation into reusable functions · 9b13e42c
      Christian Roessner authored
      Separated Redis client creation logic into dedicated helper functions `createFailoverClient` and `createStandardClient`. This improves code readability and maintainability by avoiding redundancy and providing clearer abstraction. Updated the `.idea/httpRequests/http-requests-log.http` file with new request examples and removed outdated entries.
      9b13e42c
    • Christian Roessner's avatar
      Add comprehensive unit tests for policy validation functions. · cbba5faf
      Christian Roessner authored
      Introduced extensive test coverage for IP and country checking policies within the system. Unit tests for `checkIPsPolicy`, `checkCountryPolicy`, and auxiliary functions ensure accurate policy enforcement and error handling.
      cbba5faf
    • Christian Roessner's avatar
      Refactor policy.go for readability and modularity · 332488ba
      Christian Roessner authored
      Split large functions into smaller, well-defined functions for better readability and maintainability. Created utility functions for logging and user checks, tidying up the main logic by abstracting repetitive tasks.
      332488ba
  9. Mar 18, 2024
  10. Mar 14, 2024
    • Christian Roessner's avatar
      Add error checks for GeoIP file existence and access · 5ac1bb88
      Christian Roessner authored
      The code changes add checks for the existence and accessibility of the GeoIP file. If the file does not exist or cannot be accessed, an error is logged and the program will quit with a panic call. This added validation prevents crashes and aids in quickly identifying configuration problems.
      5ac1bb88
Loading