> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/vault/configuring-vault/configure-backup-environment/amazon-aws-s3-storage-environment/bring-your-own-key-byok-with-vault.md).

# Bring Your Own Key (BYOK) with AutoRABIT Vault

## **Overview** <a href="#overview" id="overview"></a>

Using AutoRABIT Vault, you can implement **Bring Your Own Key (BYOK)** by importing encryption keys from **Amazon Web Services Key Management Service (AWS KMS)**. This feature is ideal for customers who want enhanced control over their encryption process — particularly for meeting internal security policies and regulatory requirements.

BYOK allows you to:

* Maintain ownership and lifecycle control over encryption keys.
* Leverage AWS KMS for encryption but retain exclusive control over key material.
* Enforce data sovereignty by managing keys independently of data storage.

## **Before You Begin** <a href="#before-you-begin" id="before-you-begin"></a>

Before configuring BYOK in AutoRABIT Vault, you must create a **Customer Master Key (CMK)** in your AWS account.

### Steps to create an AWS KMS CMK:

1. Log in to your [AWS Management Console](https://aws.amazon.com/console/).
2. Navigate to **Key Management Service (KMS)**.
3. Click **Create a Key** and follow the wizard to generate your CMK.
4. For detailed guidance, refer to the AWS documentation:\
   [Getting Started with AWS KMS](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html)

***

## **Using Key to Configure AWS-KMS in** AutoRABIT Vault <a href="#using-key-to-configure-awskms-in-vault" id="using-key-to-configure-awskms-in-vault"></a>

To use the key within AutoRABIT Vault:

1. Log in to your **AutoRABIT Vault** account.
2. Go to **Settings > Backup Environment**.
3. Under **Storage Environment**, select **AWS S3** as the storage type.
4. Choose the **Region** — this must match the region used during key creation in AWS KMS.
5. Enable the checkbox: **Automatically Encrypt data stored in AutoRABIT Vault.**
6. Select **AWS-KMS** as the encryption method.
7. Enter your **Master Key** (CMK ARN) from AWS KMS.
8. Enable the checkbox for **AR Vault Hosted Backup Environment**.
9. Click **Save Settings**.

<figure><img src="/files/k12IfuBTYWIEwaRhE2BR" alt="Vault BYOK AWS-KMS Configuration Screen" width="563"><figcaption><p>Vault configuration for AWS-KMS BYOK setup</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/vault/configuring-vault/configure-backup-environment/amazon-aws-s3-storage-environment/bring-your-own-key-byok-with-vault.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
