Kubernetes Workload Protection via Nested Virtualization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Kubernetes lacks a security model to separate workloads in pods from administrator control, and existing solutions do not provide encryption or virtualization to protect workload data from unauthorized access.

Innovation Solution

A method involving obtaining an original Docker image, encrypting the disk image and bootloader, and re-packaging it to create a secured Kubernetes pod with virtual machine isolation, preventing data access from the host operating system and ensuring only trusted code runs in privileged mode.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If Kubernetes uses Linux control groups for separation between host and container workloads, then resource management and deployment automation are achieved, but security isolation and protection of workload data from administrator access are not provided

Engineering Contradiction:
Improvesecurity isolationVSAvoidsystem architecture
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements nested virtualization by placing a hypervisor inside the container runtime environment. The container runtime (e.g., CRI-O, containerd) is transformed into a virtualized environment with its own hypervisor layer, creating nested virtual machine instances within each container. This nested structure provides enhanced security isolation while maintaining the原有的 container orchestration capabilities of Kubernetes.

Inventive Principle:
Principle #7Nested doll (Nesting)

Solution Approach 2:

The patent introduces an intermediary security layer between the container workload and the host system. This intermediary hypervisor acts as a mediator that provides secure isolation, preventing direct access to workload data by administrators while still allowing controlled resource management. The intermediary layer includes security modules that enforce access policies and protect sensitive information.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If Kubernetes administrators have full control over pod workloads for management purposes, then operational flexibility is maintained, but workload data becomes vulnerable to unauthorized access

Engineering Contradiction:
Improveadministrator controlVSAvoidunauthorized data access
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The patent implements local quality by providing differentiated access control at different levels of the system. Administrators retain full control and visibility for operational management tasks, while workload data receives enhanced protection with restricted access. The security model applies different permission levels locally - management operations can proceed with administrator privileges, but data access is tightly controlled through the hypervisor's security modules, ensuring that sensitive information is protected from unauthorized access even when administrators have operational control.

Inventive Principle:
Principle #3Local quality

3Productivity

If traditional containerization is used without virtualization, then deployment speed and resource efficiency are improved, but security boundaries and protection against vulnerability breaches are weakened

Engineering Contradiction:
Improvedeployment speedVSAvoidsecurity boundary
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies preliminary action by pre-configuring security boundaries and isolation mechanisms before container deployment. The hypervisor is initialized and security policies are established in advance, creating secure containers before workloads are deployed. This preliminary setup ensures that security boundaries are already in place when containers are created, maintaining fast deployment speeds while ensuring reliability through pre-established security measures rather than adding them later.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11176245B2Protecting workloads in Kubernetes
Publication Date: 2021.11.16 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11176245B2 patent drawing
  • US11176245B2 patent drawing
  • US11176245B2 patent drawing

AI summary

Aspects of the invention include obtaining, via a processor, an original docker image from a customer, encrypting a disk image using content from the original docker image and encrypting a bootloader. A re-packaged image is created using the encrypted disk image and the secure encrypted bootloader. The re-packaged image is deployed by inserting the re-package image into a pod container and by means of using a mutating webhook, granting elevated privileges to said container and creating a secured Kubernetes pod for protecting workloads, wherein the secured Kubernetes pod has at least one virtual machine containing the pod container.