Harden temp file creation for cert writes #42
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
nagonag
nagonag/ignore
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/cert-proxy!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-35-oexcl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hardens cert-proxy-client temp file handling against symlink injection, predictability-based DoS, and umask exposure.
Fixes #35 (symlink-following and concurrent-run collision).
Core Fix
Security Hardening (from multi-reviewer security audit)
Umask Protection
NFS Incompatibility
Error Recovery
Deployment Documentation
Test Coverage Improvements
Quality Assurance
✅ All tests pass (37+ test cases)
✅ Linting clean (golangci-lint, gofmt)
✅ Security audit passed (symlink injection fixed, no new vulnerabilities)
✅ Code quality approved (comprehensive tests, idiomatic error handling)
✅ Architecture sound (backward compatible intentional security changes, extensible)
✅ Documentation complete (README section, code comments, deployment guidance)
Known Residual Risks (separate follow-up issues)
Commits
3fe5bba: Core O_EXCL fix + initial regression tests528f1bf: NFS warning, orphaned cleanup, umask check, enhanced symlink teste5a58b8: Active umask hardening, deployment docs, cleanup test, Rename behavior test340f6dc: Fix wsl_v5 whitespace violations (linting clean)