Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Notable changes to ktms-admin. The format follows

## [Unreleased]

### Security
- The image is built on Alpine 3.23 with `ca-certificates` 20261020 or newer, which no longer
trusts the eMudhra intermediates whose keys leaked in October 2026, and with Go 1.27.3.

## [1.1.0] - 2026-10-24

### Added
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.26-alpine AS builder
FROM golang:1.27.3-alpine3.23 AS builder
ARG TARGETOS=linux
ARG TARGETARCH
WORKDIR /app
Expand All @@ -8,9 +8,10 @@ COPY . .
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags="-s -w" -o /out/ktms-admin ./cmd/ktms-admin

FROM alpine:3.21
# CA certificates are needed to reach identity providers for sign-in.
RUN apk add --no-cache ca-certificates && adduser -D -u 10001 appuser
FROM alpine:3.23
# CA certificates are needed to reach identity providers for sign-in; 20261020 distrusts the
# eMudhra intermediates whose keys leaked.
RUN apk add --no-cache 'ca-certificates>=20261020-r0' && adduser -D -u 10001 appuser
COPY --from=builder /out/ktms-admin /ktms-admin
USER appuser
EXPOSE 8080
Expand Down
Loading