feat: JWT auth in operator + hello-node example updated

- operator: auth middleware теперь валидирует JWT (sub+exp), не статический токен
- operator: ensureNamespace идемпотентен при race condition (IsAlreadyExists)
- operator: NewRouter убран параметр apiToken — больше не нужен
- examples/hello-node: prod.token + nubes_endpoint + версия провайдера 0.1.12
- протестировано: namespace sless-cdd874dfa31ba6ca создан автоматически
This commit is contained in:
“Naeel”
2026-03-11 07:51:06 +04:00
parent f41cd39b26
commit 5ae2ee7f85
4 changed files with 75 additions and 17 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ func main() {
S3: s3Client,
PG: pg,
Log: log,
}, cfg.APIToken, log)
}, log)
go func() {
addr := fmt.Sprintf(":%d", cfg.APIPort)