You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "MonsieurHulot (via GitHub)" <gi...@apache.org> on 2024/09/02 10:19:32 UTC

[D] S3 Provider : ACL management [opendal]

GitHub user MonsieurHulot created a discussion: S3 Provider : ACL management

Hello, following code :
```
        let mut metadata = HashMap::new();
        metadata.insert("x-amz-acl".to_string(), "public-read".to_string());
        metadata.insert("Content-Type".to_string(), "text/markdown".to_string());

        log_operator.write_with(&full_log_path, all_content_in_buffer)
            .user_metadata(metadata)
            .await?;
```
seems to have no real impact concerning public access on object stored into Bucket (still have "AccessDenied" on object read request).
Any idea ?


GitHub link: https://github.com/apache/opendal/discussions/5089

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org


Re: S3 Provider : ACL management

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: S3 Provider : ACL management

Hi, @MonsieurHulot, would you like to submit an issue and link to this discussion? I believe we can build something like this:

```rust
let cfg = S3Config::new().default_acl("my_acl");
let op = Operator::new(cfg);

let x = op.write("abc");
```

All files written by `Operator` will have the acl `my_acl`.

GitHub link: https://github.com/apache/opendal/discussions/5089#discussioncomment-11000807

----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org


Re: S3 Provider : ACL management

Posted by "MonsieurHulot (via GitHub)" <gi...@apache.org>.
GitHub user MonsieurHulot added a comment to the discussion: S3 Provider : ACL management

Hello, the issue is posted but I can't help on code now, sorry for that.

GitHub link: https://github.com/apache/opendal/discussions/5089#discussioncomment-11414436

----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org


Re: [D] S3 Provider : ACL management [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: S3 Provider : ACL management

Hi, `user_metadata` is used for custom user metadata and doesn't work with system metadata like `content-type` or `x-amz-acl`. Would you like to submit a feature request for this?

GitHub link: https://github.com/apache/opendal/discussions/5089#discussioncomment-10519414

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org


Re: [D] S3 Provider : ACL management [opendal]

Posted by "MonsieurHulot (via GitHub)" <gi...@apache.org>.
GitHub user MonsieurHulot added a comment to the discussion: S3 Provider : ACL management

yes, could be helpfull indeed because without this, I have do manage ACL with other crate (if I'm not wrong !)

GitHub link: https://github.com/apache/opendal/discussions/5089#discussioncomment-10520084

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org