2026-01-23 13:09:31: merge [main:63c694e2a33c8c0b025f62619d2814f536915e49];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
This commit is contained in:
1 parent
2f88738f78
commit
6a3abf67a2
6 files changed
+10
-4
No files matched your search
@@ -1,3 +1,5 @@
|
||||
### v5.7.0
|
||||
* Добавлено лог поле `applicationName` в логи `log request` и `bypassing unauthorized request because it has admin privilege`
|
||||
### v5.6.2
|
||||
* Обновлено заполнение заголовка `x-application-name` для поддержки кириллических символов
|
||||
### v5.6.1
|
||||
|
||||
@@ -10,7 +10,7 @@ require (
|
||||
github.com/redis/go-redis/v9 v9.11.0
|
||||
github.com/stretchr/testify v1.11.1
|
||||
github.com/tomakado/websocketproxy v0.1.0
|
||||
github.com/txix-open/isp-kit v1.64.4
|
||||
github.com/txix-open/isp-kit v1.64.7
|
||||
github.com/txix-open/jsonschema v1.3.0
|
||||
golang.org/x/net v0.47.0
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090
|
||||
|
||||
@@ -125,8 +125,10 @@ github.com/txix-open/etp/v4 v4.0.1 h1:5VSYgGsvnMz0tvUHsjVWFETI0qWBTCF1O3ARCHaCIg
|
||||
github.com/txix-open/etp/v4 v4.0.1/go.mod h1:FIu7TUDdwcgmtmF6tFTV1bGA2fRY/iVaPQdsGzvqYc8=
|
||||
github.com/txix-open/grmq v1.9.0 h1:ArDbJJcFX9zXKEcPf49rp9nYiRyGMJxGKJAxdbSsfaM=
|
||||
github.com/txix-open/grmq v1.9.0/go.mod h1:EyFOP17KrwEFOUjR+PH8iH3LCtiN9TSQ8t0ysyk62po=
|
||||
github.com/txix-open/isp-kit v1.64.4 h1:Z8YuaAhfJnvTdHAZB03GY5Kgnz7RyxWh1i3mALmj7A8=
|
||||
github.com/txix-open/isp-kit v1.64.4/go.mod h1:GvBsX5p2U3/ugK6PuWANYzSy/4YgawROm3eAKb35G6o=
|
||||
github.com/txix-open/isp-kit v1.64.6 h1:AXQ8/HQGG1VoJyiFvPqgPimPp5WJ4MrlWzPBxuxqhRs=
|
||||
github.com/txix-open/isp-kit v1.64.6/go.mod h1:GvBsX5p2U3/ugK6PuWANYzSy/4YgawROm3eAKb35G6o=
|
||||
github.com/txix-open/isp-kit v1.64.7 h1:gPSVDtmmpNqKJumZxEvnHYY1K1B54zFwHyBIaKo3y5A=
|
||||
github.com/txix-open/isp-kit v1.64.7/go.mod h1:GvBsX5p2U3/ugK6PuWANYzSy/4YgawROm3eAKb35G6o=
|
||||
github.com/txix-open/jsonschema v1.3.0 h1:XGuOTg22G7PdqfKypjajM20/i5FyGfFYsJKmheebKi4=
|
||||
github.com/txix-open/jsonschema v1.3.0/go.mod h1:l8YDZ1nvJrw6uxWowSVOxCV/ebiMJyapffW87ZEqH00=
|
||||
github.com/txix-open/validator/v10 v10.0.0-20250506161033-f8ce404fffdb h1:UJgT4u/QMv5QHKOQeJ7igShHa36c2/vIRqJiRLdDlf0=
|
||||
|
||||
@@ -31,6 +31,7 @@ func Authorize(authorizer Authorizer, logger log.Logger) Middleware {
|
||||
ctx.Context(),
|
||||
"bypassing unauthorized request because it has admin privilege",
|
||||
log.Int("applicationId", authData.ApplicationId),
|
||||
log.String("applicationName", authData.AppName),
|
||||
log.Int("adminId", ctx.AdminId()),
|
||||
)
|
||||
return next.Handle(ctx)
|
||||
|
||||
@@ -112,6 +112,7 @@ func Logger( // nolint:gocognit
|
||||
log.String("path", originalPath),
|
||||
log.String("endpoint", ctx.Endpoint()),
|
||||
log.Int("applicationId", authData.ApplicationId),
|
||||
log.String("applicationName", authData.AppName),
|
||||
log.Int("adminId", ctx.AdminId()),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user