1. Configure Server-side encryption to the Artifactory S3 bucket. Below link for reference:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/specifying-kms-encryption.html.
2. Use KMS details in the binary store template.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/specifying-kms-encryption.html.
<config version="2"> <chain template="cluster-s3-storage-v3"/> <provider id="s3-storage-v3" type="s3-storage-v3"> <endpoint>s3.amazonaws.com</endpoint> <bucketName>bucketName</bucketName> <path>pathPrefix</path> <region>s3Region</region> <identity>yourIdentity</identity> <credential>yourCredentials</credential> <usePresigning>true</usePresigning> <signatureExpirySeconds>600</signatureExpirySeconds> <kmsClientSideEncryptionKeyId>*****</kmsClientSideEncryptionKeyId> </provider> </config>
2. Use KMS details in the binary store template.
<config version="2"> <chain template="cluster-s3-storage-v3"/> <provider id="s3-storage-v3" type="s3-storage-v3"> <endpoint>s3.amazonaws.com</endpoint> <bucketName>bucketName</bucketName> <path>pathPrefix</path> <region>s3Region</region> <identity>yourIdentity</identity> <credential>yourCredentials</credential> <usePresigning>true</usePresigning> <signatureExpirySeconds>600</signatureExpirySeconds> <kmsClientSideEncryptionKeyId>*****</kmsClientSideEncryptionKeyId> </provider> </config>