# US 2024/0205004 A1 · External Key Manager Error Handling For Encrypted Platform-Hosted Data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0205004 A1
- Document ID: US20240205004A1
- Status: Published application
- Kind: A1
- Application number: 18/538,121
- Filed: 2023-12-13
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Rohit Vijay Jog; Cristina Schmidt
- Web page: https://patentgrep.com/patent/US20240205004A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F 11/1443: {Transmit or communication errors}
- G06F 16/24573: {using data annotations, e.g. user-defined metadata}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/0822: {using key encryption key}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Aspects of the disclosure relate to a system for responding to transient errors temporarily preventing a computing platform hosting data from communicating with an external key manager hosting keys used to encrypt the platform data. The encryption key can be controlled external to the system in an external key manager (EKM). If an error occurs in which the system and the EKM are temporarily not in communication, the external key controlled by the EKM is temporarily not available. The system begins an observation period, during which the observation period the system polls the EKM to check if the external key continues to be unavailable. The system unloads the encrypted data if, after the expiration of the observation period, the EKM is still not available. If the EKM and the external key becomes accessible again during the observation period, the system cancels the observation period and resumes normal operation.

## Claims

### Claim 1

A method comprising:
maintaining, by one or more processors, a database encrypted using an external key managed by an external key manager;
receiving, by one or more processors of a database management system, an indication that the external key is unavailable;
initiating, by the one or more processors, an observation period for a predetermined period of time;
during the observation period, polling, by the one or more processors, the external key manager to determine whether the external key is available; and
determining, by the one or more processors, that the external key was not available during the observation period, and in response, unloading the database after the end of the observation period.

### Claim 2 (depends on 1)

The method of claim 1, wherein maintaining the database comprises:
restarting, by the one or more processors, the database management system during the observation period;
saving, by the one or more processors, the remaining time of the observation period at the time of restarting the database and the status of the key as of the last poll during the observation period and prior to restarting the database management system; and
resuming, by the one or more processors, the observation period and the polling from the remaining time after the database management system is restarted.

### Claim 3 (depends on 2)

The method of claim 2, further comprising saving the remaining time and the status of the key as metadata associated with the database.

### Claim 4 (depends on 2)

The method of claim 2,
wherein the database management system comprises a partition manager and wherein the database comprises a plurality of partitions, and wherein restarting the database management system comprises restarting the partition manager.

### Claim 5 (depends on 1)

The method of claim 1, wherein the external key is deleted or refreshed by the external key manager without the external key manager sending a status or indication to the one or more processors that the external key has been deleted or refreshed.

### Claim 6 (depends on 1)

The method of claim 1, wherein the unavailability of the external key is due to a communication error between the database management system and the external key manager.

### Claim 7 (depends on 6)

The method of claim 6, wherein the method further comprises:
determining, by the one or more processors and during the observation period, that the external key is available again; and
in response to the determination that the change in status did occur, canceling, by the one or more processors, the observation period.

### Claim 8 (depends on 7)

The method of claim 7, wherein the polling comprises:
sending, by the one or more processors, a plurality of requests during the observation period, wherein each request is a request for a response as to whether the external key is available at the time the request was sent.

### Claim 9 (depends on 1)

The method of claim 1, wherein the database is encrypted using a key encryption key and the key encryption key is encrypted using the external key.

### Claim 10

A database management system comprising one or more processors, the one or more processors configured to:
maintain, a database encrypted using an external key managed by an external key manager;
receive, an indication that the external key is unavailable;
initiate, an observation period for a predetermined period of time;
during the observation period, poll the external key manager to determine whether the external key is available; and
determine that the external key was not available during the observation period, and in response, unload the database after the end of the observation period.

### Claim 11 (depends on 10)

The system of claim 10, wherein in maintaining the database, the one or more processors are configured to:
restart, the database management system during the observation period;
save the remaining time of the observation period at the time of restarting the database and the status of the key as of the last poll during the observation period and prior to restarting the database management system; and
resume the observation period and the polling from the remaining time after the database management system is restarted.

### Claim 12 (depends on 11)

The system of claim 11, wherein the one or more processors are further configured to save the remaining time and the status of the key as metadata associated with the database.

### Claim 13 (depends on 11)

The system of claim 11,
wherein the database management system comprises a partition manager and wherein the database comprises a plurality of partitions, and wherein in restarting the database management system, the one or more processors are configured to restart the partition manager.

### Claim 14 (depends on 10)

The system of claim 10, wherein the external key is deleted or refreshed by the external key manager without the external key manager sending a status or indication to the one or more processors that the external key has been deleted or refreshed.

### Claim 15 (depends on 10)

The system of claim 10, wherein the unavailability of the external key is due to a communication error between the database management system and the external key manager.

### Claim 16 (depends on 15)

The system of claim 15, wherein the one or more processors are further configured to:
determine that the external key is available again; and
in response to the determination that the change in status did occur, cancel the observation period.

### Claim 17 (depends on 16)

The system of claim 16, wherein in polling the external key manager, the one or more processors are configured to:
send a plurality of requests during the observation period, wherein each request is a request for a response as to whether the external key is available at the time the request was sent.

### Claim 18 (depends on 10)

The system of claim 10, wherein the database is encrypted using an key encryption key and the key encryption key is encrypted using the external key.

### Claim 19

One or more non-transitory computer-readable storage media storing instructions that when executed by one or more processors, causes the one or more processors to perform operations comprising:
maintaining a database encrypted using an external key managed by an external key manager;
receiving an indication that the external key is unavailable;
initiating an observation period for a predetermined period of time;
during the observation period, polling the external key manager to determine whether the external key is available; and
determining that the external key was not available during the observation period, and in response, unloading the database after the end of the observation period.

### Claim 20 (depends on 19)

The computer-readable storage media of claim 19, wherein maintaining the database comprises:
restarting, a database management system comprising the one or more processors during the observation period;
saving the remaining time of the observation period at the time of restarting the database and the status of the key as of the last poll during the observation period and prior to restarting the database management system; and
resuming the observation period and the polling from the remaining time after the database management system is restarted.
