Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 1, 2021

  1. Cannot access S3 bucket root when the access policy checks for empty …

    …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
    martinprikryl authored Sep 1, 2021
    Configuration menu
    Copy the full SHA
    71dc92e View commit details
    Browse the repository at this point in the history