Repository navigation
Closed
Labels
Description
Friction
Two NetworkPolicies admit traffic from namespaces that do not exist, so they state an intent they do not enforce. portkey-perimeter admits port 8787 from namespace devops-cli, but the stack namespace is devops; the otel perimeter admits a namespace named ingress, but Traefik runs in kube-system. The Portkey peer is a leftover: v0.2.23 removed the same block from the gateway policy and missed this copy. No traffic is blocked today, because nothing in devops calls Portkey and its egress forbids 8787 anyway, but a future reader trusts the stated peers.
Evidence
Live, read-only, 2026-10-17:
- NetworkPolicy
llm/portkey-perimeter: an ingress peernamespaceSelector kubernetes.io/metadata.name=devops-clion TCP 8787, andpodSelector part-of=devops-cli-stackwith no namespaceSelector, which matches only pods inllm. It is the only policy selecting the Portkey pods (llm-default-perimeterexcludes portkey). ApplicationllmSynced at 3dd7fa6. - Namespaces: argocd, cloudflared, default, devops, kube-node-lease, kube-public, kube-system, llm, local-path-storage, logging, monitoring, otel, registry. No
devops-cli, noingress. - Deployment
llm/portkey1/1, Service ClusterIP 8787.
Repo:
k8s/llm/portkey/networkpolicy.yaml:19-26(the namespaceSelector at:21-23, comment at:19);k8s/otel/networkpolicy.yaml:22-24(kubernetes.io/metadata.name: ingress);k8s/namespaces.yamldeclaresdevops.k8s/devops/networkpolicy.yaml:25-33lets devops pods reachllmon TCP 4000 only.DEFAULT_PORTKEY_GATEWAY_CLUSTER_URL(src/devops_cli/config/defaults.py:90) is referenced nowhere else.- History: 838c0d7 (v0.2.21) copied the three-peer block into both the gateway and Portkey policies; ea49d6e (v0.2.23) removed it from
k8s/llm/gateway/networkpolicy.yamlonly.
Remedy
- Test first: every
kubernetes.io/metadata.namevalue in anamespaceSelectorunderk8s/names a namespace declared ink8s/namespaces.yamlor a built-in one (kube-system, default); it fails today on both files. - Delete the
devops-clipeer fromk8s/llm/portkey/networkpolicy.yaml:21-23and correct the comment at:19, as v0.2.23 did for the gateway. Only if a devops Job is meant to call Portkey does the peer becomedevops, with a matching llm:8787 egress rule ink8s/devops/networkpolicy.yaml; otherwise remove the unusedDEFAULT_PORTKEY_GATEWAY_CLUSTER_URL. - Drop the
ingresspeer fromk8s/otel/networkpolicy.yaml:22-24; the next peer already admits Traefik in kube-system.
Priority: P3. Severity low: policy accuracy, no exposure or outage.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate fixes incorrect network policy peers that do not enforce their stated intent.Low severity: policy accuracy, no exposure or outage.Improves correctness of network policies, which is valuable for security and maintainability.Simple removal of incorrect peer entries and correction of comments.chore(main): release 0.6.4 (#2303)