{"id":1379,"date":"2026-11-14T17:40:00","date_gmt":"2026-11-14T17:40:00","guid":{"rendered":"https:\/\/cotocus.in\/blog\/?p=1379"},"modified":"2026-11-15T07:40:00","modified_gmt":"2026-11-15T07:40:00","slug":"kubernetessecops-request-path","status":"publish","type":"post","link":"https:\/\/cotocus.in\/blog\/kubernetessecops-request-path\/","title":{"rendered":"How a Kubernetes Request Is Checked: KubernetesSecOps Explained"},"content":{"rendered":"<p>Most explanations of Kubernetes security start with a list of features. A clearer way in is to follow one request on its journey and ask, at each stop, who checks what. Once you can picture that journey, the vocabulary of KubernetesSecOps falls into place, and so do the places where a determined person could slip around the checks. This explainer uses plain language and as little jargon as the subject permits.<\/p>\n<p>The journey described here is the one laid out in <a href=\"https:\/\/www.xopsschool.com\/kubernetessecops\/\">the long-form Atlas entry for KubernetesSecOps<\/a>. The Atlas treats the phrase as an informal cousin of &#8220;Kubernetes security&#8221;, and defines the work as the day-to-day protection of clusters and workloads: governing changes, allowed workloads, allowed conversations, credentials and detection.<\/p>\n<h2>The scenario: someone deploys an application<\/h2>\n<p>Imagine an engineer typing a command to start a new application. Nothing exotic. That command becomes an API request sent to the cluster&#8217;s front door, the API server. Every security control in the cluster is, in some way, a checkpoint on what happens to that request next. The order matters.<\/p>\n<h3>Stop 1: Who are you?<\/h3>\n<p>First comes authentication. The cluster has to decide who is asking, based on a certificate, a token or a sign-in through an identity provider. If it cannot decide, the request ends here. A cluster that trusts every caller by default has failed at the first stop, and the Atlas notes that certain kubelet settings can allow anonymous access when flag defaults are left alone.<\/p>\n<h3>Stop 2: Are you allowed?<\/h3>\n<p>Next comes authorisation, usually through RBAC. The system looks up what roles the caller holds and whether any of them permits this verb on this kind of object. For read requests, this is the last checkpoint: if the permission check passes, the data comes back. That fact is worth pausing on, because it means that read access to sensitive objects, such as secrets, is entirely governed by permissions. No later gate will save you.<\/p>\n<h3>Stop 3: Does the request need adjusting?<\/h3>\n<p>Write requests continue to mutating admission, where rules can edit the object, say by adding a default setting. Think of a counter clerk who fills in a missing box on your form before passing it along.<\/p>\n<h3>Stop 4: Is the finished object acceptable?<\/h3>\n<p>Then validating admission examines the final object against policy. This is where a rule such as &#8220;containers may not run as root&#8221; lives. The built-in Pod Security feature does this job at three strictness levels, and policy engines or expression-language policies cover custom needs. A refusal here sends the request back to the engineer with a message.<\/p>\n<h3>Stop 5: Is the record stored safely?<\/h3>\n<p>Accepted objects are saved in the cluster&#8217;s data store. If encryption at rest is configured, secrets are protected at this point; if not, they land in readable form. The Atlas puts it bluntly that write access to this store is equivalent to gaining root on the entire cluster, since whoever can write there can create any object they like without passing the earlier checks.<\/p>\n<h3>Stop 6: The node picks it up<\/h3>\n<p>An agent on the chosen machine, the kubelet, notices the new object and asks the container runtime to start it. The node has its own door, an API that the kubelet exposes, and its defaults depend on whether you configure it by flags or by file.<\/p>\n<h3>Stop 7: The running workload<\/h3>\n<p>Finally, the application runs. Here the controls are different in nature: network rules decide who can connect to it, the pod&#8217;s own settings limit what it can do on the machine, and runtime detection watches its behaviour. Defaults here favour function. Until a NetworkPolicy selects a pod, it accepts connections from all other pods.<\/p>\n<h2>Three side doors the main path does not guard<\/h2>\n<p>Following the journey also shows where it can be bypassed. The Atlas lists three routes that skip auditing and policy altogether.<\/p>\n<ul>\n<li><strong>Direct access to the data store.<\/strong> Anyone who can read or write it sidesteps the API server entirely.<\/li>\n<li><strong>The node-level interface.<\/strong> Reaching the kubelet&#8217;s API or the container runtime socket lets an actor start or inspect containers without the central checkpoints noticing.<\/li>\n<li><strong>Static pods.<\/strong> Files placed in a node directory are launched by the kubelet directly, never passing admission.<\/li>\n<\/ul>\n<p>The lesson is simple: protecting the front door is necessary, and so is protecting the machines behind it, which is why the Atlas puts control-plane and node hardening inside its scope.<\/p>\n<h2>Why the pipeline cannot do this job alone<\/h2>\n<p>Many organisations check images and manifests in their build pipeline, and that is valuable work. The difficulty is that a person with kubectl or Helm credentials can submit a request without ever touching the pipeline. That is the reason the Atlas has the cluster verify things at admission too, such as whether an image is referenced by digest or carries a valid signature. Pipeline work itself belongs to a neighbouring discipline; our article on <a href=\"https:\/\/cotocus.in\/blog\/mastering-pipeline-security-why-early-safety-checks-matter-in-devops\/\">why early safety checks in pipelines matter<\/a> explains that half in detail.<\/p>\n<h2>Where logging fits along the route<\/h2>\n<p>Audit logging records requests as they pass the API server, and it is only as good as its policy. Rules are checked in order, and the first one that matches decides what gets recorded. A sound habit is to log only the metadata for secrets and configuration maps: you learn who touched them and when, without duplicating their contents into yet another store that needs protecting. Self-managed servers log nothing until a policy file exists. Among managed offerings, defaults differ, so check each provider rather than assuming.<\/p>\n<h2>A small mental exercise<\/h2>\n<p>Pick three real requests in your cluster and trace each through the seven stops:<\/p>\n<ol>\n<li>A developer reading a secret from a namespace.<\/li>\n<li>A pipeline deploying a new version of an application.<\/li>\n<li>A pod calling another pod in a different namespace.<\/li>\n<\/ol>\n<p>For each, write down which stop would block the request if it were not legitimate, and what evidence that stop would leave behind. Blank spaces in your answers are the places to improve first. The first example is entirely a matter of permissions. The second depends on admission as well. The third involves no API call at all, and is governed purely by network policy, which is why it is so often neglected.<\/p>\n<h2>A note on reading the journey correctly<\/h2>\n<p>The seven stops are a teaching model, not a literal diagram of every code path, and real clusters add extras such as aggregated APIs, extra webhooks and managed-service layers. The model still earns its keep because it gives each control a place to live and a question to answer. When someone proposes a new tool, ask where on the line it sits and which gap it closes. If the answer is &#8220;everywhere&#8221;, be suspicious; useful controls are specific about their stop.<\/p>\n<h2>Two limits worth remembering<\/h2>\n<p>First, enforcement at admission looks at new pods only. Anything admitted before a rule existed keeps running until it restarts. Second, a namespace is a label and a permission scope rather than a wall; pods in different ones can share a machine and a kernel.<\/p>\n<h2>Putting the picture to work<\/h2>\n<p>With the journey in mind, a security review becomes a walk along a line. For each stop, ask what the control is, who owns it, how it fails and how you would know. If you want a broader grounding for the same habit of thinking in stages, the walkthrough titled <a href=\"https:\/\/cotocus.in\/blog\/complete-guide-to-devsecops-for-secure-software-delivery\/\">a full DevSecOps guide for safer shipping<\/a> applies the same staged approach on the build side.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow a single deployment request through seven checkpoints to see how KubernetesSecOps controls fit together, and where side doors skip them.<\/p>\n","protected":false},"author":4,"featured_media":1380,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[168],"tags":[],"class_list":["post-1379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/comments?post=1379"}],"version-history":[{"count":1,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1379\/revisions"}],"predecessor-version":[{"id":1483,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/posts\/1379\/revisions\/1483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/media\/1380"}],"wp:attachment":[{"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/media?parent=1379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/categories?post=1379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cotocus.in\/blog\/wp-json\/wp\/v2\/tags?post=1379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}