Hierarchical Key Management for Encrypted Distributed Databases

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional database encryption methods require downtime for key rotation, which compromises availability and security, especially in high-performance distributed database systems with replica sets.

Innovation Solution

A system and method for rotating master and internal database keys while maintaining availability, using a key management server interface to obtain and store temporary master keys, and performing key rotation on each node in a replica set sequentially without disrupting read/write operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional database encryption methods are used with local key storage, then security is improved, but availability deteriorates due to required downtime for key rotation

Engineering Contradiction:
ImprovesecurityVSAvoidavailability
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent introduces a key management server as an intermediary between database nodes and master keys. The server stores encrypted master keys and provides them to nodes as needed, enabling key rotation without taking database nodes offline. This mediator allows secure key management while maintaining continuous database availability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the key management function from the database storage function. Master keys are stored and managed separately on a dedicated key management server, while database nodes focus on data storage and processing. This separation allows independent key rotation operations without impacting database availability.

Inventive Principle:
Principle #1Segmentation

2Ease of operation

If master keys are stored locally in encrypted keyfiles, then ease of operation is improved, but security deteriorates due to increased attack surface

Engineering Contradiction:
Improvekey management simplicityVSAvoidsecurity
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The key management server acts as a secure intermediary that stores master keys in a protected environment. Instead of storing keys locally on multiple database nodes, the centralized server provides keys as needed, reducing the overall attack surface while maintaining operational simplicity through automated key distribution.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent uses temporary copies of master keys that are transmitted from the key management server to database nodes only when needed for operations. These copies are ephemeral and automatically discarded, reducing the window of vulnerability while maintaining ease of key access for legitimate operations.

Inventive Principle:
Principle #26Copying

3Reliability

If key rotation is performed on all nodes simultaneously, then security is improved, but productivity deteriorates due to complete system downtime

Engineering Contradiction:
ImprovesecurityVSAvoidsystem availability
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent divides the key rotation process into independent segments that can be executed on individual nodes or subsets of nodes. The key management server can provide different key versions to different nodes at different times, allowing incremental rotation without requiring simultaneous system-wide rotation that would cause complete downtime.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The key management server prepares and stores multiple versions of master keys in advance. When rotation is needed, nodes can transition from old key versions to new key versions without interruption, as the new keys are already prepared and available from the server. This preliminary preparation eliminates the need for coordinated simultaneous rotation.

Inventive Principle:
Principle #10Preliminary action

4Reliability

If internal database keys are stored in encrypted format, then security is improved, but device complexity increases due to additional encryption layers

Engineering Contradiction:
ImprovesecurityVSAvoidkey management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements automated key management where the key management server automatically handles key generation, encryption, distribution, and rotation. Database nodes automatically request and use keys from the server without manual intervention. This self-service automation reduces the operational complexity despite the multiple encryption layers, as the system manages itself without requiring complex manual key management procedures.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11394532B2Systems and methods for hierarchical key management in encrypted distributed databases
Publication Date: 2022.07.19 MONGODB INC
  • US11394532B2 patent drawing
  • US11394532B2 patent drawing
  • US11394532B2 patent drawing

AI summary

According to one aspect, methods and systems are provided for modifying an encryption scheme in a database system. The methods and systems can include at least one internal database key; at least one database configured to be encrypted and decrypted using the at least one internal database key; a memory configured to store a master key; a key management server interface configured to communicate with a key management server; and a database application configured to receive, into the memory, the master key from the key management server via the key management server interface, and encrypt and decrypt the at least one internal database key using the master key.