Security Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
Security Magazine logo
  • NEWS
    • Security Newswire
    • Technologies & Solutions
  • MANAGEMENT
    • Leadership Management
    • Enterprise Services
    • Security Education & Training
    • Logical Security
    • Security & Business Resilience
    • Profiles in Excellence
  • PHYSICAL
    • Access Management
    • Fire & Life Safety
    • Identity Management
    • Physical Security
    • Video Surveillance
    • Case Studies (Physical)
  • CYBER
    • Cybersecurity News
    • More
  • BLOG
  • COLUMNS
    • Career Intelligence
    • Cyber Tactics
    • Cybersecurity Education & Training
    • Leadership & Management
    • Security Talk
  • EXCLUSIVES
    • Annual Guarding Report
    • Most Influential People in Security
    • The Security Benchmark Report
    • Top Guard and Security Officer Companies
    • Top Cybersecurity Leaders
    • Women in Security
  • SECTORS
    • Arenas / Stadiums / Leagues / Entertainment
    • Banking/Finance/Insurance
    • Construction, Real Estate, Property Management
    • Education: K-12
    • Education: University
    • Government: Federal, State and Local
    • Hospitality & Casinos
    • Hospitals & Medical Centers
    • Infrastructure:Electric,Gas & Water
    • Ports: Sea, Land, & Air
    • Retail/Restaurants/Convenience
    • Transportation/Logistics/Supply Chain/Distribution/ Warehousing
  • EVENTS
    • Industry Events
    • Webinars
    • Solutions by Sector
    • Security 500 Conference
  • MEDIA
    • Interactive Spotlight
    • Photo Galleries
    • Podcasts
    • Polls
    • Videos
      • Cybersecurity & Geopolitical Discussion
      • Ask Me Anything (AMA) Series
  • MORE
    • Call for Entries
    • Classifieds & Job Listings
    • Continuing Education
    • Newsletter
    • Sponsor Insights
    • Store
    • White Papers
  • EMAG
    • eMagazine
    • This Month's Content
    • Advertise
  • SIGN UP!
CybersecurityManagementTechnologies & SolutionsSecurity Enterprise ServicesSecurity Leadership and ManagementLogical SecuritySecurity & Business ResilienceCybersecurity News

A cluster without RBAC is an insecure cluster

By Robert Brennan
Encryption Future - Security Magazine
November 23, 2020

The Principle of Least Privilege is one of the longest standing principles of security. People (as well as applications) should only have access to the things they need to do their job, and nothing else. While being overly permissive may make life a bit easier in the short-term, it can easily come back to haunt you long-term, whether due to a malicious attack, misplaced credentials, or even an honest mistake.

In Kubernetes, Role-Based Access Control (RBAC) has been the preferred way of implementing the Principle of Least Privilege since version 1.6. It is easily one of the most important and most used security features of Kubernetes. If you’re not taking full advantage of it, you could end up with a nightmare scenario - a fully compromised Kubernetes cluster.

 

What is RBAC?

RBAC allows you to declare which parts of the Kubernetes API each user (or service) is allowed to access.

The Kubernetes API deals with dozens of different types of objects. There are Pods for running your workloads, Deployments and StatefulSets for managing Pods, Namespaces for creating logical separation between workloads, and much more. Furthermore, the Kubernetes API can be extended with new object types using CustomResourceDefinitions (CRDs), and common third-party add-ons like Istio and Kubeflow often do.

Not everyone needs to be able to create, retrieve, update, and delete every possible object in the Kubernetes API. By limiting that access, we can strengthen our security profile.

Note that this applies to people (e.g. an engineer running kubectl), to robots (e.g. your CI/CD pipeline), and to in-cluster applications (e.g. the cert-manager operator, which provisions SSL certificates). In each of these cases, RBAC allows us to specify precisely what actions they’re allowed to take in your Kubernetes cluster.

 

But why is it important?

If we didn’t care about the security of our cluster, we could simply grant cluster-admin access to everyone - this is the Kubernetes equivalent of root. But in doing so, we increase the chances of a major security breach, whether through maliciousness or honest mistakes. There are three main scenarios we want to be mindful of:

  1. Exploited Applications: Most likely, you’re running some user-facing applications inside your cluster. While we’d like to believe that these applications are bulletproof, we have to assume that they contain vulnerabilities. If an attacker manages to infiltrate the application, we need to ensure that their access stays as constrained as possible. If our compromised application were running as cluster-admin, the attack would quickly spread throughout the cluster. The attacker would be able to view all our Secrets (e.g. API keys and database passwords), exfiltrate data from unrelated applications, and even launch cryptocurrency miners.

 

  1. Internal Threats: While it’s important to trust your employees, about one third of data breaches involve internal actors. Employees, contractors, and vendors may be tempted to utilize their credentials for revenge, for personal gain, or even just to satisfy their curiosity. While giving out cluster-admin access to these folks will make your life a bit easier - you won’t have folks constantly asking for expanded access each time their needs change - it greatly expands your potential attack surface.

 

  1. Honest Mistakes: Malicious actors aren’t the only thing you need to worry about. Plenty of problems are caused by buggy code or tired engineers making mistakes. More than once I’ve seen someone execute a kubectl command against production when they thought they were in staging (something I’ve even done myself!). With RBAC, you can cut down on accidents by stopping people and applications from doing things that are unrelated to their role.

 

How do I get started?

You’ll want to familiarize yourself with a few basic concepts in order to start using RBAC in Kubernetes:

  • Users and ServiceAccounts

These objects represent the individual actors in a Kubernetes cluster. Users typically represent real people, while ServiceAccounts represent applications and robots. 

  • Roles and ClusterRoles

