braginini
02cc6a30f5
feature: extend setup key logic
2021-08-19 21:12:21 +02:00
braginini
c68d9dff4a
chore: setup key upper case
2021-08-19 20:07:12 +02:00
Mikhail Bragin
1dfa99d07c
add wiretrustee LOGIN command ( #90 )
...
* feature: add wiretrustee LOGIN command
* chore: add management initial connection timeout
* test: add login cmd test
* test: validate generated config in login cmd
* test: add up command test
* chore: add timeout to signal client creation method
* test: close wireguard interface once test finished
2021-08-18 13:35:42 +02:00
braginini
f7e51e7453
refactor: use logrus in service_controller
2021-08-17 09:14:21 +02:00
braginini
2c6748610c
fix: service command not running up
2021-08-17 09:13:25 +02:00
Mikhail Bragin
e8ca289f4a
test: add management client tests ( #89 )
...
* test: add management client tests
* test: add management client Sync test
* fix: engine test
* test: remove engine tests
* test: return engine tests [check]
* test: remove engine tests [check]
2021-08-16 23:30:51 +02:00
braginini
2a97053cae
fix: windows build
2021-08-16 15:23:09 +02:00
Maycon Santos
38e3c9c062
Add cors headers ( #85 )
...
* disable EnableAuthOnOptions
* Setup basic cors headers
* feature: user cors lib
2021-08-16 11:29:57 +02:00
Mikhail Bragin
877ad97a96
Peer management login ( #83 )
...
* feature: replace RegisterPeer with Login method that does both - registration and login
* test: add management login test
* feature: add WiretrusteeConfig to the Login response to configure peer global config
* feature: add client peer login support
* fix: missing parts
* chore: update go deps
* feature: support Management Service gRPC endpoints [CLIENT]
* feature: finalize client sync with management
* fix: management store peer key lower case restore
* fix: management returns peer ip without a mask
* refactor: remove cmd pkg
* fix: invalid tun interface name on mac
* fix: timeout when calling management client
* fix: tests and lint errors
* fix: golang-test workflow
* fix: client service tests
* fix: iface build
* feature: detect management scheme on startup
* chore: better logs for management
* fix: goreleaser
* fix: lint errors
* fix: signal TLS
* fix: direct Wireguard connection
* chore: verbose logging on direct connection
2021-08-15 16:56:26 +02:00
Maycon Santos
80de6a75d5
Self contained signal cmd build ( #82 )
...
* Moved Signal CMD to Signal directory
* Removed config dir and fixed a parameter typo
* removed attempt to create ssl directory
* Update Signal build configuration
* move Signal documentation to its directory
* removed unused variables
* test build management and signal
* User run as subcommand to execute the signal daemon
2021-08-13 08:46:30 +02:00
braginini
dcc9dcacdc
feature: add setup key HTTP api response fields
2021-08-12 13:24:06 +02:00
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