News for hackers. Stuff that matters.
Re:How to copy a file between devices? by metadaddy on Thursday February 22, 2024 @05:02PM (#39473926)
No need to give your file an obscure name, or use a public bucket. You can use a private bucket and create a presigned URL with an expiration of up to one week.
Re:How to copy a file between devices? by renonce on Friday February 23, 2024 @06:13AM (#39479247)
Presigned URLs are long and ugly and b2 requires an extra API call to generate that, so I tend to prefer not to use them. The other reason for obscure names is so that you can't download or update files that you don't know the name even if you have the upload key. I know it goes against common sense security practice but compromising convenience can mean compromising security in many cases. The thing is to make sure your scheme is rigourous.