You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "wlinna (via GitHub)" <gi...@apache.org> on 2025/01/28 12:30:59 UTC

[I] new feature: Generate permanent URL for public read [opendal]

wlinna opened a new issue, #5581:
URL: https://github.com/apache/opendal/issues/5581

   ### Feature Description
   
   Create a function for `Operator`  (somewhat similar to `presign_read`) which generates a permanent publicly accessible URL to the resource. For example, I'm using Google Cloud Storage emulator and I have configured `Gcs` service like this:
   
   ```
   Gcs::default()
           .bucket("test")
           .root("/")
           .disable_vm_metadata()
           .allow_anonymous()
           .endpoint("http://127.0.0.1:9199")
           .disable_config_load();
   ```
   Now let's say I want to access a file "myfile.txt". I would like to generate a direct public access URL that looks like this:
   
   `http://localhost:9199/v0/b/test/o/myfile.txt?alt=media`
   
   
   ### Problem and Solution
   
   Many object storage services such as Google Cloud Storage and S3 allow public read access to files. `Operator` nicely abstracts all these services, but since it doesn't have the ability to generate permanent and publicly accessible links, I loose this abstraction.
   
   As far as I know, `Operator` does not expose `endpoint` either, so as a workaround I have to circumvent OpenDAL completely to generate a public urls.
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to contribute to the development of this feature?
   
   - [ ] Yes, I am willing to contribute to the development of this feature.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] new feature: Generate permanent URL for public read [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5581:
URL: https://github.com/apache/opendal/issues/5581#issuecomment-2721094313

   Maybe we can just return the url directly if `allow_anonymous` has been enabled?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org