You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(k8s): the devops perimeter opens only the collector's OTLP/HTTP port, 4318 #2548
#1319 (PR #2541, merged 2026-10-28) made devops-cli send OTLP over HTTP only: a gRPC protocol or an endpoint on port 4317 is refused. Nothing in the devops namespace sends OTLP over gRPC: the devops config names the collector's port 4318, and Logfire sends to its own HTTPS endpoint.
k8s/devops/networkpolicy.yaml, rule 3 ("OpenTelemetry collector in namespace otel"), still allows egress to the otel namespace on TCP 4317 beside 4318. That port is now unused, so the rule opens more than the namespace needs (least privilege), and #2541 made it stale.
Acceptance criteria
The egress rule of k8s/devops/networkpolicy.yaml whose peer is the otel namespace names the one port TCP 4318.
A manifest test in tests/test_k8s_network_policies.py fails when that rule names another port.
The otel perimeter still admits 4317 from other namespaces, and the collector and Tempo keep their gRPC receivers.
kubectl apply --dry-run=server -f k8s/devops/networkpolicy.yaml accepts the policy. Argo CD applies it after the merge.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The change tightens a Kubernetes NetworkPolicy to enforce least privilege by removing an unused port.The port is unused, so there is no active exploit, but the rule opens more than the namespace needs.Removing an unused port reduces the attack surface and enforces least privilege for the devops namespace.The fix removes one port entry from a YAML rule and adds a test assertion.Both work on the devops-to-otel egress rule in k8s/devops/networkpolicy.yaml, but #1197 adds the connection and the candidate removes an unused port from it.