crishoj
September 10, 2024, 9:49am
1
Thank you for this impressive tool.
I am trying to figure out how to control the CDN-level permissions for files uploaded through a cunoFS mount.
Cuno CLI reports permissions as -rw-rw-rw-
(no restrictions), but at the CDN, the uploaded file is “Private”, and not accessible over HTTP:
Is there an option in the credentials file for setting default CDN-level permissions?
The CDN is Digital Ocean Spaces, accessed through their S3 API.
Thanks.
Dan
September 10, 2024, 9:58am
2
Hi crishoj,
POSIX permissions only affect POSIX access and is not reflected into S3/HTML access. I’m afraid this kind of capability is something we’ve only worked towards with Enterprise use cases.
However, you can set Policies in AWS S3 and sufficiently compatible solutions that make all uploaded files to a bucket default to public.
For example see:
By default, files uploaded to Amazon S3 are private, requiring a separate action to make public. To make uploads default to public, add this policy to your S3 bucket.
crishoj
September 10, 2024, 11:55am
3
Hi Dan,
Thank you for the clarification.
In case setting a policy is not an option, is there any way to get Cuno to call PutObjectAcl
for the uploaded files?
Dan
September 10, 2024, 2:26pm
4
That’s definitely a feature we can think about adding. Are you using the library (with your shell on top) or are you using the cuno mount?
crishoj
September 10, 2024, 9:11pm
5
PutObjectAcl
would be very useful.
I’m using cuno mount, and amazed by the performance. It is blazingly fast compared to Fuse S3FS