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

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

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.

```json
{
  "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](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps_examples.html))
- **Test before applying:** As for every Resource control policies guardrail: [how to test before enforcing](/mechanisms/rcp/)
- **Mechanism:** [Resource control policies (RCPs)](/mechanisms/rcp/): 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](https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Deny-SSE-C.json), 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](/mechanisms/rcp/).

## Related guardrails

- [Storage accounts should have the specified minimum TLS version](/guardrails/azure-policy-storage-min-tls/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Key vaults should have deletion protection enabled](/guardrails/azure-policy-keyvault-purge-protection/): Azure, Azure Policy (built-in definitions), encryption and keys
- [OS and data disks should be encrypted with a customer-managed key](/guardrails/azure-policy-disk-cmk/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Deny KMS key deletion](/guardrails/aws-scp-deny-kms-key-deletion/): AWS, Service control policies (SCPs), encryption and keys
- [Enforce a 30-day KMS key deletion window](/guardrails/aws-scp-kms-30-day-deletion-window/): AWS, Service control policies (SCPs), encryption and keys
- [Deny disabling default EBS encryption](/guardrails/aws-scp-deny-disable-ebs-default-encryption/): AWS, Service control policies (SCPs), encryption and keys

## Related pages

- [Restrict access to resources in a suspended OU (AWS Resource control policies)](/guardrails/aws-rcp-restrict-suspended-ou-resources/)
- [Block internet gateway ingress for VPCs (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-vpc-block-public-access/)
- [Block public sharing of EBS snapshots (declarative policy) (AWS Declarative policies)](/guardrails/aws-declarative-snapshot-block-public-access/)

## Sources

- Deny S3 customer-provided encryption keys (SSE-C): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Deny-SSE-C.json (read 10 Nov 2026)
- What it breaks: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps_examples.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-rcp-deny-s3-sse-c/
