# US 2023/0412374 A1 · Synchronization of secret keys between multiple server instances

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

- Number: US 2023/0412374 A1
- Document ID: US20230412374A1
- Status: Published application
- Kind: A1
- Application number: 17/818,750
- Filed: 2022-08-10
- Published: 2023-12-21
- Earliest claimed: 2022-06-15
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Christoph Hohner; Martin Schindewolf; Sascha Zorn; Meinolf Block
- Web page: https://patentgrep.com/patent/US20230412374A1

## CPC

- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 9/14: using a plurality of keys or algorithms
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to computer-implemented methods, software, and systems for the replication of secret keys between server nodes. Keys for encryption and decryption are persisted in a log file on a first database hosted on a primary server. The log file comprises data for executed database transactions at the first database and key management operations at a first key store. In response to triggering a synchronization between the primary server and a secondary server, a set of sequential entries of the log file are replayed at the secondary server from the first database. An execution of a transaction is replicated at a secondary database at the secondary server based on data for an entry at the log file and a key management operation associated with a key at the first key store that is persisted in another entry of the log file is replicated.

## Claims

### Claim 1

A computer-implemented method comprising:
persisting, in a log file on a first database hosted on a primary server, keys for encrypting and decrypting data persisted at the first database, wherein the keys are managed at a first key store hosted on the primary server, and wherein the log file comprises data for executed database transactions at the first database and key management operations at the first key store; and
in response to triggering a synchronization between the primary server and a secondary server, replaying, at the secondary server, a set of sequential entries of the log file from the first database hosted on the primary server to replicate executions of (i) a transaction of the executed database transactions at a secondary database at the secondary server based on data for an entry at the log file and (ii) a key management operation from the key management operations associated with a key from the keys at the first key store that is persisted in another entry of the one or more entries of the log file on the first database hosted on the primary server.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
based on replaying the set of sequential entries of the log file at the secondary server, synchronizing data at the second database on the secondary server with the data persisted on the first database.

### Claim 3 (depends on 1)

The method of claim 1, wherein a key management operation includes at least one of:
creating a new key as a new version of an old key used for encrypting data of a database transaction of a particular type;
activating a new key to be used for encrypting the data; and
deleting an existing key in the first key store.

### Claim 4 (depends on 1)

The method of claim 1, wherein replaying the log file is associated with a point-in-time data recovery for transferring one or more keys and a portion of data according to a time point configured for the replaying.

### Claim 5 (depends on 1)

The method of claim 1, wherein the data at the log file includes data that is for the executed database transactions and includes timestamps of execution of the executed database transactions.

### Claim 6 (depends on 1)

The method of claim 1, wherein a key from the keys at the first key store is defined as a currently active key version for encrypting data for a predefined transaction type executed at the first database.

### Claim 7 (depends on 1)

The method of claim 1, wherein the log file stores data for the executed database transactions and the key management operations in a sequential order, and wherein the replaying is performed according to the sequential order of entries in the log file to replicate (i) the data from the first database to the second database on the secondary server and (ii) the key from the keys at the first key store on the primary server to a second key store on the secondary server.

### Claim 8 (depends on 1)

The method of claim 1, wherein a set of keys of the keys managed at the key store are associated with a respective type of database transactions associated with a process executed at the first database, wherein the set of keys include different versions of a key for the respective type of database transactions, wherein a single key of the set of keys is a currently active key to be used for encrypting database transactions requested by users.

### Claim 9 (depends on 1)

The method of claim 1, comprising:
in response to identifying a downtime event for the primary server, redirecting user requests for execution of database transactions to the secondary server, wherein the secondary server is synchronized with the primary server according to a point-in-time synchronization rule configured for replication of data from the primary server to the secondary server according to replaying the log file persisted on the primary server.

### Claim 10

A non-transitory, computer-readable medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations, the operations comprising:
persisting, in a log file on a first database hosted on a primary server, keys for encrypting and decrypting data persisted at the first database, wherein the keys are managed at a first key store hosted on the primary server, and wherein the log file comprises data for executed database transactions at the first database and key management operations at the first key store; and
in response to triggering a synchronization between the primary server and a secondary server, replaying, at the secondary server, a set of sequential entries of the log file from the first database hosted on the primary server to replicate executions of i) a transaction of the executed database transactions at a secondary database at the secondary server based on data for an entry at the log file and ii) a key management operation from the key management operations associated with a key from the keys at the first key store that is persisted in another entry of the one or more entries of the log file on the first database hosted on the primary server.

