【问题标题】:What is equivalent of SAS (shared access signature) feature of Azure Storage on S3?什么相当于 S3 上 Azure 存储的 SAS(共享访问签名)功能?
【发布时间】:2013-10-18 21:41:19
【问题描述】:

Azure 提供共享访问签名([1]、[2]、[3]),可以将访问(读/写)委托给 Azure 存储帐户中的特定 blob/容器/表/队列使用通过 REST API 生成的访问密钥。 AWS 是否提供类似功能?

【问题讨论】:

  • 您可以使用 S3 存储桶策略或 IAM 策略。

标签: azure amazon-web-services amazon-s3 azure-storage


【解决方案1】:

它几乎与 Azure 提供的相同,只是没有像 SAS 这样的特殊名称。详情请见http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html

【讨论】:

    【解决方案2】:

    Amazon AWS 中的共享访问签名等效为 Query String Authentication,但它仅适用于 Amazon S3(等效于 Windows Azure Blob 存储)。 AWS 没有任何类似于 SimpleDB/DynamoDB(Windows Azure 表存储的对应部分)和 Simple Queue Service(Windows Azure 队列服务的对应部分)的共享访问签名。

    我还在一系列博客文章中对 Amazon AWS 和 Windows Azure 存储服务(S3 v/s Blob 存储等)进行了比较,您可以在此处阅读:http://gauravmantri.com/?s=Amazon+Comparing。认为您可能会发现它很有用。

    【讨论】:

      【解决方案3】:

      我还没有尝试过,但似乎是预签名 URL:请参阅 http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-examples.html 的“Amazon S3:获取具有特定负载的 PUT 操作的预签名 URL”部分

      【讨论】:

        【解决方案4】:

        S3 中的预签名 URL 是等效的: https://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURL.html

        还有一些方法可以用本文档中没有提到的 SDK 生成,你可以google一下。

        例如 Python: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html

        【讨论】:

          猜你喜欢
          • 2015-10-29
          • 1970-01-01
          • 2020-05-09
          • 2012-11-07
          • 2018-04-23
          • 2021-04-17
          • 1970-01-01
          • 2022-10-21
          • 2023-04-05
          相关资源
          最近更新 更多