<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rbac on Lead DevOps</title><link>https://lead-devops.blackdevhub.online/en/tags/rbac/</link><description>Recent content in Rbac on Lead DevOps</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 23 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://lead-devops.blackdevhub.online/en/tags/rbac/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating User and Role in Kubernetes and Binding Them via RBAC</title><link>https://lead-devops.blackdevhub.online/en/posts/k8s-user-role-rbac/</link><pubDate>Wed, 23 Sep 2026 00:00:00 +0000</pubDate><guid>https://lead-devops.blackdevhub.online/en/posts/k8s-user-role-rbac/</guid><description>&lt;p&gt;In Kubernetes there are no &amp;ldquo;users&amp;rdquo; in the traditional sense — there are ServiceAccounts and certificates, bound to roles through RBAC. Without proper configuration, anyone holding a kubeconfig gets full access to the cluster. Below is the complete cycle: create a ServiceAccount, define permissions, bind them, and verify.&lt;/p&gt;&#10;&lt;h2 id="creating-serviceaccount-and-generating-kubeconfig"&gt;Creating ServiceAccount and Generating kubeconfig&#10;&lt;/h2&gt;&#10;&lt;p&gt;Start by creating a ServiceAccount in the target namespace:&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-912f8f44-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-912f8f44-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kubectl create serviceaccount devops-sa -n staging&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;To generate a kubeconfig, extract the token from secrets and build the config file:&lt;/p&gt;</description></item><item><title>kubectl whoami and Service Account Permission Checks</title><link>https://lead-devops.blackdevhub.online/en/posts/kubectl-whoami-check-sa-rights/</link><pubDate>Wed, 02 Sep 2026 00:00:00 +0000</pubDate><guid>https://lead-devops.blackdevhub.online/en/posts/kubectl-whoami-check-sa-rights/</guid><description>&lt;p&gt;When deploying an application to Kubernetes, the most common failure is a service account that cannot do what it should. Permission denied when creating a secret, rejection on list pods, refusal on update. kubectl whoami and kubectl auth can-i let you quickly identify exactly who cannot do what.&lt;/p&gt;&#10;&lt;h2 id="kubectl-whoami-plugin"&gt;kubectl whoami plugin&#10;&lt;/h2&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;kubectl whoami is not a built-in kubectl command. It is a plugin from krew or a standalone binary. Install with &lt;code&gt;kubectl krew install whoami&lt;/code&gt; or download from GitHub.&lt;/p&gt;</description></item></channel></rss>