Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Remvoe the obsolete acl check for webhook endpoint
天舟fdbda29f5ed1
diff --git a/server/acl.go b/server/acl.goindex f31ac5a5af..1fe6a73bad 100644--- a/server/acl.go+++ b/server/acl.go@@ -25,8 +25,8 @@ func GetRoleContextKey() string {func ACLMiddleware(l *zap.Logger, s *Server, ce *casbin.Enforcer, next echo.HandlerFunc) echo.HandlerFunc {return func(c echo.Context) error {- // Skips auth, webhook end point- if strings.HasPrefix(c.Path(), "/api/auth") || strings.HasPrefix(c.Path(), "/hook") {+ // Skips auth+ if strings.HasPrefix(c.Path(), "/api/auth") {return next(c)}diff --git a/server/jwt.go b/server/jwt.goindex 1f7932c71c..38cc68d21c 100644--- a/server/jwt.go+++ b/server/jwt.go@@ -144,7 +144,7 @@ func setUserCookie(c echo.Context, user *api.Principal, expiration time.Time) {// will try to generate new access token and refresh token.func JWTMiddleware(l *zap.Logger, p api.PrincipalService, next echo.HandlerFunc, mode string, secret string) echo.HandlerFunc {return func(c echo.Context) error {- // Skips auth, webhook end point+ // Skips authif strings.HasPrefix(c.Path(), "/api/auth") {return next(c)}