Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enterprise BYOK #6845

Merged
merged 11 commits into from
Jan 12, 2024
18 changes: 18 additions & 0 deletions source/_static/badges/ent-cloud-dedicated.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:orphan:
:nosearch:

.. raw:: html

<div class="mm-badge">

|plans-img| Available only on `Enterprise <https://mattermost.com/pricing/>`__ plans
stafot marked this conversation as resolved.
Show resolved Hide resolved

|deployment-img| Available only for `Cloud Dedicated <https://customers.mattermost.com/cloud/signup/>`__ deployments

.. |plans-img| image:: ../_static/images/badges/flag_icon.svg

.. |deployment-img| image:: ../_static/images/badges/deployment_icon.svg

.. raw:: html

</div>
1 change: 1 addition & 0 deletions source/guides/cloud-workspace-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Cloud workspace management
* :doc:`Workspace usage </manage/workspace-usage>` - Keep your workspace active.
* :doc:`Workspace migration </manage/cloud-data-export>` - Migrate your workspace using the mmctl tool.
* :doc:`Cloud data residency </manage/cloud-data-residency>` - Find information about your data in the Cloud.
* :doc:`Cloud Bring Your Own Key(BYOK) </manage/cloud-byok>` - Find information about Bring Your Own Key feature for your Mattermost Cloud dedicated workspace.
stafot marked this conversation as resolved.
Show resolved Hide resolved
80 changes: 80 additions & 0 deletions source/manage/cloud-byok.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
Cloud Dedicated Bring Your Own Key
===================================

.. include:: ../_static/badges/ent-cloud-dedicated.rst
:start-after: :nosearch:

Bring Your Own Key aims to provide dedicated enterprise customers with the capability to introduce their encryption keys and manage their lifecycle within the cloud infrastructure. This approach ensures that customers have full control over their data encryption processes, enhancing data security and compliance. It not only enhances data security but also provides customers with autonomy over their encryption key lifecycle, aligning with the primary goal of supporting encryption at rest with custom KMS keys provided and maintained by the customers. BYOK requires a subscription to Mattermost Cloud Enterprise Dedicated.
stafot marked this conversation as resolved.
Show resolved Hide resolved

In Mattermost Dedicated, you can use KMS keys in two ways:
stafot marked this conversation as resolved.
Show resolved Hide resolved

- One KMS key for all services
stafot marked this conversation as resolved.
Show resolved Hide resolved
- Per-service KMS keys (EBS, RDS, S3)
- Keys do not need to be unique to each service.
- All services must be encrypted at rest.
- Selective enablement of this feature can be supported.
- Keys do not need to be unique to each service.
stafot marked this conversation as resolved.
Show resolved Hide resolved
- In case a customer needs a global database the recommendation from the Infrastructure SRE team is to provide us 2 KMS keys, 1 per region.
stafot marked this conversation as resolved.
Show resolved Hide resolved

Configure BYOK
------------------------
1. Customer to provide their AWS KMS ARN to our infrastructure SRE team.
stafot marked this conversation as resolved.
Show resolved Hide resolved
2. Customer need to add the following blocks to their KMS Policy for the AWS KMS ARN provided
stafot marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: JSON

{
"Sid": "Allow use of the key",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<MATTERMOST_AWS_ACCOUNT_ID>:user/mattermost-cloud-<environment>-provisioning-<VPC_ID>"
},
"Action": [
"kms:Encrypt",
"kms:Decrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
"kms:DescribeKey"
],
"Resource": "<CUSTOM_CUSTOMER_KMS_ID>"
},
{
"Sid": "Allow use of the key role nodes",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<MATTERMOST_AWS_ACCOUNT_ID>:role/nodes.<CLUSTER_ID>-kops.k8s.local"
},
"Action": [
"kms:Encrypt",
"kms:Decrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
"kms:DescribeKey"
],
"Resource": "<CUSTOM_CUSTOMER_KMS_ID>"
},

3. Infrastructure SRE team need to update kops cluster and S3, RDS resources after KMS policy is updated on customer's end.
stafot marked this conversation as resolved.
Show resolved Hide resolved

An alternative configuration path that Mattermost offers is that the customer provides an external key (non-KMS) to the infrastructure SRE team and the team maintains all the key lifecycle and the relevant resources for the customer.
stafot marked this conversation as resolved.
Show resolved Hide resolved
This path offers less control to customers but simplifies the setup process.

Requirements
~~~~~~~~~~~~~~~~~~~~~~~

- Customers must possess their AWS Account. (In the alternative path mentioned above this is delegated to Mattermost)
stafot marked this conversation as resolved.
Show resolved Hide resolved
- Customers oversee the maintenance lifecycle of their custom KMS key.
stafot marked this conversation as resolved.
Show resolved Hide resolved
- A valid AWS KMS arn for encrypting storage and databases should be provided to the Infrastructure SRE team.
cwarnermm marked this conversation as resolved.
Show resolved Hide resolved
cwarnermm marked this conversation as resolved.
Show resolved Hide resolved
- Incorporate blocks from the Infrastructure SRE team into their KMS key policy.
stafot marked this conversation as resolved.
Show resolved Hide resolved

Considerations
~~~~~~~~~~~~~~~~~~~~~~~
- Changing the AWS KMS key in the database necessitates downtime due to AWS Aurora's encryption limitations.
stafot marked this conversation as resolved.
Show resolved Hide resolved
- Proper communication is essential for setting expectations and scheduling changes.

Conclusion
--------------

If you are a large enterprise with compliance requirements or working in highly-regulated industries using Mattermost Cloud Dedicated with BYOK ensures full data control.
stafot marked this conversation as resolved.
Show resolved Hide resolved

For any further assistance or queries, `contact our support team </https://mattermost.com/support/>`__.