2026-01-14 11:52:30: merge [main:1a274e79e588612933ce36c33b236a91fc74db9a];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s

This commit is contained in:
txix committed 2026-01-14 11:52:30 +03:00
1 parent a841cd082b
commit a637d56ea7
7 files changed
+26 -20

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ func (p Grpc) Handle(ctx *request.Context) error {
md[grpc.DomainIdHeader] = []string{strconv.Itoa(authData.DomainId)}
md[grpc.ServiceIdHeader] = []string{strconv.Itoa(authData.ServiceId)}
md[grpc.ApplicationIdHeader] = []string{strconv.Itoa(authData.ApplicationId)}
md[grpc.ApplicationNameHeader] = []string{authData.AppName}
if ctx.IsAdminAuthenticated() {
md[xAdminIdHeader] = []string{strconv.Itoa(ctx.AdminId())}
}
+1
View File
@@ -100,6 +100,7 @@ func setHttpHeaders(ctx *request.Context, header http.Header, skipAuth bool) err
header.Set(grpc.DomainIdHeader, strconv.Itoa(authData.DomainId))
header.Set(grpc.ServiceIdHeader, strconv.Itoa(authData.ServiceId))
header.Set(grpc.ApplicationIdHeader, strconv.Itoa(authData.ApplicationId))
header.Set(grpc.ApplicationNameHeader, authData.AppName) //nolint:canonicalheader
if ctx.IsAdminAuthenticated() {
header.Set(xAdminIdHeader, strconv.Itoa(ctx.AdminId())) //nolint:canonicalheader
} else {