Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Kubernetes security risks that keep developers up at night

June 13, 2022
Ajmal Kohgadai Andy Oram
Related topics:
KubernetesSecurity
Related products:
Red Hat OpenShift

Share:

    In a recent Red Hat survey of more than 300 production-level Kubernetes users, 93% of respondents admitted to experiencing at least one security incident in their Kubernetes environments during the previous year—and 31% of respondents say they experienced revenue or customer loss during that year as a consequence.

    Our industry can do better. This article summarizes findings from the survey, reported in our 2022 State of Kubernetes security report, and highlights the weak points of Kubernetes security today along with a path forward involving DevSecOps.

    Note: Most of the material in this article comes from the Red Hat report, 2022 State of Kubernetes security.

    Security is one of the top concerns with container strategies

    With security incidents in these environments being a nearly universal experience, it should come as no surprise that security remains a top concern among survey respondents when it comes to container strategies.

    Taken together, concerns about security threats to containers (14%) and a lack of investment in container security (17%) show that security is the top concern with container strategies, at 31%. Another 22% of respondents cited the slow pace of progress as their biggest concern, while 20% consider skills gaps to be the thing that worries them the most (Figure 1).

    Respondents reported a variety of difficulties when implementing security on containers.
    Figure 1: Respondents reported a variety of difficulties when implementing security on containers.

    Why are organizations suffering from so many production security problems?

    Nearly 53% of respondents have experienced a misconfiguration incident in their environments over the previous year (Figure 2). Among all respondents, 38% discovered a major vulnerability, and 30% said they have suffered a runtime security incident. Lastly, 22% said they had failed an audit.

    Misconfiguration is the most common security flaw.
    Figure 2: Misconfiguration is the most common security flaw.

    A combination of factors are likely behind the disruption, including:

    • A lack of security knowledge about containers and Kubernetes
    • Inadequate or unfit security tooling
    • Inability of central security teams to keep up with fast-moving application development teams.

    Runtime—sometimes also known as Day 2 operations or the post-deployment stage—is the container life cycle phase that organizations worry about the most: This phase is highlighted by 57% of respondents. This concern seems counterintuitive, given that an overwhelming majority of respondents identify misconfiguration as the source of the biggest security risk and have experienced a misconfiguration incident more often than any other type of security incident.

    Behind the respondents' concern for the runtime phase lies the origin of bugs in the build or deploy stage. The negative impact of a security misstep at the build or deploy stages is likely to be felt only after an application is running in production. Incident response, a key aspect of security, is also more complicated at runtime. Lastly, security issues discovered at runtime are likely more costly to fix as well. Together, these factors make heightened runtime security worries more understandable.

    Kubernetes and containers, while powerful, were designed for developer productivity, not necessarily security. Default pod-to-pod network settings, as an example, allow open communication to quickly get a cluster up and running, at the expense of security hardening.

    Respondents worry about misconfiguration above all other security concerns

    Kubernetes is a highly customizable container orchestrator, with various configuration options that affect an application’s security posture.

    Consequently, respondents worry the most about exposures due to misconfigurations in their container and Kubernetes environments (46%)—nearly three times the level of concern over attacks (16%). Vulnerabilities constitute the second-leading cause of worry (28%). See Figure 3.

    Respondents are most worried about misconfigurations and exposures.
    Figure 3: Respondents are most worried about misconfigurations and exposures.

    Configuration management poses a uniquely difficult challenge for security practitioners. The persons responsible for configuring workloads might not understand the security implications of various settings within Kubernetes. Although a host of tools are available for vulnerability scanning of container images, configuration management has no such automated help. Each configuration option requires consideration and will likely be unique to organizations and teams, depending on their risk tolerance and level of workload sensitivity.

    People avoid deploying the Kubernetes dashboard because it indulges poor development practices: the dashboard rewards one-off activities instead of more robust automation. But security measures, such as configuring a pod’s security context or implementing Kubernetes role-based access control (RBAC), are challenging and tempt administrators to resort to the dashboard.

    The best way to address this challenge is to automate configuration management as much as possible, so that security tools—rather than humans—provide the guardrails that help developers and DevOps teams configure containers and Kubernetes more securely.

    Security concerns hinder innovation

    Modern development practices (notably DevOps) are running head-on against traditional security practices, and both practices need to adapt.

    Organizations are transforming how they build, run, and scale applications by adopting cloud-native technologies such as Kubernetes and microservices-based application architectures. Some are building all new applications as microservices, while others refactor existing applications alongside pre-existing monoliths. Organizations therefore must also transform their security across their cloud-native stack. The term DevSecOps represents the increasingly popular incorporation of security measures into DevOps pipelines.

    More rapid release cycles, faster bug fixes, and greater flexibility to run and manage applications across hybrid environments are three of the most often cited benefits of containerization. However, when security becomes an afterthought, you could end up negating the greatest gain of containerization: agility. The majority of survey respondents (55%) have had to delay an application rollout because of security concerns over the last 12 months (Figure 4).

    Most respondents admit to holding up deployment because of a security concern.
    Figure 4: Most respondents admit to holding up deployment because of a security concern.

    New technologies often create unforeseen security challenges. Some organizations are overwhelmed by security needs that stretch across all aspects of the application life cycle, from development through deployment and maintenance. They need a simplified way to protect their containerized applications without slowing development or increasing operational complexity.

    Conclusion

    A recent study revealed that human error was a major contributing factor in 95% of breaches. The best way to improve security is to automate best practices, but as we've seen in this article, automating security in a declarative, YAML-driven configuration is complex. Cooperation among developers, operators, and security teams is needed to get all the configuration operations in place. Working on a platform that provides a secure environment and tools can get you to your desired level of protection faster.

    Recent Posts

    • How to build a Model-as-a-Service platform

    • How Quarkus works with OpenTelemetry on OpenShift

    • Our top 10 articles of 2025 (so far)

    • The benefits of auto-merging GitHub and GitLab repositories

    • Supercharging AI isolation: microVMs with RamaLama & libkrun

    What’s up next?

    Getting GitOps e-book card

    Learn how to navigate the complex world of modern container-based software development and distribution with Getting GitOps: A Practical Platform with OpenShift, Argo CD, and Tekton.

    Download the e-book
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue