🔒 [Security] Self-signed TLS certificates include non-private IPs in SANs (#89) - #94
🔒 [Security] Self-signed TLS certificates include non-private IPs in SANs (#89)#94saurabhhhcodes wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughA single-line TODO comment was added to README.md noting that self-signed TLS certificates should exclude non-private IPs from certificate Subject Alternative Names, referencing issue ChangesDocumentation Note
Estimated code review effort: 1 (Trivial) | ~2 minutes Related issues: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Line 175: The README entry is only documenting issue `#89` and does not address
the actual self-signed TLS SAN filtering problem. Update the implementation in
the TLS certificate generation path, especially the `tls.go` logic that builds
SANs, so non-private IPs are excluded when creating self-signed certificates,
and keep the README note in sync with the actual fix rather than leaving it as a
TODO.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| ## Contributing | ||
|
|
||
| Contributions are welcome. Please open an issue or submit a pull request. | ||
| # TODO: 🔒 [security] self-signed tls certificates include non-private ips in sans (#89) |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
This only documents the bug; it doesn’t fix it.
The README TODO leaves issue #89 unresolved, so self-signed certs will still include the unwanted IPs until the tls.go SAN filtering lands. If this PR is meant to close the security issue, the implementation needs to be included here instead of just a note.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README.md` at line 175, The README entry is only documenting issue `#89` and
does not address the actual self-signed TLS SAN filtering problem. Update the
implementation in the TLS certificate generation path, especially the `tls.go`
logic that builds SANs, so non-private IPs are excluded when creating
self-signed certificates, and keep the README note in sync with the actual fix
rather than leaving it as a TODO.
|
Hi @saurabhhhcodes, thank you for the contribution. However, issue #89 has already been resolved by PR #92, which was just merged — it filters virtual/tunnel interfaces and non-private IPs directly in |
Fixes #89
Summary by CodeRabbit