mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-20 01:50:58 +00:00
feat(nodes): opt-in encryption at rest for the outbound node API token (#6186)
* node: encrypt outbound bearer token at rest * fix(nodes): keep bearer tokens encrypted throughout --------- Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCommandHelpListsEncryptTokens(t *testing.T) {
|
||||
if help := commandHelp(); !strings.Contains(help, "encrypt-tokens") {
|
||||
t.Fatalf("command help omits encrypt-tokens:\n%s", help)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user