netbird/util
Mikhail Bragin b17424d630
Turn credentials generation (#102)
* abstract peer channel

* remove wip code

* refactor NewServer with Peer updates channel

* feature: add TURN credentials manager

* hmac logic

* example test function

* test: add TimeBasedAuthSecretsManager_GenerateCredentials  test

* test: make tests for now with hardcoded secret

* test: add TimeBasedAuthSecretsManager_SetupRefresh test

* test: add TimeBasedAuthSecretsManager_SetupRefresh test

* test: add TimeBasedAuthSecretsManager_CancelRefresh test

* feature: extract TURNConfig to the management config

* feature: return hash based TURN credentials only on initial sync

* feature: make TURN time based secret credentials optional

Co-authored-by: mlsmaycon <mlsmaycon@gmail.com>
2021-09-02 14:41:54 +02:00
..
duration.go Turn credentials generation (#102) 2021-09-02 14:41:54 +02:00
file_test.go feature: basic management service implementation (#44) 2021-07-17 14:38:59 +02:00
file.go feature: basic management service implementation (#44) 2021-07-17 14:38:59 +02:00
retry.go fix doc 2021-05-15 15:24:30 +05:00
util_suite_test.go feature: basic management service implementation (#44) 2021-07-17 14:38:59 +02:00