Skip to content

Commit 4ab5cc5

Browse files
Revert "fix(k8s): Locking down networking"
1 parent c43da3f commit 4ab5cc5

2 files changed

Lines changed: 1 addition & 27 deletions

File tree

kubernetes/code-interpreter/templates/networkpolicy.yaml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,4 @@ spec:
1919
egress:
2020
{{- toYaml . | nindent 4 }}
2121
{{- end }}
22-
---
23-
# NetworkPolicy for ephemeral executor pods spawned by the code-interpreter.
24-
# These pods run user-submitted code and must be fully network-isolated
25-
# to prevent data exfiltration and SSRF attacks.
26-
apiVersion: networking.k8s.io/v1
27-
kind: NetworkPolicy
28-
metadata:
29-
name: {{ include "code-interpreter.fullname" . }}-executor
30-
labels:
31-
{{- include "code-interpreter.labels" . | nindent 4 }}
32-
spec:
33-
podSelector:
34-
matchLabels:
35-
app: code-interpreter
36-
component: executor
37-
policyTypes:
38-
- Ingress
39-
- Egress
40-
ingress:
41-
# Allow exec connections from the code-interpreter service pod
42-
- from:
43-
- podSelector:
44-
matchLabels:
45-
{{- include "code-interpreter.selectorLabels" . | nindent 14 }}
46-
egress: []
47-
# Deny all egress — executor pods must not have network access
4822
{{- end }}

kubernetes/code-interpreter/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ readinessProbe:
164164

165165
# Network Policy
166166
networkPolicy:
167-
enabled: true
167+
enabled: false
168168
policyTypes:
169169
- Ingress
170170
- Egress

0 commit comments

Comments
 (0)