# US 2021/0006402 A1 · Securely processing secret values in application configurations

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

- Number: US 2021/0006402 A1
- Document ID: US20210006402A1
- Status: Published application
- Kind: A1
- Application number: 16/502,846
- Filed: 2019-07-03
- Published: 2021-01-07
- Earliest claimed: 2019-07-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Konrad OHMS; Diane KIM; Amardeep S. KALSI
- Web page: https://patentgrep.com/patent/US20210006402A1

## CPC

- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3247: {involving digital signatures}
- 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

Provided are techniques for securely processing secret values in application configurations. A configuration file for an application is retrieved from a first repository, where the configuration file stores a configuration value and a link to a secret value in a second repository. The secret value is retrieved from the second repository using the link. The configuration value is hashed to output a hashed configuration value and the secret value is hashed to output a hashed secret value. The hashed configuration value is signed, with a private key, to output a hashed and signed configuration value, and the hashed secret value is signed, with the private key, to output a hashed and signed secret value. The configuration value, the secret value, the hashed and signed configuration value, and the hashed and signed secret value are stored in a release file. The application is executed using the release file.

## Claims

### Claim 1

A computer-implemented method, comprising operations for:
retrieving a configuration file for an application from a first repository, wherein the configuration file stores a configuration value and a link to a secret value in a second repository;
retrieving the secret value from the second repository using the link to the secret value in the configuration file;
hashing the configuration value to output a hashed configuration value and the secret value to output a hashed secret value; and
signing, with a private key, the hashed configuration value to output a hashed and signed configuration value and the hashed secret value to output a hashed and signed secret value; and
storing the configuration value, the secret value, the hashed and signed configuration value, and the hashed and signed secret value in a release file, wherein the configuration value and the secret value are environment variables; and
executing the application using the release file.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the configuration file stores a plurality of links, and further comprising operations for:
determining that a link of the plurality of links includes a macro; and
executing the macro to modify the secret value retrieved using the link.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the configuration file stores a plurality of links, wherein a first link of the plurality of links comprises a reference to a second link of the plurality of links in the second repository, and wherein the second link is used to retrieve the secret value in a third repository.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the application:
decrypts, with a public key, the hashed and signed configuration value to obtain a decrypted and hashed configuration value and the hashed and signed secret value to obtain a decrypted and hashed secret value;
compares the hashed configuration value with the decrypted and hashed configuration value to determine whether the configuration value is valid; and
compares the hashed secret value with the decrypted and hashed secret value to determine whether the secret value is valid.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising operations for:
accessing the second repository using a token with read-only permission.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising operations for:
invoking a release command with parameters for a location of the configuration file and a location of the release file.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein a Software as a Service (SaaS) is configured to perform the operations of the method.

### Claim 8

A computer program product, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations for:
retrieving a configuration file for an application from a first repository, wherein the configuration file stores a configuration value and a link to a secret value in a second repository;
retrieving the secret value from the second repository using the link to the secret value in the configuration file;
hashing the configuration value to output a hashed configuration value and the secret value to output a hashed secret value; and
signing, with a private key, the hashed configuration value to output a hashed and signed configuration value and the hashed secret value to output a hashed and signed secret value; and
storing the configuration value, the secret value, the hashed and signed configuration value, and the hashed and signed secret value in a release file, wherein the configuration value and the secret value are environment variables; and
executing the application using the release file.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the configuration file stores a plurality of links, and wherein the program code is executable by the at least one processor to perform operations for:
determining that a link of the plurality of links includes a macro; and
executing the macro to modify the secret value retrieved using the link.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the configuration file stores a plurality of links, wherein a first link of the plurality of links comprises a reference to a second link of the plurality of links in the second repository, and wherein the second link is used to retrieve the secret value in a third repository.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the application:
decrypts, with a public key, the hashed and signed configuration value to obtain a decrypted and hashed configuration value and the hashed and signed secret value to obtain a decrypted and hashed secret value;
compares the hashed configuration value with the decrypted and hashed configuration value to determine whether the configuration value is valid; and
compares the hashed secret value with the decrypted and hashed secret value to determine whether the secret value is valid.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein the program code is executable by the at least one processor to perform operations for:
accessing the second repository using a token with read-only permission.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein the program code is executable by the at least one processor to perform operations for:
invoking a release command with parameters for a location of the configuration file and a location of the release file.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein a Software as a Service (SaaS) is configured to perform the operations of the computer program product.

### Claim 15

A computer system, comprising:
one or more processors, one or more computer-readable memories and one or more computer-readable, tangible storage devices; and
program instructions, stored on at least one of the one or more computer-readable, tangible storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, to perform operations comprising:
retrieving a configuration file for an application from a first repository, wherein the configuration file stores a configuration value and a link to a secret value in a second repository;
retrieving the secret value from the second repository using the link to the secret value in the configuration file;
hashing the configuration value to output a hashed configuration value and the secret value to output a hashed secret value; and
signing, with a private key, the hashed configuration value to output a hashed and signed configuration value and the hashed secret value to output a hashed and signed secret value; and
storing the configuration value, the secret value, the hashed and signed configuration value, and the hashed and signed secret value in a release file, wherein the configuration value and the secret value are environment variables; and
executing the application using the release file.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the configuration file stores a plurality of links, and wherein the operations further comprise:
determining that a link of the plurality of links includes a macro; and
executing the macro to modify the secret value retrieved using the link.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the configuration file stores a plurality of links, wherein a first link of the plurality of links comprises a reference to a second link of the plurality of links in the second repository, and wherein the second link is used to retrieve the secret value in a third repository.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the application:
decrypts, with a public key, the hashed and signed configuration value to obtain a decrypted and hashed configuration value and the hashed and signed secret value to obtain a decrypted and hashed secret value;
compares the hashed configuration value with the decrypted and hashed configuration value to determine whether the configuration value is valid; and
compares the hashed secret value with the decrypted and hashed secret value to determine whether the secret value is valid.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the operations further comprise:
accessing the second repository using a token with read-only permission.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein a Software as a Service (SaaS) is configured to perform the operations of the computer system.
