{"id":1061,"date":"2026-11-14T14:15:00","date_gmt":"2026-11-14T14:15:00","guid":{"rendered":"https:\/\/bestpilotsnow.com\/blog\/?p=1061"},"modified":"2026-11-15T08:15:00","modified_gmt":"2026-11-15T08:15:00","slug":"kubernetessecops-hangar-story","status":"publish","type":"post","link":"https:\/\/bestpilotsnow.com\/blog\/kubernetessecops-hangar-story\/","title":{"rendered":"A Flight Academy&#8217;s First Week With KubernetesSecOps"},"content":{"rendered":"<p>The team below is imaginary, a composite character set that mirrors no actual company. A regional flight academy runs its booking, aircraft-status and maintenance-tracking applications on a small Kubernetes cluster. The two-person technology team there has never had an incident, and that is exactly why they decide to look at KubernetesSecOps: the quiet years are when nobody has tested the locks.<\/p>\n<h2>Monday: a short inventory and an uncomfortable discovery<\/h2>\n<p>The team lead opens a notebook and writes four headings, borrowed from the Ops Atlas entry that defines the practice: who changes the cluster, what runs, what talks, and how secrets and alarms are handled. Under the first heading she lists every account with write access. The count is higher than she expected, and one of them belongs to the scheduling vendor&#8217;s deployment job, which holds administrator rights across the cluster.<\/p>\n<p>The Atlas describes this pattern as a named anti-pattern, full administrator rights for automation. She does not rip the account out. She writes the narrowest role she can that still lets the job update its own namespace, tests it on a copy of the app, and swaps it in on Wednesday during a quiet window. A pre-flight analogy comes naturally: you do not remove a checklist item because it is inconvenient, you make it fit the aircraft.<\/p>\n<h2>Tuesday: reading the aircraft-status secrets<\/h2>\n<p>The second discovery is smaller but sharper. The maintenance-tracking application keeps its database password as a cluster secret, and the secrets are stored in the cluster&#8217;s datastore without encryption, which is the starting position the Atlas describes for Kubernetes. Reading the entry more closely, she notes that encoding a value as base64 is not encryption, and that the current approach for protecting stored secrets uses an external key service through the version 2 interface.<\/p>\n<p>She cannot change the storage layer that day, so she records it as a ticket and focuses on the cheaper win: tightening who can list secrets at all. The more important gain, she realizes, is that secrets stay readable to anyone who holds a role with the list or watch permission, whatever the encryption says.<\/p>\n<h2>Wednesday: the first guardrails go in as warnings<\/h2>\n<p>The academy&#8217;s applications include an older reporting container that runs as the machine administrator. Instead of blocking it, the team switches the Baseline pod-security profile to warn mode across all namespaces and announces a date, two weeks ahead, when it becomes mandatory. This follows the staged path the Atlas recommends: record, warn, then enforce, with a register of exceptions that expire.<\/p>\n<p>Within a day the warnings show the reporting container and two others. The vendor agrees to ship a fix. The team writes an exception for one of them with a thirty-day expiry and a named owner. That owner, in the maintenance world, would be the person who signs a deferred defect, and the date works the same way: the item returns to the list whether anyone remembers it or not. Their approach echoes our guide to <a href=\"https:\/\/bestpilotsnow.com\/blog\/light-aircraft-safety-checks-every-pilot-should-know\/\">the safety checks a light-aircraft pilot runs before flight<\/a>, where small, repeated inspections prevent large surprises.<\/p>\n<h2>Thursday: closing the corridors<\/h2>\n<p>The network is the next topic. Without a policy, any program in the cluster can reach any other, so the public booking site could in principle talk straight to the maintenance database. The team picks one namespace, applies a rule that denies all traffic, and then opens only what the app needs: web front end to API, API to database. They restart the pods afterward, because the Atlas cautions that sessions opened before the rule took effect can survive it, a detail the network plugin controls.<\/p>\n<p>The team lead also reads the caution that a network policy cannot be used to isolate a suspicious pod, since the rules only add allowances. If a pod ever misbehaves, the plan will be to change its label so it falls out of the groups the allow rules select. She writes that down in the response notes as a single sentence.<\/p>\n<h2>Friday: the record and the rehearsal<\/h2>\n<p>Because the cluster is run by the academy itself, no audit policy file exists, and so no audit log. On Friday morning the team writes one. The Atlas gives two tips for the file: whichever rule matches first decides the outcome, and Secrets and ConfigMaps belong in the log at metadata depth only. They send the output to central storage and set a retention period.<\/p>\n<p>In the afternoon the pair run a thirty-minute tabletop exercise: a vendor token is reported leaked. They talk through revoking it, preserving the relevant pod for later examination rather than deleting it, and checking what the token could reach. The entry makes the point that deleting a pod destroys evidence and leaves issued tokens valid, so a human decision belongs in that step. Hangar crews will recognize the instinct to tag and quarantine a suspect part rather than discard it.<\/p>\n<h2>An aside on what the team chose not to do<\/h2>\n<p>It is worth noting the temptations they resisted. They did not switch on every sample policy they found online, since the Atlas lists enabling all examples in enforce mode as a way to break production quickly. They did not blanket their admission webhooks with a setting that ignores failures, because that turns each guardrail into a suggestion on a bad day. And they did not try to block every image that a scanner flagged, a move the entry also warns against.<\/p>\n<p>Restraint of this kind rarely makes headlines in a story, yet it is most of the craft. A short list of rules that are actually enforced beats a long list that people route around, and the team&#8217;s notebook says so on its first page.<\/p>\n<h2>What the story shows about maturity<\/h2>\n<p>At the end of the week the academy has moved from level zero to roughly level one on the Atlas&#8217;s five-step scale: sign-in and audit logging exist, baseline checks are in warning mode and an exception register is started. Level two would require enforcement of the baseline across at least nine in ten workload namespaces, default-deny networking, encryption and a working exception process. Levels three and four add verified signatures, tuned detection and two consecutive quarters of passed drills.<\/p>\n<p>The team also schedules recurring reviews: alerts and rejections weekly, exceptions monthly and role assignments each quarter. For the maintenance side of the house, their planning habits resemble those in <a href=\"https:\/\/bestpilotsnow.com\/blog\/turbine-aircraft-maintenance-planning-tips-for-operators\/\">this note on planning turbine maintenance for operators<\/a>, where a calendar outlives anyone&#8217;s memory.<\/p>\n<h2>Where to read the source<\/h2>\n<p>The story borrows its vocabulary and sequence from <a href=\"https:\/\/www.xopsschool.com\/kubernetessecops\/\">the Atlas article describing KubernetesSecOps<\/a>. That entry is explicit about its limits: the term is an informal label, the credential in this field is a separate exam, and scanners and survey numbers should be read with care. None of the academy&#8217;s choices in this sketch are recommendations for a specific system, and any real team should check its own configuration and documentation.<\/p>\n<ul>\n<li>Inventory accounts first, because privilege is the fastest route to harm.<\/li>\n<li>Stage new rules through observation, warning and enforcement.<\/li>\n<li>Rehearse once, even briefly, before a real event forces the issue.<\/li>\n<\/ul>\n<p>The moral of the sketch is modest. A small team cannot do everything in a week, but it can finish a week with a shorter list of unknowns, a logbook of what changed and a date for the next review. That is how a flight line keeps its aircraft serviceable, and it is how a cluster stays trustworthy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An invented story of a small flight-academy technology team spending one week applying KubernetesSecOps ideas, from access inventory to a short rehearsal.<\/p>\n","protected":false},"author":6,"featured_media":1062,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[668],"tags":[],"class_list":["post-1061","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aviation-tech"],"_links":{"self":[{"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/posts\/1061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/comments?post=1061"}],"version-history":[{"count":1,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/posts\/1061\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/posts\/1061\/revisions\/1156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/media\/1062"}],"wp:attachment":[{"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/media?parent=1061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/categories?post=1061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestpilotsnow.com\/blog\/wp-json\/wp\/v2\/tags?post=1061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}