This is an automated email from the ASF dual-hosted git repository.
Startrekzky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 50f84df50 fix: abort request context when apikey doesn't match (#9036)
50f84df50 is described below
commit 50f84df5013b9f5b2addd7f9cc5c77154a864cd4
Author: Klesh Wong <[email protected]>
AuthorDate: Fri Oct 30 15:27:40 2026 +0800
fix: abort request context when apikey doesn't match (#9036)
---
backend/server/api/middlewares.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/backend/server/api/middlewares.go
b/backend/server/api/middlewares.go
index b460c6764..d35210850 100644
--- a/backend/server/api/middlewares.go
+++ b/backend/server/api/middlewares.go
@@ -271,6 +271,7 @@ func CheckAuthorizationHeader(c *gin.Context, logger
log.Logger, db dal.Dal, api
return false
}
if !matched {
+ c.Abort()
c.JSON(http.StatusForbidden, &apiBody{
Success: false,
Message: "path doesn't match api key's scope",