Skip to content
Cloud Governance Tools

Deny S3 customer-provided encryption keys (SSE-C)

Deny S3 customer-provided encryption keys (SSE-C) is an AWS guardrail written in resource control policies. Denies s3:PutObject when the request carries the SSE-C customer algorithm header. What it breaks: uploads that use customer-provided keys are denied for all callers; AWS warns deny-based RCPs can unintentionally block use of AWS services without needed exceptions.

More encryption and keys guardrails ยท About Resource control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RestrictSSECObjectUploads",
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:PutObject",
      "Resource": "*",
      "Condition": {
        "Null": {
          "s3:x-amz-server-side-encryption-customer-algorithm": "false"
        }
      }
    }
  ]
}
Blocks
Denies s3:PutObject when the request carries the SSE-C customer algorithm header.
Breaks
Uploads that use customer-provided keys are denied for all callers; AWS warns deny-based RCPs can unintentionally block use of AWS services without needed exceptions. (source)
Test before applying
As for every Resource control policies guardrail: how to test before enforcing
Mechanism
Resource control policies (RCPs): Resources of supported services in member accounts, for any principal calling them; not resources in the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE

What the policy text names

It names 1 action or pattern: s3:PutObject. Its conditions test s3:x-amz-server-side-encryption-customer-algorithm.

What the source says

s3:x-amz-server-side-encryption-customer-algorithm (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see Resource control policies.

Sources

  1. Deny S3 customer-provided encryption keys (SSE-C), read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026

Last reviewed 16 Nov 2026.