Commit Graph

1978 Commits

Author SHA1 Message Date
d073a250cc Specify ref for sync tag workflow (#1365) 2023-12-08 14:18:49 +01:00
a1c48468ab Add Dev Container Support section in contributing guideline (#1363) v0.24.4 2023-12-08 11:54:50 +01:00
dd1e730454 Update API descriptions and examples (#1364) 2023-12-08 11:39:33 +01:00
050f140245 Add sync-tag.yml GitHub workflow (#1362) 2023-12-08 10:55:31 +01:00
006ba32086 Fix/acl for forward (#1305)
Fix ACL on routed traffic and code refactor
2023-12-08 10:48:21 +01:00
b03343bc4d Add sync-main.yml GitHub workflow (#1359) 2023-12-06 17:51:11 +01:00
36d62f1844 Merge pull request #1358 from netbirdio/fix/tests-after-peer-validation
Fix tests after peer validation
2023-12-06 15:39:37 +01:00
08733ed8d5 update tests 2023-12-06 15:02:10 +01:00
27ed88f918 Implement lightweight method to check is peer has update channel (#1351)
Instead of GetAllConnectedPeers that need to traverse the whole
connections map in order to find one channel there.
2023-12-05 14:17:56 +01:00
45fc89b2c9 Merge pull request #1355 from netbirdio/chore/update-integrations-branch-reference
Chore: clean gomod reference
2023-12-05 13:13:14 +01:00
f822a58326 go mod tidy 2023-12-05 12:54:01 +01:00
d1f13025d1 switch back to use netbird main 2023-12-05 12:39:15 +01:00
3f8b500f0b Merge pull request #1341 from netbirdio/feature/peer-approval
Add peer and settings validation
2023-12-05 12:11:14 +01:00
0d2db4b172 update API doc 2023-12-04 19:02:16 +01:00
7a18dea766 go mod tidy 2023-12-04 17:35:56 +01:00
ae5f69562d Merge branch 'main' into feature/peer-approval 2023-12-04 17:34:53 +01:00
755ffcfc73 Merge pull request #1353 from netbirdio/feature/extend-add-peer-event-with-setup-key
Extend add peer event meta with setup key name
2023-12-04 17:33:50 +01:00
dc8f55f23e remove dependency cycle from prepare peer 2023-12-04 16:26:34 +01:00
89249b414f move peer validation into getPeerconnectionResources 2023-12-04 14:53:38 +01:00
92adf57fea fix map assignment 2023-12-04 13:49:46 +01:00
e37a337164 Add gosec linter (#1342)
This PR adds `gosec` linter with the following checks disabled:

- G102: Bind to all interfaces
- G107: Url provided to HTTP request as taint input
- G112: Potential slowloris attack
- G114: Use of net/http serve function that has no support for setting timeouts
- G204: Audit use of command execution
- G401: Detect the usage of DES, RC4, MD5 or SHA1
- G402: Look for bad TLS connection settings
- G404: Insecure random number source (rand)
- G501: Import blocklist: crypto/md5
- G505: Import blocklist: crypto/sha1

We have complaints related to the checks above. They have to be addressed separately.
2023-12-04 13:34:06 +01:00
1cd5a66575 adding setup key name to the event meta for adding peers by setup key 2023-12-04 13:00:13 +01:00
b9fc008542 extract peer preparation 2023-12-04 12:49:50 +01:00
d5bf79bc51 Merge branch 'main' into feature/peer-approval 2023-12-01 18:12:59 +01:00
d7efea74b6 add owner role support (#1340)
This PR adds support to Owner roles.

The owner role has a similar access level as the admin, but it has the power to delete the account.

Besides that, the role has the following constraints:

- The role can only be transferred. So, only a user with the owner role can transfer the owner role to a new user
- It can't be assigned to users being invited
- It can't be assigned to service users
2023-12-01 17:24:57 +01:00
b8c46e2654 Fix IPv6 format for DNS address received from android (#1350)
this adds the address in the expected format in Go [ipv6]:port
2023-12-01 14:26:42 +01:00
4bf574037f fix sql store 2023-11-30 11:51:35 +01:00
47c44d4b87 fix imports in sqlite store test 2023-11-30 11:08:51 +01:00
96f866fb68 add missing imports after refactor 2023-11-29 16:46:46 +01:00
141065f14e Merge branch 'main' into feature/peer-approval 2023-11-29 16:27:01 +01:00
8e74fb1fa8 add account id to validating peer update 2023-11-29 15:57:56 +01:00
ba96e102b4 settings nil check 2023-11-29 15:16:11 +01:00
7a46a63a14 Fix the inability to set hostname with the flag in daemon mode (#1339)
Pass the hostname set in the flag into the protocol message when running in daemon mode.
2023-11-29 15:01:27 +01:00
2129b23fe7 allow sync for and return empty map 2023-11-29 14:56:06 +01:00
b6211ad020 Fix group membership for peers API response (#1337) 2023-11-29 09:33:05 +01:00
efd05ca023 fix api references 2023-11-28 15:15:51 +01:00
c829ad930c use separate package for signatures 2023-11-28 15:09:04 +01:00
ad1f18a52a replace with updated integrations 2023-11-28 14:55:20 +01:00
bab420ca77 extract account into separate package 2023-11-28 14:34:57 +01:00
c2eaf8a1c0 Add account deletion endpoint (#1331)
Adding support to account owners to delete an account

This will remove all users from local, and if --user-delete-from-idp is set it will remove from the remote IDP
2023-11-28 14:23:38 +01:00
a729c83b06 extract peer into seperate package 2023-11-28 13:45:26 +01:00
dc05102b8f Fix panic on empty username for invites (#1334)
Validate email and user are not empty
2023-11-28 13:09:33 +01:00
a7e55cc5e3 add signatures and frame for peer approval 2023-11-28 11:44:08 +01:00
b7c0eba1e5 add extra settings struct 2023-11-27 17:04:40 +01:00
d1a323fa9d Add gocritic linter (#1324)
* Add gocritic linter

`gocritic` provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment

This PR contains many `//nolint:gocritic` to disable `appendAssign`.
2023-11-27 16:40:02 +01:00
63d211c698 Prepare regexps on compile time (#1327) 2023-11-27 13:01:00 +01:00
0ca06b566a Add Windows version to correct system info field (#1330) 2023-11-24 17:49:39 +01:00
cf9e447bf0 Update signing pipelines to version 0.0.10 (#1329) 2023-11-24 14:27:40 +01:00
fdd23d4644 Remove the gateway check for routes (#1317)
Most operating systems add a /32 route for the default gateway address to its routing table

This will allow routes to be configured into the system even when the incoming range contains the default gateway.

In case a range is a sub-range of an existing route and this range happens to contain the default gateway it attempts to create a default gateway route to prevent loop issues
v0.24.3
2023-11-24 11:31:22 +01:00
hg
5a3ee4f9c4 Add systemd .service files (#1316) (#1318)
Add systemd .service files
2023-11-23 20:15:07 +01:00