我今天写了我的hello world AWS 程序——简单的文件上传到预制的 S3 存储桶。
在部署到客户端桌面的这个程序的上下文中(为了争论),我的秘密访问密钥安全吗?
using (AmazonS3Client a = new AmazonS3Client("MyAccessKey", "MySecretAccessKey"))
{
foreach (ListViewItem lvi in listView1.Items)
{
TransferUtilityUploadRequest tr = new TransferUtilityUploadRequest()
.WithBucketName("test_mydomain_com")
.WithFilePath(((FileInfo)lvi.Tag).FullName)
.WithTimeout(5 * 60 * 1000);
TransferUtility tu = new TransferUtility(a);
tu.Upload(tr);
MessageBox.Show("Win!");
}
}