cloudfoundry-community / s3-cf-service-broker

A Cloud Foundry Service Broker for Amazon S3
Apache License 2.0
22 stars 18 forks source link

Optional KMS Key ID in credential payload #15

Open davidehringer opened 9 years ago

davidehringer commented 9 years ago

An admin should be able to specify an option kms_key_id that is added to the service credentials payload to indicate what KMS key a service consumer can use for server side encryption.

An admin cloud enforce the usage of KMS by added something like the following to their bucket policy: { "Version":"2012-10-17", "Id":"PutObjPolicy", "Statement":[{ "Sid":"DenyUnEncryptedObjectUploads", "Effect":"Deny", "Principal":"*", "Action":"s3:PutObject", "Resource":"arn:aws:s3:::YourBucket/*", "Condition":{ "StringNotEquals":{ "s3:x-amz-server-side-encryption":"AES256" } } } ] }