Skip to content

fix: code review fixes — .dockerignore, -trimpath, -race, rand.Read error handling - #5

Merged
relentlessworks[bot] merged 1 commit into
mainfrom
chore/standardize-build-and-quality
Jul 20, 2026
Merged

fix: code review fixes — .dockerignore, -trimpath, -race, rand.Read error handling#5
relentlessworks[bot] merged 1 commit into
mainfrom
chore/standardize-build-and-quality

Conversation

@relentlessworks

Copy link
Copy Markdown
Contributor

Summary

Code review fixes addressing build quality, security, and correctness:

Changes

  • .dockerignore: Added to reduce Docker build context size (excludes .git, *.db, build artifacts, etc.)
  • -trimpath: Added to Makefile build target and Dockerfile for reproducible builds (removes absolute paths from binary)
  • -count=1 -race: Added to Makefile test target for race detector coverage
  • rand.Read error handling: All crypto/rand.Read calls in internal/auth/auth.go now properly check and handle errors (in New(), GenerateToken(), GenerateOTP(), GenerateHandle())
  • .gitignore: Added entries for build artifacts

Testing

  • go vet ./... passes ✅
  • go test ./... passes ✅

… handling

- Add .dockerignore to reduce Docker build context
- Add -trimpath to Makefile build and Dockerfile for reproducible builds
- Add -count=1 -race to Makefile test target
- Handle crypto/rand.Read errors in auth package (New, GenerateToken, GenerateOTP, GenerateHandle)
- Add .gitignore entries for build artifacts
@relentlessworks
relentlessworks Bot merged commit 378750b into main Jul 20, 2026
2 checks passed
@relentlessworks
relentlessworks Bot deleted the chore/standardize-build-and-quality branch July 20, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants