Bring Your Own Key

Scope

Bring Your Own Key (BYOK) is a security feature that allows organizations to use their own encryption keys to protect their data. This ensures that they maintain control over their encryption keys and, consequently, their data.

BYOK is only available for Enterprise-level support accounts.

BYOK setup

For versions earlier than v100.39.0, BYOK setup requires Illumina Support.

For versions v100.39.0 and later, you can complete the setup from Organization settings.

Supported Key Management Services

Illumina integrates with leading Key Management Services (KMS), including Azure Key Vault and AWS KMS, so organizations can maintain full control over their encryption keys. These integrations combine Illumina’s Bring Your Own Key (BYOK) feature with your preferred KMS provider to deliver robust key management and enhanced data security.

Azure Key Vault

Azure Key Vault is a cloud service that provides a secure way to store and manage sensitive information like API keys, passwords, and certificates. It offers robust features for key management, including key generation, storage, and lifecycle management.

AWS KMS

AWS Key Management Service (KMS) allows you to create and control encryption keys used to encrypt your data across a wide range of AWS services and applications. It provides centralized management of encryption keys and integrates seamlessly with other AWS services.

Risk of losing a key


Setup

Azure Key Vault Setup

The API server encrypts the organization's information before storing it in the database and decrypts it when needed (e.g., during pipeline execution). The key vault is managed by the organization.

To configure encryption in Emedgene, you need the following information from Azure Key Vault:

Application tokens:

  • Client Id

  • Tenant Id

  • Client Secret

The key information:

  • Key URL

Create a new application

1

Navigate to App registrations

2

Click Register to create a new application and and fill in the required details

3

After registration, copy and save the Application (Client) ID and Directory (Tenant) ID

Add a client secret

1

In the left menu, select Certificates & Secrets

2

Click New client secret. Copy and save the Value (Client Secret) immediately, as it is shown only once.

Please note the expiration date. If the secret expires, encryption will fail.

Create a new key

1

Click New Key (Create key vault)

2

Specify the key vault name, region (for example, East US), and pricing tier

3

Click Next to go to Access Policies

4

Select Add access policy, and set Key permissions:

  • Key Management Operations

  • Cryptographic Operations: Decrypt, Encrypt, Unwrap Key, Wrap Key

5

Set Secret permissions:

  • Secret Permission: Get

  • Select Principal: select the application you created earlier

6

Finish with Review + create

Find key details

1

Navigate to the newly created Key vault

2

In the left menu, select Keys, and then select the key

3

Select the current version

4

Copy the Key Identifier (Key URL):

https://<key-vault-name>.vault.azure.net/keys/<key-name>/<key-version>

AWS Key Management Service (KMS) Setup

Description is coming soon.

Please reach out to [email protected] to get help with this setup.


Architecture

The API server will encrypt the client's information before storing it in a database and decrypt that information when needed (e.g., running the pipeline). The key vault is managed by the client, and Emedgene will only be provided with access to encrypt/decrypt functions in that key vault. This guarantees that clients control access to the information.

Illustration of data flow when creating a case in Emedgene platform:

Drawing
Creating a case in emedgene platform

Illustration of data flow when reading a case data from emedgene platform:

Drawing
Reading a case data from emedgene platform

A preliminary step to this solution is having a key vault owned by the client, and a key that Emedgene is given access to.

The client will create an access policy in the key vault of type “Application” and provide the matching key and secret to Emedgene. The access policy must contain permissions to perform encrypt and decrypt actions.

In order for Emedgene to integrate with the key, depending on the key vault provider, the client needs to provide the following information:

  • Client Id

  • Client Secret

  • Tenant Id

  • Key vault name

  • Key name

Searching Encrypted Fields

Since some of our platform search capabilities run directly on the DB, we can’t directly search any data that is encrypted. To overcome this, we will implement a hashing search functionality as follows.

  • The case data will still be fully encrypted in the DB as it is today

  • Specific fields we want to make “searchable” - as defined by the customer, we will save their hash value alongside the encrypted data.

  • Hashing will be done using SHA-256, and will include a secure random generated salt of 32 characters, which will be added to the value.

  • The salt is unique and will not be used anywhere else in the platform.

  • When the user enters a string to search, we will hash that value using all the salt values, and search those hash values.

Illustration of data flow when searching in Emedgene platform:

Drawing

Illustration of data flow when creating a case with searchable field in Emedgene platform:

Drawing

Appendix

Appendix: Control flows text

Write:

Client->Emedgene API: Add New Test Request 
note right of Emedgene API: Process Request 
Emedgene API->Key Vault: PHI 
note right of Key Vault: Encrypt 
Key Vault->Emedgene API: Encrypted PHI 
Emedgene API->Emedgene DB: Store Encrypted PHI

Read

Client->Emedgene API: Get Test Request 
emedgene DB->Emedgene API: Encrypted PHI 
Emedgene API->Key Vault: Encrypted PHI 
note right of Key Vault: Decrypt 
Key Vault->Emedgene API: Decrypted PHI 
Emedgene API->Client: Decrypted PHI

Write Searchable

Client->Emedgene API: Add New Test Request 
note right of Emedgene API: Process Request 
Emedgene API->Key Vault: PHI 
note right of Key Vault: Encrypt 
Key Vault->Emedgene API: Encrypted PHI 
Emedgene API-> Emedgene DB: Get Salt 
Emedgene API-> Emedgene API: Hash Value using Salt 
Emedgene API->Emedgene DB: Store Encrypted PHI + Hashed value

Read Searchable

Client->Emedgene API: Search string 
Emedgene API->AWS Secrets: Get Salt 
Emedgene API-> Emedgene API: Hash string using Salt 
Emedgene API->Emedgene DB: Search hashed string 
Emedgene DB->Emedgene API: Search results 
Emedgene API->Client: Search results

Last updated

Was this helpful?