These objects represent a list of abilities, typically in a verb/noun format. For instance, a Role might allow you to “get pods” or “create namespaces”. The difference between Roles and ClusterRoles is simple - the permissions in a Role are always scoped to the same Namespace that the Role lives in, whereas ClusterRoles apply to everything in the cluster (cluster-admin, mentioned above, is an example of a ClusterRole).

  • RoleBindings and ClusterRoleBindings

These objects attach Roles and ClusterRoles to particular Users and ServiceAccounts. This is how Kubernetes knows which permissions should go with which users. Having the bindings defined separately from the permission lists, while a bit verbose, allows for greater reuse. If you find yourself struggling to put the RBAC APIs into practice, an abstraction like rbac-manager might be able to help.

 

Using RBAC to secure your cluster

RBAC allows you to pare down an application or user’s access to exactly what they need. This helps limit the blast radius of external threats, mitigate the risk of internal threats, and prevent honest mistakes. If you’re running a k8s cluster, RBAC is one of the first steps you should take to secure it.

KEYWORDS: access control data breach risk management

Share This Story

Looking for a reprint of this article?
From high-res PDFs to custom plaques, order your copy today!

Robert brennan

Robert Brennan is director of open source software at Fairwinds, a Kubernetes enablement company. He focuses on the development of software that abstracts away the complexity of underlying infrastructure to enable an optimal experience for engineers. Before Fairwinds, he worked as a senior software engineer for Google in AI and natural language processing. He is the co-founder of DataFire.io, an open source platform for building APIs and integrations, and LucyBot, developer of a suite of automated API documentation solutions deployed by Fortune 500 companies. He is a graduate of Columbia College and Columbia Engineering where he focused on machine learning.

Recommended Content

JOIN TODAY
To unlock your recommendations.

Already have an account? Sign In

  • Iintegration and use of emerging tools

    Future Proof Your Security Career with AI Skills

    AI’s evolution demands security leaders master...
    Career Intelligence
    By: Jerry J. Brennan and Joanne R. Pollock
  • The 2025 Security Benchmark Report

    The 2025 Security Benchmark Report

    The 2025 Security Benchmark Report surveys enterprise...
    The Security Benchmark Report
    By: Rachelle Blair-Frasier
  • The Most Influential People in Security 2025

    Security’s Most Influential People in Security 2025

    Security Magazine’s 2025 Most Influential People in...
    Most Influential People in Security
    By: Security Staff
Manage My Account
  • Security Newsletter
  • eMagazine Subscriptions
  • Manage My Preferences
  • Online Registration
  • Mobile App
  • Subscription Customer Service

More Videos

Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the Security audience. All Sponsored Content is supplied by the advertising company and any opinions expressed in this article are those of the author and not necessarily reflect the views of Security or its parent company, BNP Media. Interested in participating in our Sponsored Content section? Contact your local rep!

close
  • critical event management
    Sponsored byEverbridge

    Why a Unified View Across IT, Continuity, and Security Makes or Breaks Crisis Response

  • Charlotte Star Room
    Sponsored byAMAROK

    In an Uncertain Economy, Security Is a Necessity - Not an Afterthought

  • Sureview screen
    Sponsored bySureView Systems

    The Evolution of Automation in the Command Center

Popular Stories

Red laptop

Security Leaders Discuss SitusAMC Cyberattack

Cybersecurity trends of 2025

3 Top Cybersecurity Trends from 2025

Green code

Logitech Confirms Data Breach, Security Leaders Respond

Neon human and android hands

65% of the Forbes AI 50 List Leaked Sensitive Information

Cybersecurity predictions of 2026

5 Cybersecurity Predictions for 2026

Top Cybersecurity Leaders

Events

September 18, 2025

Security Under Fire: Insights on Active Shooter Preparedness and Recovery

ON DEMAND: In today’s complex threat environment, active shooter incidents demand swift, coordinated and well-informed responses.

December 11, 2025

Responding to Evolving Threats in Retail Environments

Retail security professionals are facing an increasingly complex array of security challenges — everything from organized retail crime to evolving cyber-physical threats and public safety concerns.

View All Submit An Event

Products

Security Culture: A How-to Guide for Improving Security Culture and Dealing with People Risk in Your Organisation

Security Culture: A How-to Guide for Improving Security Culture and Dealing with People Risk in Your Organisation

See More Products

Related Articles

  • police1-900px.jpg

    Cluster-in-Chief

    See More
  • MESH Linux Cluster Server

    See More
  • Fire Cluster Speakers

    See More

Related Products

See More Products
  • 150952519X.jpg

    Intelligence in An Insecure World, 3rd Edition

  • physical security.webp

    Physical Security Assessment Handbook An Insider’s Guide to Securing a Business

  • A Leaders Guide Book Cover_Nicholson_29Sept2023.jpg

    A Leader’s Guide to Evaluating an Executive Protection Program

See More Products
×

Sign-up to receive top management & result-driven techniques in the industry.

Join over 20,000+ industry leaders who receive our premium content.

SIGN UP TODAY!
  • RESOURCES
    • Advertise
    • Contact Us
    • Store
    • Want More
  • SIGN UP TODAY
    • Create Account
    • eMagazine
    • Newsletter
    • Customer Service
    • Manage Preferences
  • SERVICES
    • Marketing Services
    • Reprints
    • Market Research
    • List Rental
    • Survey/Respondent Access
  • STAY CONNECTED
    • LinkedIn
    • Facebook
    • YouTube
    • X (Twitter)
  • PRIVACY
    • PRIVACY POLICY
    • TERMS & CONDITIONS
    • DO NOT SELL MY PERSONAL INFORMATION
    • PRIVACY REQUEST
    • ACCESSIBILITY

Copyright ©2025. All Rights Reserved BNP Media.

Design, CMS, Hosting & Web Development :: ePublishing