amazon web services - Security of public S3 objects with random keys -
i have s3 bucket containing objects want share users of website. know can use query string authentication provide secure access objects, if instead make each object publicly-readable yet "hidden" behind complex key (i.e. url) containing cryptographically-strong random number? if containing bucket disallows listing of objects, there wouldn't way guess or discover urls, correct? or there security hole i'm overlooking?
side note: first thought use uuids in keys, read can apparently predicted, given few previous instances. said, don't have understanding of how can done. if it's non-trivial, wouldn't worry using them instead of strong random number...
the problem if once shared url gets hands of user (say via sharing). if ensure url kept sufficiently secret, ok approach (say return url user via https, , user dont share it).
any loophole here cause security hole - , here query string based signature scheme helpful, since signatures made expire after fixed time , re-sharing wont harm you.
you can use uuids (ensure dont end duplicating, regenerating 1 if new 1 collides). difficult (or more) guess other 8-letter password.
Comments
Post a Comment