Your Digital Media Has Never Looked So Good

Search found 8 matches

by bmbudai
Mon Jun 24, 2019 10:43 am
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

Re: URL signing for AWS S3 and CloudFront hosted content

I was under the impression that it would perform better with CloudFront. Do you have S3 requiring signed URLs?
by bmbudai
Fri Jun 21, 2019 1:44 pm
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

Re: URL signing for AWS S3 and CloudFront hosted content

SOLVED!!! I posted an answer on the Stack Overflow Page with the details. Hopefully this helps some out.

Thanks!
by bmbudai
Fri Jun 21, 2019 11:27 am
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

Re: URL signing for AWS S3 and CloudFront hosted content

Hmmm... I may do that later on to make it more clean/readable. I was able to get the quotation marks into the string by just concatenating Chr(34) everywhere I needed them. Super long and hideous but it does the job for now.
by bmbudai
Fri Jun 21, 2019 11:11 am
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

Re: URL signing for AWS S3 and CloudFront hosted content

Ok. So thanks to this thread I was able to get the correct policy string in. BrightScript now comes up with the correct sha1 hash value for my policy string. I still get access denied. Must be something to do with the rsa signing or else with the encoding. Just gotta do more troubleshooting.
by bmbudai
Fri Jun 21, 2019 10:46 am
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

Re: URL signing for AWS S3 and CloudFront hosted content

No, it goes into the brightscript debugger and says "Member function not found in BrightScript Component or interface." That's because sigString is an ascii string but ToBase64String() is only available on roByteArray.  I think I may have a lead though. I realized that when I use the perl ...
by bmbudai
Thu Jun 20, 2019 1:46 pm
Forum: Roku Developer Program
Topic: URL signing for AWS S3 and CloudFront hosted content
Replies: 9
Views: 467

URL signing for AWS S3 and CloudFront hosted content

I'm working on a Roku channel, and we want to have files hosted in an AWS S3 bucket, with CloudFront to distribute the content. Before considering security, it worked fine. However, now that I'm trying to be mindful of security issues, I'm experiencing problems. I have the S3 bucket as a private buc...
by bmbudai
Thu Jun 20, 2019 11:33 am
Forum: Roku Developer Program
Topic: AddHeader bug in context of videoPlayer (prevents using CloudFront for HLS)
Replies: 10
Views: 823

Re: AddHeader bug in context of videoPlayer (prevents using CloudFront for HLS)

This may be a long shot since it's been a while since this thread was active, but I'm trying to get the same scenario working. How are you generating the signature? I am sha1 hashing a string version of the access policy, and then rsa signing it. I'm getting an "Access Denied" error every ...
by bmbudai
Thu Jun 20, 2019 10:06 am
Forum: Roku Developer Program
Topic: How to use AWS S3 hosted videos in feed
Replies: 6
Views: 2358

Re: How to use AWS S3 hosted videos in feed

Well, I know it's been over 4 years since the last post in this thread, but... I'm having similar problems. After lots of looking for solutions, I figured doing things a different way might be a good idea. My question is, if you have a server that creates your signed URLs, how do you control access ...