makeporngreatagain.pro
yeahporn.top
hd xxx

How to Prevent Uploads of Unencrypted Objects to Amazon S3

1,108
  1. Navigate to AWS Console: https://console.aws.amazon.com
  2. Navigate to S3 from service menu > Select a S3 bucket > Permission tab > Bucket Policy
  3. Now you would need to paste the bucket policy which will enforce encryption on your bucket
    1. Using SSE-S3 managed keys
      {
           "Version": "2012-10-17",
           "Id": "PutObjPolicy",
           "Statement": [
                 {
                      "Sid": "DenyIncorrectEncryptionHeader",
                      "Effect": "Deny",
                      "Principal": "*",
                      "Action": "s3:PutObject",
                      "Resource": "arn:aws:s3:::<bucket_name>/*",
                      "Condition": {
                              "StringNotEquals": {
                                     "s3:x-amz-server-side-encryption": "AES256"
                               }
                      }
                 },
                 {
                      "Sid": "DenyUnEncryptedObjectUploads",
                      "Effect": "Deny",
                      "Principal": "*",
                      "Action": "s3:PutObject",
                      "Resource": "arn:aws:s3:::<bucket_name>/*",
                      "Condition": {
                              "Null": {
                                     "s3:x-amz-server-side-encryption": true
                              }
                     }
                 }
           ]
       }
    2. Using SSE-KMS managed keys
      {
             "Version": "2012-10-17",
             "Id": "PutObjPolicy",
             "Statement": [
                 {
                      "Sid": "DenyIncorrectEncryptionHeader",
                      "Effect": "Deny",
                      "Principal": "*",
                      "Action": "s3:PutObject",
                      "Resource": "arn:aws:s3:::<bucket_name>/*",
                      "Condition": {
                          "StringNotEquals": {
                                "s3:x-amz-server-side-encryption": "aws:kms"
                                   }
                         }
                 },
                 {
                      "Sid": "DenyUnEncryptedObjectUploads",
                      "Effect": "Deny",
                      "Principal": "*",
                      "Action": "s3:PutObject",
                      "Resource": "arn:aws:s3:::<bucket_name>/*",
                      "Condition": {
                          "Null": {
                                "s3:x-amz-server-side-encryption": true
                                  }
                          }
                 }
          ]
      }
  4. Once you paste the policy of your encryption choose, try to upload something without selecting encryption setting it will fail
  5. Now try upload some file with encryption setting checked, it will be upload sucessfully
Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.