fix(jointoken): initialize HMAC secret on service startup

Consume() called loadSecret() which failed with "no such file" when
cluster-join-secret didn't exist yet. New() now calls ensureSecret()
so the file is always created before any Consume() attempt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Debian
2026-05-29 18:44:00 +02:00
parent 357113e7be
commit 6eb6d6d6a4
5 changed files with 12 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ import (
usersvc "git.netcell-it.de/projekte/edgeguard-native/internal/services/users"
)
var version = "1.1.159"
var version = "1.1.160"
func main() {
addr := os.Getenv("EDGEGUARD_API_ADDR")