Build Container Secret Truncation via STI Framework

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing container-based computing architectures fail to effectively protect build secrets during the application image build process, as previous solutions expose these secrets once the image is built, compromising security.

Innovation Solution

The implementation of a source-to-image (STI) framework in a Platform-as-a-Service (PaaS) system truncates the configuration file containing build secrets to zero bit length after the application image is built, ensuring the secrets remain protected and are not exposed upon deployment.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If the configuration file containing build secrets is retained in the build container after image building, then the build process can be simplified and reuse is enabled, but the build secrets are exposed and compromised

Engineering Contradiction:
Improvebuild process simplicityVSAvoidbuild secret exposure
Core Design Contradiction:
Ease of manufactureVSObject-affected harmful factors

Solution Approach 1:

The patent extracts the harmful element (configuration file with build secrets) from the build container after the build process completes. By removing the file that contains sensitive authentication data, the system eliminates the security risk while preserving the beneficial build artifacts in the image.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent discards the configuration file containing build secrets after successful image building, while recovering and preserving the application image that was created. This selective discarding maintains the useful build output while eliminating the sensitive information.

Inventive Principle:
Principle #34Discarding and recovering

2Reliability

If build secrets are stored in the configuration file for authentication, then secure access to private repositories is enabled, but the secrets remain accessible after image deployment

Engineering Contradiction:
Improveauthentication securityVSAvoidbuild secret confidentiality
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The patent performs a preliminary action by removing the configuration file immediately after the build process completes. This preventive measure ensures that build secrets are not accessible in subsequent deployment phases, while still allowing secure authentication during the build process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The configuration file containing build secrets is treated as a disposable object that is created temporarily for the build process and then discarded. This approach prioritizes security over reuse, accepting that the file serves its purpose during building but must be eliminated afterward.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Object-affected harmful factors

If the configuration file is truncated to zero bit length, then build secrets are completely removed and security is improved, but the file cannot be reused for future builds

Engineering Contradiction:
Improvebuild secret exposureVSAvoidfile reuse capability
Core Design Contradiction:
Object-affected harmful factorsVSAdaptability or versatility

Solution Approach 1:

The patent segments the build process into distinct phases: a build phase where the configuration file is needed for authentication, and a deployment phase where the file is removed. This temporal segmentation allows the file to serve its purpose when needed while being eliminated when security becomes the priority.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses the build image itself as an intermediary carrier that contains the application artifacts without the sensitive configuration file. The image serves as a mediator that preserves the build results while excluding the harmful secrets, enabling future builds to proceed without the original configuration file.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10162627B2Maintaining build secrets in a build container
Publication Date: 2018.12.25 RED HAT INC
  • US10162627B2 patent drawing
  • US10162627B2 patent drawing
  • US10162627B2 patent drawing

AI summary

Implementations provide for a container-based architecture that can maintain build secrets. A method of the disclosure includes storing a file in a destination directory of a build container. The file includes authentication data to retrieve information from a repository. A build of an application image is initiated at a build container. The application image is built using the information retrieved from the repository via the loaded file. In response to receiving an indication that the build of the application imaged is complete, the loaded file is truncated.