Skip to content

Add network policy examples to restrict executors to needed frontend port - #875

Merged
marcleblanc2 merged 1 commit into
mainfrom
marc/add-network-policy
Sep 15, 2026
Merged

marcleblanc2 merged 1 commit into
mainfrom
marc/add-network-policy

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Add network policy examples which limit Executor and Executor job pods to the Sourcegraph frontend API

Checklist

Test plan

  • helm template with the override renders both NetworkPolicy resources; helm lint and helm unittest pass
  • Native policy tested on test cluster
  • k8s Cilium policy tested with a customer on Cilium; native policy did not take effect on their cluster

@marcleblanc2 marcleblanc2 changed the title Add network policy Add network policy example Jun 3, 2026
@marcleblanc2
marcleblanc2 marked this pull request as draft June 3, 2026 05:56
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch from a7416f9 to 8e46e96 Compare June 3, 2026 06:28
@marcleblanc2 marcleblanc2 changed the title Add network policy example Add network policies Jun 3, 2026
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch from 486feb3 to 49bbc06 Compare September 15, 2026 20:26
@marcleblanc2 marcleblanc2 changed the title Add network policies Add network policy examples to block Executors from Sourcegraph backend pods Sep 15, 2026
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch 2 times, most recently from dc19633 to 8f2d2fe Compare September 15, 2026 20:41
@marcleblanc2
marcleblanc2 marked this pull request as ready for review September 15, 2026 20:41
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 15, 2026 20:42
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch from 8f2d2fe to 07cccf1 Compare September 15, 2026 20:44
@marcleblanc2 marcleblanc2 changed the title Add network policy examples to block Executors from Sourcegraph backend pods Add network policy examples to limit Executors to the Sourcegraph frontend API Sep 15, 2026
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 15, 2026 20:44
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch from 07cccf1 to 2f54a5c Compare September 15, 2026 20:44
…ntend API

- charts/sourcegraph/examples/network-policy: native NetworkPolicy via
  extraResources, applied to the Sourcegraph release
- charts/sourcegraph-executor/{k8s,dind}/examples/network-policy: deny-only
  CiliumNetworkPolicy for Executor and job pods, for clusters where the
  native policy does not take effect

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0a69d-e365-72ec-8faf-857772c6a2f7
@marcleblanc2
marcleblanc2 force-pushed the marc/add-network-policy branch from 2f54a5c to e345582 Compare September 15, 2026 20:45
@marcleblanc2 marcleblanc2 changed the title Add network policy examples to limit Executors to the Sourcegraph frontend API Add network policy examples to restrict executors to needed frontend port Sep 15, 2026
@marcleblanc2
marcleblanc2 requested a review from a team September 15, 2026 20:47
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 15, 2026 20:51
@marcleblanc2
marcleblanc2 merged commit 1f8179a into main Sep 15, 2026
5 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/add-network-policy branch September 15, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants