feat(netstat): wire portsAttributes into port forwarding watcher#202
Conversation
The netstat Watcher now consults portsAttributes when deciding whether to forward discovered ports. The Forwarder interface accepts a PortForwardAttribute struct carrying label, protocol, and onAutoForward metadata so downstream forwarders can log and act on port-specific config.
✅ Deploy Preview for devsydev canceled.
|
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
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. Review rate limit: 0/1 reviews remaining, refill in 13 minutes and 20 seconds.Comment |
Summary
Enhances the netstat
Watcherto consult devcontainerportsAttributeswhen deciding forwarding behavior. TheForwarderinterface now accepts aPortForwardAttributestruct (label, protocol, onAutoForward) so forwarders can log metadata and enforce per-port policy.PortForwardAttributestruct andWithPortAttributesoption topkg/netstat/watcher.goForwarderinterface:Forward(port string, attr PortForwardAttribute) errorcredentials_server.go) now usesWithPortAttributesresolver instead of binaryPortFilterpkg/tunnel/forwarder.go) updated to satisfy new interfaceotherPortsAttributesnotify-policy coverage