Conversation
Replaced Alpine-based scratch image with Google Distroless (Debian 13 Trixie) for improved security posture and reduced attack surface. Implemented comprehensive multi-architecture build support (linux/amd64, linux/arm64) with cross-compilation via Docker buildx. Key Security Enhancements: - Non-root user execution (UID 65532) - BREAKING CHANGE from v0.9.0 root user - SHA256 digest pinning for immutable base image (prevents supply chain attacks) - Read-only filesystem support with static binary (no runtime dependencies) - No shell, package manager, or system utilities (minimal attack surface) - Comprehensive OCI labels for SBOM generation and security scanning Build System Improvements: - Build-time version injection via ldflags (VERSION, BUILD_DATE, COMMIT_SHA) - Multi-stage build with dependency layer caching optimization - BUILDPLATFORM/TARGETPLATFORM support for native cross-compilation - Explicit CGO_ENABLED=0 for fully static binary Documentation Additions: - Inline Dockerfile comments explaining each stage and security decision - Health check documentation (HTTP probes vs HEALTHCHECK limitations) - Runtime security notes for production deployments - Usage examples for different commands (server, migrate, create-kek) Breaking Change: Volume permissions may require adjustment when upgrading from v0.9.0 due to non-root user switch. See docs/operations/troubleshooting/volume-permissions.md for migration guide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced Alpine-based scratch image with Google Distroless (Debian 13 Trixie) for improved security posture and reduced attack surface. Implemented comprehensive multi-architecture build support (linux/amd64, linux/arm64) with cross-compilation via Docker buildx.
Key Security Enhancements:
Build System Improvements:
Documentation Additions:
Breaking Change: Volume permissions may require adjustment when upgrading from v0.9.0 due to non-root user switch. See docs/operations/troubleshooting/volume-permissions.md for migration guide.