简体   繁体   English

使用AWS S3 SDK在S3和我的数据中心之间传输数据是否安全?

[英]Is is secure to transfer data between S3 and my data center using AWS S3 SDK?

I want to use AWS SDK to upload/download files from a private S3 bucket using Java to our data center. 我想使用AWS开发工具包从使用Java的私有S3存储桶中上传/下载文件到我们的数据中心。

I am planning to use following code 我打算使用以下代码

AmazonS3 s3Client = new AmazonS3Client(credentials);
s3Client.putObject(new PutObjectRequest(bucket, key, fileToUpload));
S3Object s3object = s3Client.getObject(new GetObjectRequest(bucket, key));

Will the data be traveling between S3 and our Datacenter in plain text or will it use some form of secure transport like SSL? 数据将以纯文本格式在S3和我们的数据中心之间传输还是会使用SSL等某种形式的安全传输?

The default for communication is SSL. 通信的默认值为SSL。 While HTTP is available, you would have to specifically use it. HTTP可用时,您必须专门使用它。 For example, from this page , you would have to do something like: 例如,在此页面中 ,您将必须执行以下操作:

AmazonS3 s3Client = new AmazonS3Client(credentials); 
s3Client.setEndpoint("http://s3-us-west-1.amazonaws.com");

with the endpoints taken from this page . 端点取自此页面

Since you're using the defaults, your communication is via SSL/HTTPS. 由于您使用默认值,因此您的通信是通过SSL / HTTPS进行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM