Mikhail Bragin
3c47a3c408
peer management HTTP API ( #81 )
...
* feature: create account for a newly registered user
* feature: finalize user auth flow
* feature: create protected API with JWT
* chore: cleanup http server
* feature: add UI assets
* chore: update react UI
* refactor: move account not exists -> create to AccountManager
* chore: update UI
* chore: return only peers on peers endpoint
* chore: add UI path to the config
* chore: remove ui from management
* chore: remove unused Docker comamnds
* docs: update management config sample
* fix: store creation
* feature: introduce peer response to the HTTP api
* fix: lint errors
* feature: add setup-keys HTTP endpoint
* fix: return empty json arrays in HTTP API
* feature: add new peer response fields
2021-08-12 12:49:10 +02:00
Maycon Santos
d5af5f1878
Refactor: Move Signal server and client ( #80 )
...
* Move Signal Server
* Move Signal Client
* Cleanup duplicates and unused files
* Moved Signal client tests
2021-08-09 19:21:48 +02:00
braginini
9f0c86c28e
refactor: move grpc and http APIs to separate packages
2021-08-07 13:51:17 +02:00
braginini
08d44b1d5f
refactor: move LetsEncryptDomain to HttpServer config
2021-08-07 13:35:52 +02:00
Mikhail Bragin
1f29975737
feature: basic auth0 support ( #78 )
...
* feature: basic auth0 support
* refactor: improve auth flow
* refactor: extract HttpServer config
* feature: merge HTTP API layer with Let's Encrypt
2021-08-07 12:26:07 +02:00
andpar83
11982d6dde
Add client's interaction with management service ( #71 )
...
* Add client's interaction with management service
* Getting updates
* Fixed key and nil ptr
* Added setupKey param
* Added managment address parameter
* Fixed test
* feature: use RemotePeers from the management server instead of deprecated Peers
* merge: merge changes from main
2021-08-01 19:06:01 +02:00
Maycon Santos
6ce5b2c815
Support Signal server with TLS ( #76 )
...
* tlsEnabled flag and DialOption
* Update signal client invocations
2021-08-01 12:54:35 +02:00
Maycon Santos
ea99def502
Update mgmt binary name and config doc ( #75 )
...
* using wiretrustee-mgmt for binary name
* using wiretrustee-mgmt
* updated documentation and compose files to use config.json
2021-07-31 12:33:04 +02:00
Maycon Santos
f51a79d3b3
Mgmt docker and document ( #72 )
...
* debug image and use wiretrustee/management repository
* Update documentation and docker-compose to include management
* improve documentation and add debug image build
* update docker-compose section with management service notes.
* fix broken doc link
2021-07-31 10:29:49 +02:00
Mikhail Bragin
2c2c1e19df
Peer configuration management ( #69 )
...
* feature: add config properties to the SyncResponse of the management gRpc service
* fix: lint errors
* chore: modify management protocol according to the review notes
* fix: management proto fields sequence
* feature: add proper peer configuration to be synced
* chore: minor changes
* feature: finalize peer config management
* fix: lint errors
* feature: add management server config file
* refactor: extract hosts-config to a separate file
* refactor: review notes applied to correct file_store usage
* refactor: extract management service configuration to a file
* refactor: simplify management config
2021-07-30 17:46:38 +02:00
Maycon Santos
c0c4c4a266
build wiretrustee management binaries ( #68 )
2021-07-25 18:06:18 +02:00
Mikhail Bragin
3b30beb567
add config properties to the SyncResponse of the management gRpc service ( #66 )
...
* feature: add config properties to the SyncResponse of the management gRpc service
2021-07-25 17:08:16 +02:00
andpar83
9e4aa4f1f1
Move management server to a separate directory ( #67 )
...
* Move management server to a separate directory
2021-07-24 16:14:29 +02:00
braginini
83ac774264
test: fix management multiple concurrent peers test
2021-07-22 15:53:15 +02:00
Mikhail Bragin
2172d6f1b9
Extract common server encryption logic ( #65 )
...
* refactor: extract common message encryption logic
* refactor: move letsencrypt logic to common
* refactor: rename common package to encryption
* test: add encryption tests
2021-07-22 15:23:24 +02:00
braginini
c98be683bf
docs: add management service docs
2021-07-22 12:32:04 +02:00
Mikhail Bragin
079d35eada
Extend Management to support peer changes distribution ( #55 )
...
* feature: add peer sync and a server public key endpoints
* test: add Management.Sync() gRpc endpoint test
* feat: implement peer sync
* docs: added some comments to the Management server
* chore: use for loop over channel when monitoring peer updates
* fix: exit infinite loop when sending updates to peers
* test: add multiple concurrent peers test for management service
* chore: remove unused test
* fix: reduce the amount peers for a concurrent peer update test
Co-authored-by: braginini <m.bragin@wiretrustee.com>
2021-07-22 10:28:00 +02:00
Mikhail Bragin
d27eb317aa
update signal gRpc, enable TLS and add keepalive params ( #62 )
...
* chore: update signal gRpc
* chore: add Signal keep alive params and policy
* feature: add signal TLS support
* refactor: move signal Dockerfile to the corresponding folder
Co-authored-by: braginini <m.bragin@wiretrustee.com>
2021-07-21 20:23:11 +02:00
braginini
940578d600
chore: use latest golang-grpc libs
2021-07-20 18:09:26 +02:00
Maycon Santos
1a8c03bef0
feature: Support live peer list update ( #51 )
...
* created InitializePeer and ClosePeerConnection functions
* feature: simplify peer stopping
* chore: remove unused code
* feature: basic management service implementation (#44 )
* feat: basic management service implementation [FAILING TESTS]
* test: fix healthcheck test
* test: #39 add peer registration endpoint test
* feat: #39 add setup key handling
* feat: #39 add peer management store persistence
* refactor: extract config read/write to the utility package
* refactor: move file contents copy to the utility package
* refactor: use Accounts instead of Users in the Store
* feature: add management server Docker file
* refactor: introduce datadir instead of config
* chore: use filepath.Join to concat filepaths instead of string concat
* refactor: move stop channel to the root
* refactor: move stop channel to the root
* review: fix PR review notes
Co-authored-by: braginini <hello@wiretrustee.com>
* Handle read config file errors
* feature: add letsencrypt support to the management service
* fix: lint warnings
* chore: change default datadir
* refactor: set default flags in code not Dockerfile
* chore: remove unused code
* Added RemovePeer and centralized configureDevice code
* remove peer from the wg interface when closing proxy
* remove config file
* add iface tests
* fix tests, validate if file exists before removing it
* removed unused functions UpdateListenPort and ConfigureWithKeyGen
* Ensure we don't wait for timeout when closing
* Rename ClosePeerConnection to RemovePeerConnection
* Avoid returning on uapi Accept failures
* Added engine tests
* Remove extra add address code
* Adding iface.Close
* Ensure Close the interface and disable parallel test execution
* check err var when listing interfaces
* chore: add synchronisation to peer management
* chore: add connection status to track peer connection
* refactor: remove unused code
Co-authored-by: braginini <hello@wiretrustee.com>
Co-authored-by: Mikhail Bragin <bangvalo@gmail.com>
2021-07-19 15:02:11 +02:00
braginini
4e17890597
docs: minor FilesStore corrections
2021-07-18 21:00:32 +02:00
andpar83
7b52049333
Improve addition of new peers in Management service. ( #56 )
...
* Store refactoring
* Improve addition of new peers in Management service.
2021-07-18 20:51:09 +02:00
Mikhail Bragin
f9c3ed784f
Merge pull request #52 from wiretrustee/tls-peer-management
...
feature: add letsencrypt support to the management service
2021-07-18 10:17:13 +02:00
braginini
ea524e2a53
chore: remove unused code
2021-07-17 17:42:00 +02:00
Mikhail Bragin
bffea0e145
Merge pull request #53 from wiretrustee/handle-read-config-file-errors
...
Handle read config file errors
2021-07-17 17:30:07 +02:00
braginini
2d85fcfcc3
refactor: set default flags in code not Dockerfile
2021-07-17 17:26:51 +02:00
braginini
07118d972d
chore: change default datadir
2021-07-17 15:47:16 +02:00
braginini
84f4d51c6c
fix: lint warnings
2021-07-17 15:46:25 +02:00
mlsmaycon
1e250fc0df
Handle read config file errors
2021-07-17 14:58:02 +02:00
braginini
d4a9f4d38a
feature: add letsencrypt support to the management service
2021-07-17 14:51:16 +02:00
Mikhail Bragin
4587f7686e
feature: basic management service implementation ( #44 )
...
* feat: basic management service implementation [FAILING TESTS]
* test: fix healthcheck test
* test: #39 add peer registration endpoint test
* feat: #39 add setup key handling
* feat: #39 add peer management store persistence
* refactor: extract config read/write to the utility package
* refactor: move file contents copy to the utility package
* refactor: use Accounts instead of Users in the Store
* feature: add management server Docker file
* refactor: introduce datadir instead of config
* chore: use filepath.Join to concat filepaths instead of string concat
* refactor: move stop channel to the root
* refactor: move stop channel to the root
* review: fix PR review notes
Co-authored-by: braginini <hello@wiretrustee.com>
2021-07-17 14:38:59 +02:00
Mikhail Bragin
dd50f495ab
docs: add Wireguard trademark statement
2021-06-29 12:50:58 +03:00
Mikhail Bragin
bb2477491f
Merge pull request #37 from wiretrustee/add-service-command
...
feature: Adding service command
2021-06-27 16:50:27 +02:00
mlsmaycon
f4d7faaf4e
debug port value
2021-06-25 11:49:16 +02:00
mlsmaycon
cffb08ad23
Use go bin
2021-06-25 11:23:13 +02:00
mlsmaycon
8d05789749
preserve env GOROOT
2021-06-25 11:18:34 +02:00
mlsmaycon
ca5970140f
set config path to avoid ci/cd limitations
2021-06-25 11:08:16 +02:00
mlsmaycon
ac628b6efa
use sudo for testing service installation
2021-06-25 11:01:21 +02:00
mlsmaycon
80665049dc
fixed Init Execution
2021-06-25 10:59:10 +02:00
mlsmaycon
881f078759
Removed engine.Stop
2021-06-25 10:58:42 +02:00
mlsmaycon
1cf9b143e0
update go.mod with service command dependecies
2021-06-25 10:40:47 +02:00
mlsmaycon
158547f3eb
rebase
2021-06-25 10:39:56 +02:00
mlsmaycon
ab6452065d
Updated documentation for Powershell as admin
2021-06-25 10:28:50 +02:00
mlsmaycon
e553c5e97e
Avoid prompt admin at every execution
2021-06-25 10:28:27 +02:00
Mikhail Bragin
3041ff4ef7
Merge pull request #36 from wiretrustee/avoid-proxy-when-local-net
...
feature: initial implementation of avoiding local proxy if peers are …
2021-06-25 07:15:37 +02:00
mlsmaycon
61a7f3013b
Rename Name function
2021-06-24 23:16:09 +02:00
braginini
dac865c61f
chore: add log to detect a usage of the Wireguard kernel module
2021-06-24 12:49:14 +02:00
braginini
a40669270a
refactor: rearrange iface package
2021-06-24 11:46:33 +02:00
braginini
f2ca2fc7c1
refactort: extract method to create Wireguard interface using kernel module
2021-06-24 11:02:40 +02:00
braginini
729b16e599
fix: windows iface build
2021-06-24 10:59:41 +02:00