Data encryption in CloudWatch Omni
CloudWatch Omni encrypts your data at rest and in transit. This page describes what is encrypted, which keys are used, and what your AWS KMS key policy must allow.
To choose what content enters your telemetry, see Protect sensitive data. To configure a customer managed key on your space, see Set up Omni.
Encryption at rest
| Store | Default encryption | Customer managed key |
|---|---|---|
| Telemetry in your space, held in the CloudWatch Dataset | Managed by CloudWatch Omni | Supported for enabled accounts. Configure the key on the space. |
| Intelligence data: observations, anomalies, insights, and the context graph | Managed by CloudWatch Omni | Supported. Set the key for your account. See Set a customer managed key for Intelligence. |
| Evaluation job and configuration metadata | AWS KMS key | Supported |
| Staging storage in Amazon S3 | SSE-S3, with versioning and TLS-enforced access | — |
| Forward access session credentials | A dedicated service-managed AWS KMS key. These credentials are envelope-encrypted, bound by encryption context to the job that uses them, and never written to logs. | Service-managed |
Customer managed key support is enabled per account, so the option might
not appear when you configure your space. Removing a customer managed key
from a space requires kms:Decrypt on the outgoing key, so the
caller can still read data already written under it.
Files that CloudWatch Omni writes to your own machine are not
encrypted by the service. When you use the IDE extension and
local development tools, telemetry can be written under a local
.omni/ directory, including raw prompts and responses. These
files are plaintext and rely on your operating-system file permissions. Local
mode keeps your telemetry off the network until you choose to send it, but it
does not encrypt it at rest. Protecting these files is your responsibility, and
the sample .gitignore that ships with the tooling re-includes
several .omni/ data files, so raw trace content can be committed to
source control. Available in the IDE extension only.
Key management
If you use a customer managed AWS KMS key, your key policy must allow the following. Your policy needs both of the first two statements: when you attach the key with AssociateDatasetKmsKey, CloudWatch checks your own access to the key before it checks the service's, so a policy that grants only the CloudWatch service principal is denied for the caller and the key is rejected.
-
Dry-run checks signed by the CloudWatch service principal. When you attach a customer managed key to a space, CloudWatch Omni performs dry-run
kms:Decryptandkms:GenerateDataKeycalls against your key, using the encryption context{"aws:cloudwatch:arn":"arn:aws:cloudwatch:<region>:<account-id>:space/<space-id>"}. Both must succeed, or the key is rejected when you attach it. The service repeats the check on later requests. A key policy that is narrowed after you attach the key fails closed rather than silently. These calls are signed by the CloudWatch service principal,cloudwatch.amazonaws.com, and not by you. Grant that principal both actions on the encryption context above, and condition the statement onaws:SourceArnfor the space ARN. Because the context is an ARN, you can grant onarn:aws:cloudwatch:<region>:<account-id>:space/*before you create a space, then narrow to a specific space afterward. -
kms:DescribeKeyfor the principal that configures the key. Grant this in a statement of its own, with no encryption context condition.DescribeKeyrequests do not carry an encryption context, so this action cannot sit under the condition that scopes the crypto grants. -
Crypto operations on evaluation metadata. When you configure a customer managed key for evaluation metadata, the service requires
kms:Decrypt,kms:DescribeKey, andkms:GenerateDataKeyon that key. -
Permissions you need to set the Intelligence key
You can grant these permissions in an IAM policy or in the key policy.
When you call
PutIntelligenceConfigurationwithkmsKeyArn, your IAM credentials need the following permissions on the key:-
Grant
kms:Decryptfor a dry-run check, with the encryption context{"aws:cloudwatch:account":".account-id"} -
Grant
kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom, andkms:ReEncryptToto create the encryption key that CloudWatch Omni keeps for your account, with the encryption context keyaws-crypto-ec:aws:cloudwatch:accountand your account ID as its value.
The cryptographic calls include your account ID in the encryption context. If your policy restricts calls by encryption context, allow
kms:Decryptunderaws:cloudwatch:account. Allow the other three actions underaws-crypto-ec:aws:cloudwatch:account. If your policy allows only one context, the request fails. The service adds theaws-crypto-ec:prefix, so include it in the condition key.To remove the key (
removeKmsKey), you needkms:Decrypton the currently configured key, under the encryption contextaws:cloudwatch:account. Switching to a different key needs permissions only on the new key.The CloudWatch Omni managed policies do not grant
kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom, orkms:ReEncryptTo. For the steps and a sample IAM policy, see Set a customer managed key for Intelligence. -
Scope of the dataset key: AssociateDatasetKmsKey and DisassociateDatasetKmsKey operate on the Dataset, which holds your space's telemetry. The key is associated at the Dataset level rather than per signal type, so associating a customer managed key covers everything the Dataset holds, and disassociating it reverts all of it.
Sample key policy
The following sample key policy covers every way CloudWatch Omni uses your key: the
space and Dataset checks described above, the material the service encrypts on
your behalf, forwarded telemetry entering the Dataset, and reads by the space
operator role. Add the statements you need to your key policy. Replace
111122223333 with your account ID and us-east-1
with your Region.
{ "Version": "2012-10-17", "Id": "omni-cmk-key-policy", "Statement": [ { "Sid": "EnableRootKeyAdministration", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:root" }, "Action": "kms:*", "Resource": "*" }, { "Sid": "AllowCloudWatchIntelligenceDescribeKey", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": "kms:DescribeKey", "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" } } }, { "Sid": "AllowCloudWatchIntelligenceEncryptionService", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": [ "kms:GenerateDataKey", "kms:Encrypt", "kms:Decrypt" ], "Resource": "*", "Condition": { "StringEquals": { "kms:EncryptionContext:aws:cloudwatch:account": "111122223333" } } }, { "Sid": "AllowOmniIntelligenceBranchKey", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": [ "kms:GenerateDataKey", "kms:GenerateDataKeyWithoutPlaintext", "kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*" ], "Resource": "*", "Condition": { "StringEquals": { "kms:EncryptionContext:aws-crypto-ec:aws:cloudwatch:account": "111122223333" } } }, { "Sid": "AllowCloudWatchDatasetDescribeKey", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": "kms:DescribeKey", "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" }, "ArnLike": { "aws:SourceArn": "arn:aws:cloudwatch:us-east-1:111122223333:dataset/default" } } }, { "Sid": "AllowCloudWatchDatasetEncryption", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": [ "kms:GenerateDataKey", "kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*" ], "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333", "kms:EncryptionContext:aws:cloudwatch:arn": "arn:aws:cloudwatch:us-east-1:111122223333:dataset/default" }, "ArnLike": { "aws:SourceArn": "arn:aws:cloudwatch:us-east-1:111122223333:dataset/default" } } }, { "Sid": "AllowCloudWatchSpaceDescribeKey", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": "kms:DescribeKey", "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" }, "ArnLike": { "aws:SourceArn": "arn:aws:cloudwatch:us-east-1:111122223333:space/*" } } }, { "Sid": "AllowCloudWatchSpaceEncryptionService", "Effect": "Allow", "Principal": { "Service": "cloudwatch.amazonaws.com" }, "Action": [ "kms:Encrypt", "kms:Decrypt", "kms:GenerateDataKey" ], "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "111122223333" }, "StringLike": { "kms:EncryptionContext:aws:cloudwatch:arn": "arn:aws:cloudwatch:us-east-1:111122223333:space/*" }, "ArnLike": { "aws:SourceArn": "arn:aws:cloudwatch:us-east-1:111122223333:space/*" } } }, { "Sid": "AllowCallerDatasetForwarding", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/service-role/CloudWatchOmniDatasetIntegrationExecutionRole-1234567890123" }, "Action": [ "kms:GenerateDataKey", "kms:Encrypt", "kms:Decrypt" ], "Resource": "*", "Condition": { "StringEquals": { "kms:EncryptionContext:aws:cloudwatch:arn": "arn:aws:cloudwatch:us-east-1:111122223333:dataset/default", "kms:ViaService": "cloudwatch.us-east-1.amazonaws.com" } } }, { "Sid": "AllowOperatorRoleDecrypt", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/service-role/CloudWatchOmniSpaceAccessRole-1234567890123" }, "Action": "kms:Decrypt", "Resource": "*", "Condition": { "StringEquals": { "kms:ViaService": "cloudwatch.us-east-1.amazonaws.com" } } }, { "Sid": "AllowOperatorRoleIntelligenceDecrypt", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/service-role/CloudWatchOmniSpaceAccessRole-1234567890123" }, "Action": "kms:Decrypt", "Resource": "*", "Condition": { "StringEquals": { "kms:EncryptionContext:aws-crypto-ec:aws:cloudwatch:account": "111122223333" } } } ] }
The role ARNs in this sample use the form that setup creates in a single
account: the service-role/ path and a numeric suffix on the role
name. Replace each one with the exact ARN of the role in your account, which you
can copy from the IAM console. For an organization domain, the space operator
role is CloudWatchOmniOperatorRole at the root path, with no
suffix.
What each group of statements is for:
-
Root key administration keeps your account able to manage the key. Do not remove it.
-
The
cloudwatch.amazonaws.comstatements let the service encrypt and read your space content, your Dataset, and the analysis material the service builds from your telemetry. The encryption-context andaws:SourceArnconditions restrict each statement so the key can be used only for CloudWatch Omni resources in your own account. -
AllowCallerDatasetForwardinglets the Dataset integration execution role write forwarded logs and traces into a Dataset encrypted with this key. If you created your own execution role, use its ARN here. See Send telemetry to CloudWatch Omni. -
The operator-role statements let the space operator role read data encrypted under the key, only through CloudWatch (
kms:ViaService).
Set a customer managed key for Intelligence
CloudWatch Omni can encrypt your Intelligence data (observations, anomalies,
insights, and the context graph) with a customer managed key. You set the key
with the PutIntelligenceConfiguration operation, using your own IAM
credentials. For the request syntax, see the PutIntelligenceConfiguration API reference.
For what each permission is for, see Key management.
To set a customer managed key for Intelligence
-
Open the Customer managed keys page of the AWS KMS console
, or use the AWS CLI with credentials for your account. -
Select a symmetric encryption AWS KMS key, or create one.
-
Confirm that the key is in your account and in the Region where you use Intelligence.
-
In the key policy, add the Intelligence statements for
cloudwatch.amazonaws.com. You can copy them from Sample key policy.-
Add
AllowCloudWatchIntelligenceDescribeKey. -
Add
AllowCloudWatchIntelligenceEncryptionService. -
Add
AllowOmniIntelligenceBranchKey.
-
-
In the key policy, keep the root key administration statement, so that you can grant access to the key with the IAM policy in a later step.
-
Set the
cw-omnitag totrueon the key. The space operator role reads Intelligence data in the CloudWatch Omni console throughCloudWatchOmniSpaceAccessPolicy, which covers only keys with this tag. -
Grant the IAM principal that calls the API the permissions to set the key.
-
The following IAM policy grants the permissions to call
PutIntelligenceConfigurationwith your key. It contains example values for your account ID, Region, and key ID, which you replace in the next substep. Copy this policy:{ "Version": "2012-10-17", "Statement": [ { "Sid": "IntelligenceConfiguration", "Effect": "Allow", "Action": [ "cloudwatch:PutIntelligenceConfiguration", "cloudwatch:GetIntelligenceConfiguration" ], "Resource": "*" }, { "Sid": "IntelligenceKeyCheck", "Effect": "Allow", "Action": "kms:Decrypt", "Resource": "arn:aws:kms:aa-example-1:111122223333:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "Condition": { "ForAnyValue:StringEquals": { "aws:CalledVia": ["cloudwatch.amazonaws.com"] }, "StringEquals": { "kms:EncryptionContext:aws:cloudwatch:account": "111122223333" } } }, { "Sid": "IntelligenceAccountKey", "Effect": "Allow", "Action": [ "kms:GenerateDataKeyWithoutPlaintext", "kms:ReEncryptFrom", "kms:ReEncryptTo" ], "Resource": "arn:aws:kms:aa-example-1:111122223333:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "Condition": { "ForAnyValue:StringEquals": { "aws:CalledVia": ["cloudwatch.amazonaws.com"] }, "StringEquals": { "kms:EncryptionContext:aws-crypto-ec:aws:cloudwatch:account": "111122223333" } } } ] } -
Replace the example values:
-
111122223333— your account ID. -
aa-example-1— your Region. -
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111— your key ID.
You can also rename the
Sidvalues. -
-
Attach the policy to the IAM principal that calls the API.
With
IntelligenceConfiguration, you can read and save the Intelligence configuration. WithIntelligenceKeyCheck, CloudWatch Omni can run the dry-runkms:Decryptcheck under your account's encryption context. WithIntelligenceAccountKey, CloudWatch Omni creates the encryption key that it keeps for your account, under the prefixed encryption context. The two cryptographic statements apply only to calls that CloudWatch makes on your behalf (aws:CalledVia). -
-
Set the key. For example, with the AWS CLI. In the following command, replace the example values with your Region, account ID, and key ID:
aws cloudwatchomni put-intelligence-configuration \ --regionaa-example-1\ --kms-key-arn \ arn:aws:kms:aa-example-1:111122223333:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111The response includes
kmsKeyArnwith your key ARN. -
Confirm the key. For example, with the AWS CLI. Replace the example Region with your Region:
aws cloudwatchomni get-intelligence-configuration \ --regionaa-example-1Check that
kmsKeyArnis your key ARN.
Encryption in transit
All communication with CloudWatch Omni service endpoints uses HTTPS with TLS. The public API endpoints require a minimum of TLS 1.2. We recommend TLS 1.3, and the service supports post-quantum hybrid key exchange. Amazon S3 access is TLS-enforced.
Telemetry ingestion is over HTTPS and is authenticated with Signature Version 4 or a bearer token. Unauthenticated requests are rejected with an HTTP 403 response.
CloudWatch Omni does not offer FIPS 140-3 validated endpoints. If you require FIPS 140-3 validated cryptographic modules, review this limitation before you send telemetry.
Operational data that CloudWatch Omni records about you
Request logs and audit events are delivered to AWS CloudTrail as management events, and include the resource ARN, the calling principal, the account ID, and the organization ID. Service metadata such as timestamps and resource identifiers is encrypted with AWS managed keys.