TEE Secret Proxy Decryption for Container Data Security

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for securing secrets in container management systems, such as Kubernetes, fail to protect sensitive information within a trusted execution environment (TEE) due to the lack of encryption and decryption mechanisms, allowing unauthorized access to plain text versions of secrets.

Innovation Solution

A system that retrieves and decrypts encrypted secrets within a trusted execution environment (TEE) using a secret proxy plugin or sidecar, utilizing a software agent to obtain private keys from a key management system, ensuring that only decrypted secrets are accessible within the TEE, preventing external components from accessing plain text versions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If secrets are stored as base64 encoded objects in the Kubernetes system, then ease of operation is improved, but security is worsened because the encoded secrets can be easily decoded to plain text by unauthorized users

Engineering Contradiction:
Improveease of secret retrievalVSAvoidsecurity of sensitive information
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent introduces a secret sidecar component as an intermediary between the application and the Kubernetes API server. This sidecar intercepts secret retrieval requests, decrypts them using private keys stored in the TEE, and returns the decrypted secrets to applications. This mediator architecture allows applications to access secrets without directly interacting with the encrypted storage, maintaining ease of operation while ensuring security through the TEE-protected decryption process

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the secret management system into distinct components: the Kubernetes API server that stores encrypted secrets, the TEE-protected key management system, and the secret sidecar that performs decryption. This segmentation separates the sensitive key management operations from the general-purpose Kubernetes infrastructure, allowing the encrypted secrets to remain secure in the API server while enabling controlled access through the sidecar component

Inventive Principle:
Principle #1Segmentation

2Device complexity

If encrypted secrets are implemented outside the TEE, then device complexity is reduced, but security is worsened because private keys can be accessed by unauthorized components

Engineering Contradiction:
Improvecomplexity of encryption systemVSAvoidsecurity of private keys
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent implements a nested architecture where the secret sidecar contains both the decryption logic and the TEE environment with protected private keys. The TEE is nested within the sidecar container, which itself is nested within the Kubernetes pod. This nested structure ensures that private keys remain confined within the most secure layer (TEE) while still being accessible to the decryption process, preventing unauthorized access while maintaining manageable system complexity

Inventive Principle:
Principle #7Nested doll (Nesting)

Solution Approach 2:

The patent applies different security qualities to different parts of the system. The TEE environment provides high-security protection for private keys, while the sidecar provides moderate security for decryption operations, and the Kubernetes API server provides basic security for encrypted secret storage. This localized quality approach ensures that each component has the appropriate security level for its function, optimizing overall security without unnecessarily complicating the entire system

Inventive Principle:
Principle #3Local quality

3Ease of operation

If plain text secrets are made accessible to applications, then ease of operation is improved, but security is worsened because unauthorized access to sensitive information is enabled

Engineering Contradiction:
Improveaccessibility of secretsVSAvoidunauthorized access to sensitive information
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The secret sidecar acts as a mediator that controls access to decrypted secrets. It receives requests from applications, verifies their authorization, and selectively provides access to the decrypted secret content. This intermediary layer maintains ease of operation for authorized applications while preventing unauthorized access, as the sidecar can log, monitor, and control all secret access requests before they reach the applications

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12417297B2Securing sensitive data in a container management system
Publication Date: 2025.09.16 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12417297B2 patent drawing
  • US12417297B2 patent drawing
  • US12417297B2 patent drawing

AI summary

An approach is provided for securing a secret for usage by an application utilizing a client to retrieve secrets. A request is sent from a client in a workload container within a trusted execution environment (TEE) to retrieve an encrypted secret from an application programming interface (API) server outside the TEE. The request is hooked and sent to the API server by a proxy or a secret proxy plugin within the TEE. The secret is received from the API server by the proxy or secret proxy plugin. An agent within the TEE is called to request a private key. The agent obtains the private key. The secret is decrypted by using the private key. The decrypted secret is returned to the client by the proxy or secret proxy plugin, which ensures that a plain text version of sensitive information in the decrypted secret is not accessible outside the TEE.