AWS CloudFront Signed URL and Cookies | Visual Explanations

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024

ความคิดเห็น • 32

  • @louis-philipshahim6707
    @louis-philipshahim6707 4 ปีที่แล้ว +2

    Thank you very much! I was struggling with these questions in practice exams but this helped clarify it as I haven't ever implemented a solution that uses these.

  • @danubiomuller
    @danubiomuller 3 ปีที่แล้ว +2

    A lot of work into this explanation, thanks for your time, really helped me.

  • @kannan181975
    @kannan181975 3 ปีที่แล้ว +1

    Very good explanation. Kindly add some practicals to understand better.

  • @vijayakumarj1207
    @vijayakumarj1207 3 ปีที่แล้ว

    @Pythoholic Hi Sir, I have 2 basic questions.
    1.Cloudfront signed urls allows user to access the content of the file with help of edge location whereas S3 pre signed URL cannot access our bucket..only the lambda functions does that?
    2.U mentioned that if we have bulk files like 50k..on downloading 30k th file, if expiration occurs, we ll not be able to download..this example u mentioned for signed cookies right?If yes, then how can we prevent that?

  • @gihan121
    @gihan121 4 ปีที่แล้ว +2

    Explaination starts at minute 6:30

  • @mike.nussbaumer
    @mike.nussbaumer 2 ปีที่แล้ว +1

    Is there some video where you show a practical tutorial for this? :) Would be really cool!

    • @Pythoholic
      @Pythoholic  2 ปีที่แล้ว

      I will try and add one. Thanks for the feedback

  • @bhushangunjal3605
    @bhushangunjal3605 5 หลายเดือนก่อน

    @pythoholic - Are signed URLs public? Is using signed cookies safer than signed URLs?

    • @Pythoholic
      @Pythoholic  5 หลายเดือนก่อน

      Signed URLs are not inherently public, but they can be shared with anyone who has the URL, making them accessible to anyone who possesses the link. They are typically used to grant temporary access to a private resource, such as a file in a cloud storage bucket.
      Using signed cookies can be considered safer than signed URLs in some scenarios because signed cookies can restrict access to multiple resources (e.g., all files in a directory) and can be tied to a specific user session. This means that even if someone were to obtain the signed cookie, they would still need to be within the valid session to access the resources. Additionally, signed cookies do not expose the resource URL, adding an extra layer of security.
      However, the choice between signed URLs and signed cookies depends on the specific use case and the security requirements of your application.

  • @rickyu1978
    @rickyu1978 3 ปีที่แล้ว +2

    comment : wish there was a example in the console, and how to check if the signed url is valid / invald, what is the response if invalid, does it work for api's that on cloudfront cdn

    • @Pythoholic
      @Pythoholic  3 ปีที่แล้ว

      Noted. Thanks for the feedback.

  • @tarunkhurana5402
    @tarunkhurana5402 2 ปีที่แล้ว

    Hi This is something I am looking for. Can you please share the content if possible so that we can read out during our practices.

  • @AnthonyKaigwa
    @AnthonyKaigwa 4 ปีที่แล้ว +1

    Hi, this is great information. Would you mind doing a demo of this - or pointing me to one if you already have it. Not sure how to connect the signed cookies and my website

    • @Pythoholic
      @Pythoholic  4 ปีที่แล้ว +1

      No i have one for cloud front distributions, you can check that out.

  • @princechaudhary9197
    @princechaudhary9197 3 ปีที่แล้ว +1

    Upar se gya sir sb

    • @Pythoholic
      @Pythoholic  3 ปีที่แล้ว +1

      Hmm... try karte hai isko aur simply karne ki.

    • @princechaudhary9197
      @princechaudhary9197 3 ปีที่แล้ว

      @@Pythoholic no it is fine i think i have to read it first before watching,

    • @princechaudhary9197
      @princechaudhary9197 3 ปีที่แล้ว

      @@Pythoholic sir why don't you create telegram group to share contents for reading, or for discussion.

  • @faithchatbot583
    @faithchatbot583 4 ปีที่แล้ว +1

    Just a noob question. Do signed cookies only created on pictures, videos and documents? Can we have signed cookie on all files on an Angular application?

    • @Pythoholic
      @Pythoholic  4 ปีที่แล้ว

      Yes you can. I think as long as we map the same structure of creating using headers. It can be used for any urls with a scope, that you are protecting the assets that you have.
      Because remember that using this the assets are protected against direct url access.

    • @faithchatbot583
      @faithchatbot583 4 ปีที่แล้ว

      @@Pythoholic I mean even the main.js, polyfill.js, render.js that needed to run the application?

    • @Pythoholic
      @Pythoholic  4 ปีที่แล้ว

      Let me know the use case i can let you know better. Mostly if u use signed urls . The JS and css files along with that gets covered. So if there is anything specific then please let me know.

  • @altugkarabas3347
    @altugkarabas3347 4 ปีที่แล้ว +1

    Great video sir! I have a question. I'm using CloudFront for my project and I need to allow users (from all around the world) to upload files without latency. I can't figure out how can I allow users to upload files through CloudFront. Can you help me please?

    • @Pythoholic
      @Pythoholic  4 ปีที่แล้ว +1

      With cloud front while creating a cloud front distribution you can specify if you can provide access with HTTP or HTTPS (GET) to read the content, and there are PUT and POST to help user upload files from the URL that you specify, i guess you might be using Lambda to process it, So you can try changing your cloud front configuration to use PUT and POST. Let me know if that helps.

    • @altugkarabas3347
      @altugkarabas3347 4 ปีที่แล้ว

      Thank you for your fast answer. I found out how to upload/download files directly to S3 Bucket via pre-signed URLs but I can't find any example code for uploading files through CloudFront via signed URLs.

    • @Pythoholic
      @Pythoholic  4 ปีที่แล้ว +1

      Ok let me check and get back.

    • @Navishna
      @Navishna 3 ปีที่แล้ว

      open the cloudfront in the console and open the open your cloudfront then you can see Restrictions -> click
      Restrictions -> geo Restrictions - select the GEO Restrictions and edit then you can select the Enable Geo-Restriction = yes then Whitelist then add the country which country people need to access your S3 bucket

    • @Pythoholic
      @Pythoholic  3 ปีที่แล้ว

      I guess that might be the other way around.
      Every time we use s3 to upload files using cloudfront ie at the edge locations it means we are creating the distributions it should work the same without any restriction

  • @treepiesinc1418
    @treepiesinc1418 2 ปีที่แล้ว

    Good again. Can you please add examples like Premium user for signed Cookies. More practical usecase. 09:10. 15:20

    • @Pythoholic
      @Pythoholic  2 ปีที่แล้ว +1

      it will be covered in the DVA-C01 course
      coming yp

    • @treepiesinc1418
      @treepiesinc1418 2 ปีที่แล้ว

      @@Pythoholic Waiting for DVA courses.