Handle missing SECRET in auth flow
Lint / Lint (push) Successful in 44s
Tests / Go backend (push) Successful in 39s
Docker / Docker Build & Push (push) Successful in 3m30s
Tests / Dashboard checks (push) Successful in 46s

This commit is contained in:
Gabriel20xx committed 2026-09-15 23:27:42 +02:00
1 parent 07e25a3cf3
commit eb67f251d8
4 files changed
+43 -7

No files matched your search

+1
View File
@@ -117,6 +117,7 @@ func newAuthService(database *DB, authGuardURL string, secureCookies bool, authD
if authDisabled {
opts = append(opts, sharedauth.Disabled())
}
opts = append(opts, sharedauth.RequireSecret())
return sharedauth.NewWithStore(collabTableAuthStore{db: database}, legacySessionCookieName, secureCookies, authGuardURL, "collabtable", opts...)
}
-4
View File
@@ -45,10 +45,6 @@ func main() {
os.Exit(1)
}
internalServiceSecret := strings.TrimSpace(os.Getenv("SECRET"))
if internalServiceSecret == "" {
fmt.Fprintln(os.Stderr, "SECRET environment variable is required")
os.Exit(1)
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()