Update build configuration and improve token handling
Build and Test / verify (push) Failing after 1m22s

- Change CI container image to debian:trixie-slim and set GOPROXY.
- Update Go version to 1.26 in Dockerfile and go.mod.
- Refactor token validation to use SHA-256 hashes instead of plain tokens.
- Add network policy to restrict access to the service.
- Enhance README with new configuration details and usage examples.
- Add tests for new token hash validation logic.
This commit is contained in:
2026-07-11 22:08:56 +02:00
parent ea4aac6641
commit 1acdbb5519
8 changed files with 195 additions and 57 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
ARG GO_VERSION=1.24
ARG GO_VERSION=1.26
ARG GOPROXY_URL=https://gitea.nehmer.net/api/packages/torben/go,https://proxy.golang.org,direct
FROM golang:${GO_VERSION}-bookworm AS build
WORKDIR /src
ENV GOPROXY=${GOPROXY_URL}
COPY go.mod ./
RUN go mod download