Stealing from Google

(taqib.dev)

41 points | by dominikdoesdev 4 days ago ago

14 comments

  • mimsee 4 hours ago

    If I wanted to achieve the same result, that is to serve assets of others from my own domain, I'd just create a custom endpoint like /api/user-avatar/:userId and an action proxies the actual image from google, maybe keep a cached copy for some time to not have to redownload the image on every request.

  • DashAnimal 4 hours ago

    This seems problematic to me. Beyond just caching issues, did you ever get permission from users to store their personal data? They gave google permission, but not you.

    • abraham 3 hours ago

      The users are going through an OAuth flow and creating an account. Presumably they are agreeing to a ToS as part of that.

      • mattmanser 2 hours ago

        It even says in the OAuth flow that the company is requesting your profile image.

  • gryfft 3 days ago

    Nice, but doesn't automatically update when the Google avatar changes. Cache invalidation strikes again.

  • dakiol 3 hours ago

    I really didn't get what the post was about. I'm getting old or? And I thought I was clever because I work with distributed databases...

    • devmor 2 hours ago

      The post seems to be written by a developer that has never heard of caching and thinks they have invented some illicit solution by implementing it.

      It makes very little sense - They don't want to ask users to trust Google's domain despite... integrating the user's google account? What?

      • valiant55 an hour ago

        And in what way is this stealing? Caching a publicly available asset? Sounds like you are save Google bandwidth/money.

    • zaik 3 hours ago

      The post assumes the reader is familiar with where things are happening and who is involved. Guess I'm not part of the target audience.

      • lozenge 3 hours ago

        Loading an img tag doesn't involve trusting a domain. Especially using crossorigin and refererpolicy attributes.

  • bitpush 3 hours ago

    Isn't this just passthrough caching with some persistence?

  • reaperducer 28 minutes ago

    Irony: Claim you're stealing from Google, then post it on a .dev domain, of which Google is the operator.

  • russianGuy83829 4 hours ago

    <Furiously typing GDPR data request..>

  • xyzzy9563 4 hours ago

    Surely you could think of something better to work on