Commit Graph
636 Commits
Author SHA1 Message Date
braginini fa9007bc04 Fix tests 2022-12-27 11:57:50 +01:00
braginini fbd03e8ec2 Fix test methods calls 2022-12-27 11:52:15 +01:00
braginini 1a0e2c6d30 Attempt to fix sqlite cgo 2022-12-22 13:27:08 +01:00
braginini 4f9e047e7e Fix codacy and lint issues 2022-12-22 12:24:02 +01:00
braginini e750a1a40e Merge branch 'feature/event-storage' of github.com:wiretrustee/wiretrustee into feature/event-storage
# Conflicts:
#	infrastructure_files/base.setup.env
2022-12-22 12:08:48 +01:00
braginini 4105a1a24b Make test compile 2022-12-22 12:06:15 +01:00
braginini bfe84fd6e8 Add group events 2022-12-22 12:06:15 +01:00
braginini 91b61efe60 Add setup key events 2022-12-22 12:06:15 +01:00
braginini 747192c9f8 Add more events 2022-12-22 12:06:15 +01:00
braginini dbda9087f5 Remove duplicate UserJoined events from the response 2022-12-22 12:06:15 +01:00
braginini 599c823750 Add user invite event 2022-12-22 12:06:15 +01:00
braginini 5cb2dc676b Finalize events API 2022-12-22 12:06:15 +01:00
braginini cc12aff3a4 Fetch Activity events 2022-12-22 12:06:15 +01:00
braginini 647f726737 Add Events HTTP API 2022-12-22 12:06:15 +01:00
braginini 1174141abc Add join user operation 2022-12-22 12:06:15 +01:00
braginini 26f721179b Add peer operation 2022-12-22 12:06:15 +01:00
braginini a74b4c4b42 Test event ordering in SQLite storage 2022-12-22 12:06:15 +01:00
braginini 6733e9d51e Remove unused event store methods 2022-12-22 12:06:15 +01:00
braginini 1cf041fe07 Remove unused event store methods 2022-12-22 12:06:15 +01:00
braginini 94d5d499ac Fetch events with offset limit 2022-12-22 12:06:15 +01:00
braginini 1a7f441652 Fetch events with offset limit 2022-12-22 12:06:15 +01:00
braginini 908eb4d051 Fix SQLiteStore test 2022-12-22 12:06:15 +01:00
braginini e12b74760c Fix lint issue 2022-12-22 12:06:15 +01:00
braginini 31fda2b062 Add basic Save and Get operations to the event store 2022-12-22 12:06:15 +01:00
braginini 7a3c6b576c Add basic Save and Get operations to the event store 2022-12-22 12:06:15 +01:00
braginini b7f4a6f098 Rename audit to event 2022-12-22 12:06:15 +01:00
braginini cafd10b3a3 Initial event store draft 2022-12-22 12:06:15 +01:00
Oskar Manhart 50caacff69 Fix COTURN config when selfhosting netbird
Coturn doesn't read the turnserver.conf when selfhosting netbird.
This PR fixes that.
2022-12-22 12:02:48 +01:00
braginini 359b2a13a7 Make test compile 2022-12-22 11:54:26 +01:00
braginini a32bc441d2 Add group events 2022-12-21 18:55:14 +01:00
braginini ef171ebdd4 Add setup key events 2022-12-21 18:43:10 +01:00
braginini f485b654b4 Add more events 2022-12-20 18:52:18 +01:00
Maycon Santos d18966276a Store the previous applied dns configuration hash (#628)
This prevents changing the system
DNS config when there is nothing to new

It also prevents issues with network change on google chrome
2022-12-16 17:00:20 +01:00
braginini ca291a0fd6 Remove duplicate UserJoined events from the response 2022-12-13 15:50:45 +01:00
Maycon Santos 6b32e2dc07 Validate single account domain input (#624) v0.11.6 2022-12-13 13:43:29 +01:00
Maycon Santos c0a62b6ddc Add DNS domain to getting started scripts (#625) 2022-12-13 13:42:43 +01:00
Maycon Santos 7dfef091bb Properly parse dns resolver address (#622)
Prevent panic when address is empty. Common with older managers, where
resolver is disabled by default as
we receive an empty dns config
2022-12-13 12:26:48 +01:00
braginini 3d6b0e3638 Add user invite event 2022-12-12 14:05:11 +01:00
braginini c50d07b83f Finalize events API 2022-12-12 09:10:55 +01:00
braginini 4440ad1271 Fetch Activity events 2022-12-11 21:16:47 +01:00
braginini f684baa665 Add Events HTTP API 2022-12-11 20:01:17 +01:00
Maycon Santos cf27bd8951 Export single account domain variable 2022-12-11 19:35:43 +01:00
Maycon Santos 739afea4b4 Filter routes to sync from same HA group (#618)
An additional check and filter for routes that are part
 of the same HA group where the peer is a routing peer
2022-12-11 19:35:43 +01:00
Maycon Santos 2dec9989c6 Use latest tag for dashboard (#617)
Using the latest tag will align with the
dashboard's new release cycle that relies on tags
2022-12-11 19:35:43 +01:00
Krzysztof Nazarewski 5d544ae55e HA Network Routes: prevent routing directly-accessible networks through VPN interface (#612)
Prevent routing peer to add routes from the same HA group as client routes
2022-12-11 19:35:43 +01:00
Maycon Santos 94803417cf Generate validation certificate from mandatory JWK fields (#614)
When there is no X5c we will use N and E fields of 
a JWK to generate the public RSA and a Pem certificate
2022-12-11 19:35:43 +01:00
Maycon Santos 1835dd3e3c Remove wiretrustee conflict checks (#615) 2022-12-11 19:35:43 +01:00
Maycon Santos cfed36ff8d Handle peer deletion and state update (#611)
If peer is deleted in the console,
we set its state as needs login

On Down command we clean any previous state errors
this prevents need for daemon restart

Removed state error wrapping when engine exits, log is enough
2022-12-11 19:35:43 +01:00
Maycon Santos a212686193 Add network routes distribution groups (#606)
Updated tests, API, and account manager methods

Sync routes to peers in the distribution groups

Added store upgrade by adding the All group to routes that don't have them
2022-12-11 19:35:43 +01:00
Maycon Santos 93fcfeae91 Export single account domain variable 2022-12-08 19:45:33 +01:00