aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/swift/main.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-05 21:17:56 +0900
committernsfisis <nsfisis@gmail.com>2025-09-05 21:17:56 +0900
commit3022b45715b9aabb6f54e5e19429c6b06abc1afd (patch)
treecf4bb59325e44ee68400fb52e2e1fd5042a437a0 /worker/swift/main.go
parent2fb0b6516b9731ca832a31f6b31515f4eb056cb1 (diff)
downloadiosdc-japan-2025-albatross-3022b45715b9aabb6f54e5e19429c6b06abc1afd.tar.gz
iosdc-japan-2025-albatross-3022b45715b9aabb6f54e5e19429c6b06abc1afd.tar.zst
iosdc-japan-2025-albatross-3022b45715b9aabb6f54e5e19429c6b06abc1afd.zip
feat(worker-swift): remove JWT authentication
Diffstat (limited to 'worker/swift/main.go')
-rw-r--r--worker/swift/main.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/worker/swift/main.go b/worker/swift/main.go
index ac65305..02a0a6a 100644
--- a/worker/swift/main.go
+++ b/worker/swift/main.go
@@ -3,19 +3,12 @@ package main
import (
"log"
"net/http"
- "os"
- echojwt "github.com/labstack/echo-jwt/v4"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
func main() {
- jwtSecret := os.Getenv("ALBATROSS_JWT_SECRET")
- if jwtSecret == "" {
- log.Fatal("ALBATROSS_JWT_SECRET is not set")
- }
-
if err := prepareDirectories(); err != nil {
log.Fatal(err)
}
@@ -25,10 +18,6 @@ func main() {
e.Use(middleware.Logger())
e.Use(middleware.Recover())
- e.Use(echojwt.WithConfig(echojwt.Config{
- SigningKey: []byte(jwtSecret),
- }))
-
e.POST("/api/swiftc", handleSwiftCompile)
e.POST("/api/wasmc", handleWasmCompile)
e.POST("/api/testrun", handleTestRun)