Amazon S3 403 AccessDenied错误 [英] Amazon S3 403 AccessDenied error
问题描述
从S3存储桶请求对象时,我从亚马逊收到一些奇怪的403错误.它似乎是断断续续的,并且只能连续快速地发生.
如果以后尝试访问相同的对象,通常可以毫无问题地检索它们.
我的直觉是这些错误是由于某种速率限制约束而发生的,但是我在文档中找不到任何内容.速率限制是否可能导致403错误?
我的问题是我请求的对象不存在.我不确定是否已经完成任何特殊的配置以使其成为403而不是404,但是直到今天,如果我尝试从存储桶中请求一个我肯定不存在的对象,我都会得到一个403.
使用403的原因可能是安全性之一;如果某人正在寻找对象,有时由于无法访问存在的对象而得到403,有时由于对象合法不在那里而得到404,则他们有可能获取一些敏感信息. >
I'm getting some odd 403 errors from amazon when requesting objects from an S3 bucket. It seems be intermittent and it only happens in rapid succession.
If I try to access the same objects at a later time, I can usually retrieve them without issue.
My gut feeling is that these errors are occurring because of some sort of rate-limiting constraint but I can't find anything in the docs. Is rate limiting a possible cause for a 403 error?
My issue was that the objects I was requesting didn't exist. I'm not sure if there's any special configuration we've done to make it a 403 rather than a 404, but to this day if I attempt to request an object from our bucket that I'm sure doesn't exist I get a 403.
The reason for a 403 is probably one of security; if someone is fishing for objects and sometimes they get a 403 because they don't have access to an object that exists and sometimes they get a 404 because the object legitimately isn't there, they can potentially obtain some sensitive information.
这篇关于Amazon S3 403 AccessDenied错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!