Skip to content

Release v0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Mar 21:46
· 11 commits to main since this release

What's changed

Added

  • SAP AI Core upstream support — routes requests to a configurable SAP AI Core base URL; resource group forwarded via AI-Resource-Group header
  • Router struct encapsulating upstream detection logic; NewRouter(sapBaseURL, sapAuthHost) constructor replaces the previous package-level DetectUpstream function
  • Request body capture with configurable scrubbing pipeline (AUDIT_CAPTURE_REQUESTS, AUDIT_SCRUB_PATTERNS)
  • PatternScrubber — compiles Go regexp patterns at startup, replaces matches with [REDACTED] before storage
  • user_messages field: structured, queryable extraction of user-role message content from request bodies
  • request_captured field: boolean flag per audit row indicating whether request body was stored
  • Migration 003_request_capture.sql adding the two new columns to existing installations
  • Dockerfile — multi-stage build (golang:1.25-alpine → gcr.io/distroless/static:nonroot), fully static binary, non-root runtime
  • docker-compose.yml — local development stack with ClickHouse; migrations auto-applied on first start
  • GitHub Actions CI workflow — go vet, go test -race, build verification, multi-arch Docker build check on every push and PR
  • GitHub Actions release workflow — multi-arch Docker image pushed to GHCR, static binaries for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, auto-generated changelog, GitHub Release with SHA-256 checksums

Fixed

  • handler_test.go — updated two NewHandler call sites to pass the required *Router argument introduced by the SAP AI Core feature
  • router_test.go — updated all DetectUpstream calls to use defaultRouter.DetectUpstream() following the promotion of DetectUpstream from a package-level function to a *Router method