<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cni on Ethan-ZYF</title><link>https://ethanzyf.com/tags/cni/</link><description>Recent content in Cni on Ethan-ZYF</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 19 May 2026 00:00:00 -0700</lastBuildDate><atom:link href="https://ethanzyf.com/tags/cni/index.xml" rel="self" type="application/rss+xml"/><item><title>Week2 Day 2: K8s security — NetworkPolicy + Secrets</title><link>https://ethanzyf.com/blog/week2-day2-networkpolicy-secrets/</link><pubDate>Tue, 19 May 2026 00:00:00 -0700</pubDate><guid>https://ethanzyf.com/blog/week2-day2-networkpolicy-secrets/</guid><description>&lt;p&gt;Hands-on with the network and secret-data layers of Kubernetes security: why the default flat network is a lateral-movement risk, the deeply counterintuitive &amp;ldquo;selective activation&amp;rdquo; model of NetworkPolicy (one allow rule silently flips a pod to default-deny), why Ingress and Egress are independent dimensions (and why locking egress breaks DNS), the YAML trap where a single &lt;code&gt;-&lt;/code&gt; flips AND into OR, why NetworkPolicy needs a CNI that actually enforces it (kindnet doesn&amp;rsquo;t — another fail-open), and the truth about Secrets: they&amp;rsquo;re base64, not encrypted — RBAC is what protects them — plus the atomic-symlink-swap trick that powers volume-mounted secret rotation.&lt;/p&gt;</description></item></channel></rss>