Re:I don't want streaming music, I just want to stream my music
by grose on Thursday April 06, 2023 @09:18AM
(#35467951)
Thank you! The way I tried to solve this problem is by using signed URLs for the files. So every file URL should only be accessible to a user with the matching credentials. At least, that's the idea :-)
[ Parent
| on HN ]
Re:I don't want streaming music, I just want to stream my music
by XCSme on Thursday April 06, 2023 @09:29AM
(#35468057)
What if the user shares that URL with someone? Or the URL is only accessible if you are signed-in?
Re:I don't want streaming music, I just want to stream my music
by joelennon on Thursday April 06, 2023 @09:55AM
(#35468343)
Signed URLs (or pre-signed URLs) typically expire after a short time frame. The idea is that they exist for long enough for the object in question to be retrieved in the application, and they then automatically expire. Although they don't typically have a single-use limitation, this is often the intention a developer has when using a pre-signed URL.
Re:I don't want streaming music, I just want to stream my music
by grose on Thursday April 06, 2023 @10:04AM
(#35468449)
Yep! It's a bit of a balancing act because you want the files to be cache friendly (skipping tracks back and forth shouldn't make you download it every time) but you also don't want people to abuse (share) them. You can also restrict the signed URLs by IP address but that can cause trouble for people with dynamic IPs so I opted not to do that.