Skip to content

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

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

1 commit merged into
mainfrom
chore/standardize-build-and-quality

Conversation

@ghost

@ghost ghost commented Jul 20, 2026

Copy link
Copy Markdown

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)
@ghost
ghost merged commit fd7cd97 into main Jul 20, 2026
2 checks passed
@ghost
ghost deleted the chore/standardize-build-and-quality branch July 21, 2026 00:20
This pull request was closed.
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