Run pods have open egress for a moment at start on eventually-consistent NetworkPolicy enforcement
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start with the run pod setup, the admission policy that rejects init containers, and the existing run-isolation kind test that records startup_race; the issue does not name their file paths. Compare the proposed gate with both isolated and scanner policies, then run the kind leg and check that user code cannot reach the canary at t = 0. Done means enforcement is observed before user code starts, or the run fails as lost with a namespace detail when the bound expires.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Queue: K (process compute). Found by K-6's kind leg (#14).
Problem
On a CNI whose NetworkPolicy enforcement for a new pod is eventually consistent, a run pod has open egress for a short time after it starts, even with stac-higher-runs-default-deny in place.
Measured on kind v0.33.0 (kindnet / kube-network-policies), Kubernetes 1.34: a run pod connected to the node metadata address, the API server and an external host at t = 0; the first blocked connection came about 0.5 s after start; from then on all three stayed blocked. Connections opened inside the window are not re-checked. The AWS VPC CNI documents the same behaviour in its default standard enforcing mode (strict mode starts pods default-deny).
Untrusted run code therefore gets a sub-second window in which it can reach the metadata endpoint or exfiltrate, on any cluster that is not in a strict enforcing mode. The executor's fail-closed check (K-5) proves the policy object exists, not that it is enforced yet for this pod.
Options
- Require strict enforcement as a cluster prerequisite (chart README, R-11 live check). Documentation only; nothing proves it per run.
- A start gate in the run pod: a platform init container (the runtime image, by digest) that waits until a canary connection is observed blocked, then exits; user code starts only after that. Init containers share the pod's network identity, so once the gate sees the block the policy applies to the pod. If the block never comes within a bound, the run is
lostwith a detail naming the namespace: a per-run proof of enforcement, which also closes the "object exists, not enforced" residual (I-183). Needs: a canary that is reachable without a policy and blocked under both theisolatedandscannerpolicies; the admission policy's no-init-containers rule relaxed to exactly this container; a kind test that user code observes no reachable target at its own t = 0. - Both.
Notes
- No migration expected.
- The kind leg records the window (
run-isolationobservation,startup_race) and asserts only the settled state; a gate would let it assert t = 0 as well.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 8h 26m
- PR unite (30g)
- 47
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TechTraverse/stac-higher
-
ci
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
TechTraverse/stac-higher#261 ·
I maintainer di solito rispondono entro 1 giorno
-
ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TechTraverse/stac-higher#258 ·
I maintainer di solito rispondono entro 1 giorno
-
Error messages hide the server's reason: users see only '400 Bad Request'Forse già presa @aman-code-io l’ha presa 3 giorni fa. Apertabug good first issue ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
TechTraverse/stac-higher#232 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TechTraverse/stac-higher#225 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TechTraverse/stac-higher#216 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TechTraverse/stac-higher
Issue simili
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
JTHCode/secretguard#24 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 ·
I maintainer di solito rispondono entro 1 giorno