gpt4 book ai didi

amazon-web-services - CloudFront自定义策略的多个策略声明(签名的Cookie)

转载 作者:行者123 更新时间:2023-12-03 14:22:03 34 4
gpt4 key购买 nike

在将CloudFront自定义策略用于签名的Cookie(非签名的URL)时,是否可以使用多个语句创建策略?

我已经阅读了documentation,尽管所有示例都只有一个语句,但是我看不到关于允许的语句数量的明确规则。

如果不可能有多个策略语句,则将很难仅使用CloudFront安全性授予特定用户签名的cookie访问权限,例如五个随机文件。任何有关如何做到这一点的技巧将不胜感激。

这个问题在这里交叉发布:https://forums.aws.amazon.com/thread.jspa?threadID=223440&tstart=0

最佳答案

费耶

我遇到了同样的问题,并与官方的AWS支持团队联系。

 Hello, thanks for offering us a great service. 
I am an software engineer from Japan.

Can we have multiple custom policies, like below syntax?

{
"Statement": [
{ ... },
{ ... },
{ ... },
]
}

I have searched on the web, and found ones who are trying to
do the same thing and forums/Q&A as well.

However we found no answer from AWS official support teams
nor documents saying about that.

JSON syntax is array, so it seems to work with
multiple statements but do not work.

So, if it does not work, would you add a sentence
about that on the official document?


然后,我昨天得到了答案:

I just heard back this morning. 

You're correct, adding more than one statement
to a custom policy is not supported.

I'm updating the documentation now.


因此,我认为几天后文档会更新,您无法为CF定制策略的预签名Cookie设置多个策略声明。

关于amazon-web-services - CloudFront自定义策略的多个策略声明(签名的Cookie),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34688230/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com