简体   繁体   English

亚马逊s3政策仅授予对Vimeo api的访问权限

[英]Amazon s3 policy grants access only to Vimeo api

Is it possible to grant access, via a policy, only to Vimeo api to download the private content into my bucket? 是否可以通过策略仅授予Vimeo api将私有内容下载到我的存储桶中的权限?

I am trying to create a videos platform with RoR 5 and I am using paperclip to upload the videos to my S3 account. 我正在尝试使用RoR 5创建视频平台,我正在使用回形针将视频上传到我的S3帐户。 To avoid incompatibility problems with the videos I want use Vimeo to transcode and hosting them (I think is a better option than the transcoding service in cloud). 为了避免与我想要的视频出现不兼容问题,请使用Vimeo进行转码和托管(我认为这是比云中的转码服务更好的选择)。

So I have to use the Vimeo API to upload the videos to my Vimeo account and more specifically the option "Automatic (“pull”) uploads" 所以我必须使用Vimeo API将视频上传到我的Vimeo帐户,更具体地说是“自动(”拉“)上传选项”

where I need to pass "A url to a video file accessible by Vimeo's servers.", a S3 url in my case. 我需要将“网址传递给Vimeo服务器可访问的视频文件。”,在我的情况下是一个S3网址。 The problem is that I want to have private content in my S3 bucket, but so the vimeo API can't access to the video url. 问题是我想在我的S3存储桶中拥有私有内容,但是vimeo API无法访问视频网址。

According to AWS S3 documentation, this is possible. 根据AWS S3文档,这是可能的。 Follow this link for details: Restricting Access to a Specific HTTP Referrer . 有关详细信息,请访问此链接: 限制对特定HTTP Referrer的访问 However, I am not sure that api.vimeo.com is the name of the Vimeo server that pulls videos. 但是,我不确定api.vimeo.com是拉取视频的Vimeo服务器的名称。

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

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