### Claim 11 (depends on 10)

The computer-readable medium of claim 10, wherein the instructions stored thereon further comprise instructions, which when executed, cause the one or more processors to perform operations comprising:
based on replaying the set of sequential entries of the log file at the secondary server, synchronizing data at the second database on the secondary server with the data persisted on the first database.

### Claim 12 (depends on 10)

The computer-readable medium of claim 10, wherein a key management operation includes at least one of:
creating a new key as a new version of an old key used for encrypting data of a database transaction of a particular type;
activating a new key to be used for encrypting the data; and
deleting an existing key in the first key store, and
wherein the data at the log file includes data that is for the executed database transactions and includes timestamps of execution of the executed database transactions.

### Claim 13 (depends on 10)

The computer-readable medium of claim 10, wherein the log file stores data for the executed database transactions and the key management operations in a sequential order, and wherein the replaying is performed according to the sequential order of entries in the log file to replicate i) the data from the first database to the second database on the secondary server and ii) the key from the keys at the first key store on the primary server to a second key store on the secondary server.

### Claim 14 (depends on 10)

The computer-readable medium of claim 10, wherein a set of keys of the keys managed at the key store are associated with a respective type of database transactions associated with a process executed at the first database, wherein the set of keys include different versions of a key for the respective type of database transactions, wherein a single key of the set of keys is a currently active key to be used for encrypting database transactions requested by users.

### Claim 15 (depends on 10)

The computer-readable medium of claim 10, wherein the instructions stored thereon further comprise instructions, which when executed, cause the one or more processors to perform operations comprising:
in response to identifying a downtime event for the primary server, redirecting user requests for execution of database transactions to the secondary server, wherein the secondary server is synchronized with the primary server according to a point-in-time synchronization rule configured for replication of data from the primary server to the secondary server according to replaying the log file persisted on the primary server.

### Claim 16

A system comprising
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations, the operations comprising:
persisting, in a log file on a first database hosted on a primary server, keys for encrypting and decrypting data persisted at the first database, wherein the keys are managed at a first key store hosted on the primary server, and wherein the log file comprises data for executed database transactions at the first database and key management operations at the first key store; and
in response to triggering a synchronization between the primary server and a secondary server, replaying, at the secondary server, a set of sequential entries of the log file from the first database hosted on the primary server to replicate executions of i) a transaction of the executed database transactions at a secondary database at the secondary server based on data for an entry at the log file and ii) a key management operation from the key management operations associated with a key from the keys at the first key store that is persisted in another entry of the one or more entries of the log file on the first database hosted on the primary server.

### Claim 17 (depends on 16)

The system of claim 16, wherein the instructions stored thereon further comprise instructions, which when executed, cause the one or more processors to perform operations comprising:
based on replaying the set of sequential entries of the log file at the secondary server, synchronizing data at the second database on the secondary server with the data persisted on the first database.

### Claim 18 (depends on 16)

The system of claim 16, wherein a key management operation includes at least one of:
creating a new key as a new version of an old key used for encrypting data of a database transaction of a particular type;
activating a new key to be used for encrypting the data; and
deleting an existing key in the first key store, and
wherein the data at the log file includes data that is for the executed database transactions and includes timestamps of execution of the executed database transactions.

### Claim 19 (depends on 16)

The system of claim 16, wherein the log file stores data for the executed database transactions and the key management operations in a sequential order, and wherein the replaying is performed according to the sequential order of entries in the log file to replicate i) the data from the first database to the second database on the secondary server and ii) the key from the keys at the first key store on the primary server to a second key store on the secondary server.

### Claim 20 (depends on 16)

The system of claim 16, wherein a set of keys of the keys managed at the key store are associated with a respective type of database transactions associated with a process executed at the first database, wherein the set of keys include different versions of a key for the respective type of database transactions, wherein a single key of the set of keys is a currently active key to be used for encrypting database transactions requested by users.
