Sign .m3u8 and .ts files / shrine-transloadit

Hello,

I’m using shrine-transloadit to convert an mp4 file to HLS (it contains an m3u8 playlist + multiple ts files) and it works correctly. The thing is that all my files require to be signed from cloudfront to access S3, do you know if there is someway to sign all the .ts files using shrine? If is not possible, how do you deal with this? Do you recommend to rewrite the m3u8 each time with the cloudfront signed urls?

Thanks!

Hi, Shrine doesn’t store URLs in the database, you need to sign on URL retrieval. Shrine’s S3 storage already has this ability – https://shrinerb.com/docs/storage/s3#signer – can you try it?