<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sajana Kavinda</title>
    <description>The latest articles on DEV Community by Sajana Kavinda (@sajjkavinda).</description>
    <link>https://dev.to/sajjkavinda</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F739951%2Ff135e536-8a3b-4360-9e08-ce662b865863.png</url>
      <title>DEV Community: Sajana Kavinda</title>
      <link>https://dev.to/sajjkavinda</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sajjkavinda"/>
    <language>en</language>
    <item>
      <title>Your Kubernetes RBAC can be perfectly configured, but your pods could still have too much AWS access</title>
      <dc:creator>Sajana Kavinda</dc:creator>
      <pubDate>Fri, 06 Nov 2026 14:00:24 +0000</pubDate>
      <link>https://dev.to/sajjkavinda/your-kubernetes-rbac-can-be-perfectly-configured-but-your-pods-could-still-have-too-much-aws-access-4k78</link>
      <guid>https://dev.to/sajjkavinda/your-kubernetes-rbac-can-be-perfectly-configured-but-your-pods-could-still-have-too-much-aws-access-4k78</guid>
      <description>&lt;p&gt;One thing I find particularly interesting about Amazon EKS security is that we're dealing with two different permission systems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kubernetes RBAC: Controls what a workload or user can do inside the Kubernetes API.&lt;/li&gt;
&lt;li&gt;AWS IAM: Controls what a workload can access across AWS services.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem? Securing one doesn't automatically secure the other.&lt;/p&gt;

&lt;p&gt;Scenario:&lt;/p&gt;

&lt;p&gt;You have an application running on an EKS Cluster. Its Kubernetes ServiceAccount has very limited access. It can only access the resources it needs inside its namespace.&lt;/p&gt;

&lt;p&gt;Looks good from the Kubernetes security perspective.&lt;/p&gt;

&lt;p&gt;But what if that container gets compromised?&lt;/p&gt;

&lt;p&gt;If the workload has access to excessive AWS permission through its IAM Identity, an attacker could potentially use those credentials to interact with resources outside the cluster.&lt;/p&gt;

&lt;p&gt;This is where &lt;strong&gt;IAM Roles for Service Accounts (IRDA)&lt;/strong&gt; and &lt;strong&gt;EKS Pod Identity&lt;/strong&gt; becomes particularly important.&lt;/p&gt;

&lt;p&gt;A few things O'd pay attention to when reviewing an EKS environment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid relying on the worker node IAM role for application-level permission.&lt;/li&gt;
&lt;li&gt;Give each workload its own AWS Identity where appropriate.&lt;/li&gt;
&lt;li&gt;Restrict access to EC2 Instance Metadata Service (IMDS) to prevent unintended access to node credentials.&lt;/li&gt;
&lt;li&gt;Keep IAM trust policies tightly scoped to the intended cluster, namespace and ServiceAccount.&lt;/li&gt;
&lt;li&gt;Review AWS permission independently of Kubernetes RBAC.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Something worth considering about:&lt;/p&gt;

&lt;p&gt;When was the last time you reviewed the AWS permission available to your pods, rather than just reviewing their Kubernetes RBAC policies?&lt;/p&gt;

&lt;p&gt;I'd be interested to hear how others approach this in production EKS environments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvielbv08i2nfrmp5jr41.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvielbv08i2nfrmp5jr41.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>aws</category>
      <category>security</category>
      <category>devsecops</category>
    </item>
  </channel>
</rss>
