aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/swift
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
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')
-rw-r--r--worker/swift/go.mod2
-rw-r--r--worker/swift/go.sum4
-rw-r--r--worker/swift/main.go11
3 files changed, 0 insertions, 17 deletions
diff --git a/worker/swift/go.mod b/worker/swift/go.mod
index b8e6c4e..8fb503b 100644
--- a/worker/swift/go.mod
+++ b/worker/swift/go.mod
@@ -4,7 +4,6 @@ go 1.23.6
require (
github.com/golangci/golangci-lint v1.64.6
- github.com/labstack/echo-jwt/v4 v4.2.0
github.com/labstack/echo/v4 v4.13.3
)
@@ -66,7 +65,6 @@ require (
github.com/go-xmlfmt/xmlfmt v1.1.3 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gofrs/flock v0.12.1 // indirect
- github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect
github.com/golangci/go-printf-func-name v0.1.0 // indirect
diff --git a/worker/swift/go.sum b/worker/swift/go.sum
index 1058ba4..5c66164 100644
--- a/worker/swift/go.sum
+++ b/worker/swift/go.sum
@@ -200,8 +200,6 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA
github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E=
github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/golang-jwt/jwt/v5 v5.0.0 h1:1n1XNM9hk7O9mnQoNBGolZvzebBQ7p93ULHRc28XJUE=
-github.com/golang-jwt/jwt/v5 v5.0.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@@ -349,8 +347,6 @@ github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs=
github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I=
github.com/kunwardeep/paralleltest v1.0.10 h1:wrodoaKYzS2mdNVnc4/w31YaXFtsc21PCTdvWJ/lDDs=
github.com/kunwardeep/paralleltest v1.0.10/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY=
-github.com/labstack/echo-jwt/v4 v4.2.0 h1:odSISV9JgcSCuhgQSV/6Io3i7nUmfM/QkBeR5GVJj5c=
-github.com/labstack/echo-jwt/v4 v4.2.0/go.mod h1:MA2RqdXdEn4/uEglx0HcUOgQSyBaTh5JcaHIan3biwU=
github.com/labstack/echo/v4 v4.13.3 h1:pwhpCPrTl5qry5HRdM5FwdXnhXSLSY+WE+YQSeCaafY=
github.com/labstack/echo/v4 v4.13.3/go.mod h1:o90YNEeQWjDozo584l7AwhJMHN0bOC4tAfg+Xox9q5g=
github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0=
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)