Skip to content

fix: code review fixes — .dockerignore, rand.Read error handling - #1

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

fix: code review fixes — .dockerignore, rand.Read error handling#1
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 and security:

Changes

  • .dockerignore: Added to reduce Docker build context size (excludes .git, *.db, build artifacts, etc.)
  • 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())

Testing

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

- Add .dockerignore to reduce Docker build context
- Handle crypto/rand.Read errors in auth package (New, GenerateToken, GenerateOTP, GenerateHandle)
@relentlessworks
relentlessworks Bot merged commit fd7cd97 into main Jul 20, 2026
2 checks passed
@relentlessworks
relentlessworks Bot deleted the chore/standardize-build-and-quality branch July 21, 2026 00:20
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