Skip to content

Cannot access S3 bucket root when the access policy checks for empty prefix#111

Open
martinprikryl wants to merge 1 commit intobji:masterfrom
martinprikryl:patch-2
Open

Cannot access S3 bucket root when the access policy checks for empty prefix#111
martinprikryl wants to merge 1 commit intobji:masterfrom
martinprikryl:patch-2

Conversation

@martinprikryl
Copy link
Copy Markdown
Contributor

When accessing bucket root, AWS tools send empty prefix (prefix=), contrary to libs3 that sends no prefix. But some AWS policy examples suggest conditions like:
"Condition":{"StringEquals":{"s3:prefix":["","home/"],"s3:delimiter":["/"]}}
With such conditions libs3 will fail to access the root.
Reported for WinSCP:
https://winscp.net/forum/viewtopic.php?t=31359
The same problem for Cyberduck:
https://trac.cyberduck.io/ticket/11549

…prefix

When accessing bucket root, AWS tools send empty prefix (prefix=), contrary to libs3 that sends no prefix. But some AWS policy examples suggest conditions like:
"Condition":{"StringEquals":{"s3:prefix":["","home/"],"s3:delimiter":["/"]}}
With such conditions libs3 will fail to access the root.
Reported for WinSCP:
https://winscp.net/forum/viewtopic.php?t=31359
The same problem for Cyberduck:
https://trac.cyberduck.io/ticket/11549
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant