fix(tls): preserve early API rejection before forwarding upload bodies

This commit is contained in:
2026-11-22 19:16:23 +03:00
parent 37d40e4789
commit 2b6f99284d
3 changed files with 88 additions and 7 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
FROM library/golang:1.27.4-alpine@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS gateway
WORKDIR /source
COPY infra/tls/*.go ./
RUN CGO_ENABLED=0 GOMAXPROCS=2 go build -trimpath -ldflags="-s -w" -o /out/tls-gateway gateway.go
RUN CGO_ENABLED=0 GOMAXPROCS=2 go test -count=1 gateway.go gateway_test.go \
&& CGO_ENABLED=0 GOMAXPROCS=2 go build -trimpath -ldflags="-s -w" -o /out/tls-gateway gateway.go
FROM ghcr.io/astral-sh/uv:0.13.7@sha256:96f40d3904aad8d0bd010539001d36c8e2188b981e1334471a90c4a1d93bb490 AS uv
FROM python:3.14.7-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder