From e3fa9f945c1dfc37ace77bcaf178993e8584cd68 Mon Sep 17 00:00:00 2001 From: Bretton Date: Thu, 5 Feb 2026 23:35:59 -0800 Subject: [PATCH] chore(docker): update Go to 1.25 and add OAuth confidential client env vars Update the build image to Go 1.25 and add the missing environment variables for the OAuth confidential client feature added in c65da94. Changes: - Bump Go version from 1.24-alpine to 1.25-alpine in Dockerfile - Add OAUTH_CLIENT_PRIVATE_KEY and OAUTH_CLIENT_KEY_ID env vars to docker-compose.prod.yml with empty defaults for backward compatibility Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 2 +- docker-compose.prod.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 842dc53..5645972 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Builds a minimal production image for the Go server # Stage 1: Build -FROM golang:1.24-alpine AS builder +FROM golang:1.25-alpine AS builder # Install build dependencies RUN apk add --no-cache git ca-certificates tzdata diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 95a559c..3aa1fc0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -86,6 +86,11 @@ services: OAUTH_REDIRECT_URI: ${OAUTH_REDIRECT_URI} OAUTH_SEAL_SECRET: ${OAUTH_SEAL_SECRET} + # OAuth Confidential Client (optional - enables 1-year sessions instead of 14-day) + # Generate keys with: go run ./cmd/tools/generate-oauth-key + OAUTH_CLIENT_PRIVATE_KEY: ${OAUTH_CLIENT_PRIVATE_KEY:-} + OAUTH_CLIENT_KEY_ID: ${OAUTH_CLIENT_KEY_ID:-} + # Application settings PORT: 8080 ENV: production -- 2.51.2