-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Add initial support of device posture checks #1540
Commits on Dec 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8fa11b1 - Browse repository at this point
Copy the full SHA 8fa11b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ffd68 - Browse repository at this point
Copy the full SHA 92ffd68View commit details
Commits on Jan 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23bcdb7 - Browse repository at this point
Copy the full SHA 23bcdb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc2bf4e - Browse repository at this point
Copy the full SHA bc2bf4eView commit details
Commits on Jan 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2a1afbb - Browse repository at this point
Copy the full SHA 2a1afbbView commit details
Commits on Jan 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 526bff5 - Browse repository at this point
Copy the full SHA 526bff5View commit details
Commits on Jan 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d1421e9 - Browse repository at this point
Copy the full SHA d1421e9View commit details
Commits on Jan 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dfa4bc0 - Browse repository at this point
Copy the full SHA dfa4bc0View commit details
Commits on Jan 12, 2024
-
Integrate Endpoints for Posture Checks (#1432)
* wip: add posture checks structs * add netbird version check * Refactor posture checks and add version checks * Implement posture and version checks in API models * Refactor API models and enhance posture check functionality * wip: add posture checks endpoints * go mod tidy * Reference the posture checks by id's in policy * Add posture checks management to server * Add posture checks management mocks * implement posture checks handlers * Add posture checks to account copy and fix tests * Refactor posture checks validation * wip: Add posture checks handler tests * Add JSON encoding support to posture checks * Encode posture checks to correct api response object * Refactored posture checks implementation to align with the new API schema * Refactor structure of `Checks` from slice to map * Cleanup * Add posture check activities (#1445) * Revert map to use list of checks * Add posture check activity events * Refactor posture check initialization in account test * Improve the handling of version range in posture check * Fix tests and linter * Remove max_version from NBVersionCheck * Added unit tests for NBVersionCheck * go mod tidy * Extend policy endpoint with posture checks (#1450) * Implement posture and version checks in API models * go mod tidy * Allow attaching posture checks to policy * Update error message for linked posture check on deleting * Refactor PostureCheck and Checks structures * go mod tidy * Add validation for non-existing posture checks * fix unit tests * use Wt version * Remove the enabled field, as posture check will now automatically be activated by default when attaching to a policy
Configuration menu - View commit details
-
Copy full SHA for b2f1427 - Browse repository at this point
Copy the full SHA b2f1427View commit details
Commits on Jan 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f3d58b9 - Browse repository at this point
Copy the full SHA f3d58b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7ee8c2 - Browse repository at this point
Copy the full SHA a7ee8c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a261cf9 - Browse repository at this point
Copy the full SHA a261cf9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62fd5af - Browse repository at this point
Copy the full SHA 62fd5afView commit details -
Integrate Endpoints for Posture Checks (#1432)
* wip: add posture checks structs * add netbird version check * Refactor posture checks and add version checks * Implement posture and version checks in API models * Refactor API models and enhance posture check functionality * wip: add posture checks endpoints * go mod tidy * Reference the posture checks by id's in policy * Add posture checks management to server * Add posture checks management mocks * implement posture checks handlers * Add posture checks to account copy and fix tests * Refactor posture checks validation * wip: Add posture checks handler tests * Add JSON encoding support to posture checks * Encode posture checks to correct api response object * Refactored posture checks implementation to align with the new API schema * Refactor structure of `Checks` from slice to map * Cleanup * Add posture check activities (#1445) * Revert map to use list of checks * Add posture check activity events * Refactor posture check initialization in account test * Improve the handling of version range in posture check * Fix tests and linter * Remove max_version from NBVersionCheck * Added unit tests for NBVersionCheck * go mod tidy * Extend policy endpoint with posture checks (#1450) * Implement posture and version checks in API models * go mod tidy * Allow attaching posture checks to policy * Update error message for linked posture check on deleting * Refactor PostureCheck and Checks structures * go mod tidy * Add validation for non-existing posture checks * fix unit tests * use Wt version * Remove the enabled field, as posture check will now automatically be activated by default when attaching to a policy
Configuration menu - View commit details
-
Copy full SHA for 9b83400 - Browse repository at this point
Copy the full SHA 9b83400View commit details -
Merge remote-tracking branch 'origin/feature/posture-checks' into fea…
…ture/posture-checks
Configuration menu - View commit details
-
Copy full SHA for 146f70f - Browse repository at this point
Copy the full SHA 146f70fView commit details
Commits on Jan 22, 2024
-
Extend network map generation with posture checks (#1466)
* Apply posture checks to network map generation * run policy posture checks on peers to connect * Refactor and streamline policy posture check process for peers to connect. * Add posture checks testing in a network map * Remove redundant nil check in policy.go * Refactor peer validation check in policy.go * Update 'Check' function signature and use logger for version check * Refactor posture checks run on sources and updated the validation func * Update peer validation * fix tests * improved test coverage for policy posture check * Refactoring
Configuration menu - View commit details
-
Copy full SHA for 3604a97 - Browse repository at this point
Copy the full SHA 3604a97View commit details
Commits on Jan 26, 2024
-
Extend NetBird agent to collect kernel version (#1495)
* Add KernelVersion field to LoginRequest * Add KernelVersion to system info retrieval * Fix tests * Remove Core field from system info * Replace Core field with new OSVersion field in system info * Added WMI dependency to info_windows.go
Configuration menu - View commit details
-
Copy full SHA for 786326a - Browse repository at this point
Copy the full SHA 786326aView commit details
Commits on Jan 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ad42ead - Browse repository at this point
Copy the full SHA ad42eadView commit details
Commits on Jan 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c21bb77 - Browse repository at this point
Copy the full SHA c21bb77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 626b2a8 - Browse repository at this point
Copy the full SHA 626b2a8View commit details
Commits on Feb 1, 2024
-
Add Geo Location posture check (#1500)
* wip: implement geolocation check * add geo location posture checks to posture api * Merge branch 'feature/posture-checks' into geo-posture-check * Remove CityGeoNameID and update required fields in API * Add geoLocation checks to posture checks handler tests * Implement geo location-based checks for peers * Update test values and embed location struct in peer system * add support for country wide checks * initialize country code regex once
Configuration menu - View commit details
-
Copy full SHA for b1a43d4 - Browse repository at this point
Copy the full SHA b1a43d4View commit details -
Fix peer meta core compability with older clients (#1515)
* Refactor extraction of OSVersion in grpcserver * Ignore lint check
Configuration menu - View commit details
-
Copy full SHA for b0462cd - Browse repository at this point
Copy the full SHA b0462cdView commit details
Commits on Feb 6, 2024
-
Fix peer meta core compability with older management (#1532)
* Revert core field deprecation * fix tests
Configuration menu - View commit details
-
Copy full SHA for 3ccdf71 - Browse repository at this point
Copy the full SHA 3ccdf71View commit details -
Extend peer meta with location information (#1517)
This PR uses the geolocation service to resolve IP to location. The lookup happens once on the first connection - when a client calls the Sync func. The location is stored as part of the peer:
Configuration menu - View commit details
-
Copy full SHA for 4bcee77 - Browse repository at this point
Copy the full SHA 4bcee77View commit details
Commits on Feb 7, 2024
-
Add Locations endpoints (#1516)
* add locations endpoints * Add sqlite3 check and database generation in geolite script * Add SQLite storage for geolocation data * Refactor file existence check into a separate function * Integrate geolocation services into management application * Refactoring * Refactor city retrieval to include Geonames ID * Add signature verification for GeoLite2 database download * Change to in-memory database for geolocation store * Merge manager to geolocation * Update GetAllCountries to return Country name and iso code * fix tests * Add reload to SqliteStore * Add geoname indexes * move db file check to connectDB * Add concurrency safety to SQL queries and database reloading The commit adds mutex locks to the GetAllCountries and GetCitiesByCountry functions to ensure thread-safety during database queries. Additionally, it introduces a mechanism to safely close the old database connection before a new connection is established upon reloading, which improves the reliability of database operations. Lastly, it moves the checking of database file existence to the connectDB function. * Add sha256 sum check to geolocation store before reload * Use read lock * Check SHA256 twice when reload geonames db --------- Co-authored-by: Yury Gargay <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b11bf0 - Browse repository at this point
Copy the full SHA 6b11bf0View commit details
Commits on Feb 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d564cd9 - Browse repository at this point
Copy the full SHA d564cd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d6918 - Browse repository at this point
Copy the full SHA 74d6918View commit details -
Configuration menu - View commit details
-
Copy full SHA for b284c4d - Browse repository at this point
Copy the full SHA b284c4dView commit details
Commits on Feb 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c49bf62 - Browse repository at this point
Copy the full SHA c49bf62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7072c02 - Browse repository at this point
Copy the full SHA 7072c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddf01ac - Browse repository at this point
Copy the full SHA ddf01acView commit details
Commits on Feb 12, 2024
-
Add Geolocation handler tests (#1556)
* Implement user admin checks in posture checks * Add geolocation handler tests * Mark initGeolocationTestData as helper func * Add error handling to geolocation database closure * Add cleanup function to close geolocation resources
Configuration menu - View commit details
-
Copy full SHA for 59480b9 - Browse repository at this point
Copy the full SHA 59480b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for daacd5f - Browse repository at this point
Copy the full SHA daacd5fView commit details -
Regenerate network map on posture check update (#1563)
* change network state and generate map on posture check update * Refactoring
Configuration menu - View commit details
-
Copy full SHA for 6cfb214 - Browse repository at this point
Copy the full SHA 6cfb214View commit details
Commits on Feb 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6792b50 - Browse repository at this point
Copy the full SHA 6792b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bdf533 - Browse repository at this point
Copy the full SHA 0bdf533View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4982cca - Browse repository at this point
Copy the full SHA 4982ccaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bca6dbe - Browse repository at this point
Copy the full SHA bca6dbeView commit details -
Validate action param of geo location checks (#1577)
We only support allow and deny
Configuration menu - View commit details
-
Copy full SHA for 5d40396 - Browse repository at this point
Copy the full SHA 5d40396View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3904c7 - Browse repository at this point
Copy the full SHA d3904c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91ebbc0 - Browse repository at this point
Copy the full SHA 91ebbc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c26cdb - Browse repository at this point
Copy the full SHA 7c26cdbView commit details
Commits on Feb 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 08e5907 - Browse repository at this point
Copy the full SHA 08e5907View commit details -
Enhance the management of posture checks (#1595)
* add a correct min version and kernel for os posture check example * handle error when geo or location db is nil * expose all peer location details in api response * Check for nil geolocation manager only * Validate posture check before save * bump open api version * add peer location fields to toPeerListItemResponse
Configuration menu - View commit details
-
Copy full SHA for 6f28418 - Browse repository at this point
Copy the full SHA 6f28418View commit details