# US 2023/0409315 A1 · Secrets framework

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

- Number: US 2023/0409315 A1
- Document ID: US20230409315A1
- Status: Published application
- Kind: A1
- Application number: 17/750,043
- Filed: 2022-05-20
- Published: 2023-12-21
- Earliest claimed: 2022-05-20
- Assignees: Stripe, Inc.
- Applicants: Stripe, Inc.
- Inventors: Paul Alfred Carleton, JR.; Andrew Joseph Dunham; Serhii Rud; Adam Bradley Stubblefield; Caitriona Kelly
- Web page: https://patentgrep.com/patent/US20230409315A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 9/448: Execution paradigms, e.g. implementations of programming paradigms
- G06F 8/40: Transformation of program code
- G06F 21/6209: {to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatuses for using secrets and a secrets framework are described. In some embodiments, the method comprises executing, by a computing system, application code that includes a reference to a secret value inaccessible to the application code, the reference being in the form of a handle that contains the secret value, including passing the handle to injector code; and executing the injector code, including accepting the handle; obtaining the secret value from the handle; and using the secret value in an operation on behalf of the application code.

## Claims

### Claim 1

A method to prevent secret misuse, the method comprising:
executing, by a computing system, application code that includes a reference to a secret value inaccessible to the application code, the reference being in the form of a handle that contains the secret value, including passing the handle to injector code; and
executing the injector code, including
accepting the handle;
obtaining the secret value from the handle; and
using the secret value in an operation on behalf of the application code.

### Claim 2 (depends on 1)

The method of claim 1 wherein obtaining the secret value from the handle comprises unwrapping the secret handle to get the secret value.

### Claim 3 (depends on 1)

The method of claim 1 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into the operation that depends on the secret value.

### Claim 4 (depends on 1)

The method of claim 1 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into an outgoing network request.

### Claim 5 (depends on 4)

The method of claim 4 further comprising removing the secret value from a response to the request prior to before the response back to the application code.

### Claim 6 (depends on 1)

The method of claim 1 wherein injecting the secret value into an outgoing network request comprises adding the secret value to a header of the request.

### Claim 7 (depends on 1)

The method of claim 1 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into an object, a resource locator or a hash.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
sending a request to fetch the secret value from a collection of secret values at one or more locations; and
receiving the secret handle in response to the request.

### Claim 9 (depends on 8)

The method of claim 8 wherein the secret value is assigned to an application service of the application code.

### Claim 10 (depends on 1)

The method of claim 1 further comprising changing the secret value after the handle has been included in the application code without performing a code change in the application code.

### Claim 11 (depends on 1)

The method of claim 1 further comprising:
tracking usage of a plurality of secret values assigned for use by the application code; and
changing assignment of any secret value of the plurality of secret values determined unused by the application code to prevent access of said any secret value by the application code.

### Claim 12

A system comprising:
a memory to store instructions; and
one or more processors coupled to the memory to execute the stored instructions to run a policy engine to:
execute application code that includes a reference to a secret value inaccessible to the application code, the reference being in the form of a handle that contains the secret value, including passing the handle to injector code, and
execute the injector code, including
accepting the handle;
obtaining the secret value from the handle; and
using the secret value in an operation on behalf of the application code.

### Claim 13 (depends on 12)

The system of claim 12 wherein obtaining the secret value from the handle comprises unwrapping the secret handle to get the secret value.

### Claim 14 (depends on 12)

The system of claim 12 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into the operation that depends on the secret value.

### Claim 15 (depends on 12)

The system of claim 12 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into an outgoing network request.

### Claim 16 (depends on 12)

The system of claim 12 where the one or more processors are configured to remove the secret value from a response to the request prior to before the response back to the application code.

### Claim 17

One or more non-transitory computer readable storage media having instructions stored thereupon which, when executed by a system having at least a processor and a memory therein, cause the system to perform a method to prevent secret misuse, the method comprising:
executing application code that includes a reference to a secret value inaccessible to the application code, the reference being in the form of a handle that contains the secret value, including passing the handle to injector code; and
executing the injector code, including
accepting the handle;
obtaining the secret value from the handle; and
using the secret value in an operation on behalf of the application code.

### Claim 18 (depends on 17)

The one or more non-transitory computer readable storage media of claim 17 wherein obtaining the secret value from the handle comprises unwrapping the secret handle to get the secret value.

### Claim 19 (depends on 17)

The one or more non-transitory computer readable storage media of claim 17 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into the operation that depends on the secret value.

### Claim 20 (depends on 17)

The one or more non-transitory computer readable storage media of claim 17 wherein using the secret value in an operation on behalf of the application code comprises injecting the secret value into an outgoing network request, and wherein the method further comprises removing the secret value from a response to the request prior to before the response back to the application code.
