Misha Bragin
9e408b5bbc
Add more activity events ( #663 )
2023-01-25 16:29:59 +01:00
Misha Bragin
a0de9aa345
Simplify event storing with one generic method ( #662 )
...
Use the generic storeEvent() funcion to store all activity events.
2023-01-24 10:17:24 +01:00
Maycon Santos
4406d50c18
Check if peer name change before update labels ( #658 )
2023-01-20 10:07:37 +01:00
Maycon Santos
5e3502bb83
Enable CGO in goreleaser for management ( #657 )
...
Update the debug docker image file
update goreleaser version
Install and reference CGO OS deps
2023-01-19 15:03:10 +01:00
Maycon Santos
793e4f1f29
Allow empty groups for DNS setting ( #656 )
...
We should allow passing empty group slice for DisabledManagementGroups to reset any setting.
Fix DNS settings activities message
2023-01-18 14:01:50 +01:00
Maycon Santos
dcf6533ed5
Adding --external-ip-map and --dns-resolver-address and shorthand flags ( #652 )
...
Adding --external-ip-map and --dns-resolver-address to up command and shorthand option to global flags.
Refactor get and read config functions with new ConfigInput type.
updated cobra package to latest release.
2023-01-17 19:16:50 +01:00
Maycon Santos
12ae2e93fc
Adding DNS settings for accounts ( #655 )
...
Allow users to set groups in which the DNS management is disabled
Added API, activity store, and network map sync test
2023-01-17 17:34:40 +01:00
Zoltan Papp
2bc3d88af3
Involve foreground mode switch for up cmd ( #654 )
...
Add new --deamon-off command line parameter
for 'up' cmd instead of existing log-file workaround
Split the up function and organize the code
2023-01-16 18:12:51 +01:00
Misha Bragin
afaf0660be
Install ca-certs in the Management docker image build ( #650 )
2023-01-11 08:19:22 +01:00
Misha Bragin
d4d8c5f037
Fix cgo dependencies in the management docker container ( #649 )
2023-01-10 17:24:51 +01:00
Maycon Santos
e5adc1eb23
Use macOS v11 to build UI release ( #648 )
...
This allows us to run clients on older macOS versions
2023-01-10 16:49:24 +01:00
Jonathan Hult
44f612f121
Fix typo - "netforwad" -> "netforward" ( #647 )
2023-01-08 23:51:08 +01:00
Roy
f9dfafa9d9
Add device flow scope. ( #616 )
...
add the openid as the base scope
2023-01-08 22:26:14 +01:00
Maycon Santos
ca62f6787a
Use configuration input struct ( #645 )
...
As we will be passing more flags to configure
local agents, we need a more flexible type
2023-01-08 12:57:28 +01:00
Maycon Santos
27f4993ce3
Add netbird installer project ( #637 )
2023-01-08 11:33:04 +01:00
Misha Bragin
5c0b8a46f0
Add system activity tracking and event store ( #636 )
...
This PR adds system activity tracking.
The management service records events like
add/remove peer, group, rule, route, etc.
The activity events are stored in the SQLite event store
and can be queried by the HTTP API.
2023-01-02 15:11:32 +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
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
Maycon Santos
6b32e2dc07
Validate single account domain input ( #624 )
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
Maycon Santos
93fcfeae91
Export single account domain variable
2022-12-08 19:45:33 +01:00
Maycon Santos
6f610dca89
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-08 15:15:50 +01:00
Maycon Santos
eec24fc730
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-08 15:15:17 +01:00
Krzysztof Nazarewski
1204bbd54a
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-08 13:19:55 +01:00
Maycon Santos
0be46c083d
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-07 22:06:43 +01:00
Maycon Santos
0fbfec4ce4
Remove wiretrustee conflict checks ( #615 )
2022-12-07 18:53:48 +01:00
Maycon Santos
d43f0200a6
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-06 15:37:30 +01:00
Maycon Santos
a387e3cfc2
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-06 10:11:57 +01:00
Misha Bragin
d1b7c23b19
Add SetupKey usage limit ( #605 )
...
Add a usage_limit parameter to the API.
This limits the number of times a setup key
can be used.
usage_limit == 0 indicates the the usage is inlimited.
2022-12-05 13:09:59 +01:00
Maycon Santos
d2d5d4b4b9
Update go version ( #603 )
...
Removed ioctl code and remove exception from lint action
2022-12-04 13:22:21 +01:00
Maycon Santos
d029136d3d
Add security policy file ( #600 )
2022-12-02 13:54:22 +01:00
Maycon Santos
a6d2f673ad
Add contribution guide ( #595 )
...
* Add contribution guide
* update code of conduct contact email
* add PR template
2022-12-02 13:31:31 +01:00
Maycon Santos
0cf0dc048b
Update issue templates ( #597 )
2022-12-02 13:31:15 +01:00
Rui Lopes
5ade879e31
Remove the leading space from the Signal status value ( #594 )
2022-12-01 11:48:13 +01:00
Maycon Santos
a814715ef8
Add resolvconf configurator for linux ( #592 )
2022-11-29 14:51:18 +01:00
Maycon Santos
4a30b66503
Check if system is our manager when resolvconf ( #590 )
...
Sometimes resolvconf will manage the /etc/resolv.conf file
And systemd-resolved still the DNS manager
2022-11-29 13:37:50 +01:00
Maycon Santos
ae500b63a7
User custom loopback address ( #589 )
...
We will probe a set of addresses and port
to define the one available for our DNS service
if none is available, we return an error
2022-11-29 11:49:18 +01:00
Maycon Santos
20a73e3e14
Sync peers FQDN ( #584 )
...
Use stdout and stderr log path only if on Linux and attempt to create the path
Update status system with FQDN fields and
status command to display the domain names of remote and local peers
Set some DNS logs to tracing
update readme file
2022-11-26 13:29:50 +01:00
Misha Bragin
fcf7786a85
Disable route when removing peer ( #582 )
2022-11-25 18:11:07 +01:00
Maycon Santos
a78fd69f80
Feature/dns client configuration ( #563 )
...
Added host configurators for Linux, Windows, and macOS.
The host configurator will update the peer system configuration
directing DNS queries according to its capabilities.
Some Linux distributions don't support split (match) DNS or custom ports,
and that will be reported to our management system in another PR
2022-11-23 13:39:42 +01:00
Genteure
4bd5029e7b
Enable IPv6 address discovery ( #578 )
...
Agents will use IPv6 when available for ICE negotiation
2022-11-23 11:03:29 +01:00
Tom Kunicki
f604956246
External NAT IP mapping support ( #487 )
...
* External NAT IP mapping support
* Ignore blacklisted interfaces, even if in user specified in mapping
2022-11-23 08:42:12 +01:00
Misha Bragin
53c532bbb4
Fix interactive SSO login when creating account from a device ( #575 )
2022-11-22 12:37:36 +01:00
Misha Bragin
8b0a1bbae0
Display peers of a user that it has access to ( #571 )
...
If a user has a non-admin role, display all peers
that user's peers have access to when calling
/peers endpoint of the HTTP API.
2022-11-21 17:45:14 +01:00
Misha Bragin
e965d6c022
Fix CISPA note
2022-11-21 17:36:07 +01:00
Misha Bragin
11f8249eed
Add CISPA note ( #572 )
2022-11-21 16:38:41 +01:00
Maycon Santos
d63a9ce4a7
Return peer's FQDN via API ( #567 )
...
Added a temp method to retrieve the dns domain
2022-11-21 11:14:42 +01:00
Maycon Santos
9cb66bdb5d
Update last run time and active count ( #568 )
...
* Update last run time and active count
We will collect the active peer min and max versions
* Get UI client usage
2022-11-18 16:35:13 +01:00
Genteure
c8ace8bbbe
Fix docker network interface filter ( #564 )
...
docker network address are assigned on network interfaces that start with "br-"
2022-11-15 22:07:58 +01:00