News for hackers. Stuff that matters.
Re:Cache your CORS by LunaSea on Tuesday September 20, 2022 @08:59AM (#32911035)
So that would indicate that you don't do end-to-end TLS on your infrastructure for the API which means that Fastly man-in-the-middles your API.

In a lot of sensitive businesses that wouldn't be allowed.

Re:Cache your CORS by snowwrestler on Tuesday September 20, 2022 @10:44AM (#32912331)
Are you sure about that? Have you talked to a good lawyer about it?
Re:Cache your CORS by LunaSea on Tuesday September 20, 2022 @03:56PM (#32916944)
This is not necessarily only a legal issue it's also an information security issue.

You can't guarantee the integrity and privacy of the full request and response chain.

This goes against various security standards and ISOs.

You might be able to get away with it and trust the CDN but that's an awful lot of trust.

Re:Cache your CORS by snowwrestler on Friday September 23, 2022 @09:21AM (#32951565)
Unless you are terminating TLS entirely on owned hardware, you are paying a 3rd party to manage TLS for you.

A lot of people seem to think that there is a big difference between paying a lessor (e.g. Hetzner) for a server on which you terminate TLS, paying a cloud host (e.g. Amazon) to terminate TLS, and paying a CDN (e.g. Fastly) to terminate TLS. Legally there is no difference aside from the specific language of the contracts, which you can review and negotiate in advance.

The difference security-wise is entirely down to the operations of each company, which again you can review and discuss in advance. Strictly speaking a CDN should have lower risk than a host since they are not persisting sensitive data (if you set your cache headers correctly). And as discussed above, using one domain helps avoids cross-domain security concerns.

Re:Cache your CORS by icedchai on Tuesday September 20, 2022 @05:18PM (#32917930)
You're putting a lot of trust in your CDN, anyway. If your CDN gets hacked, what's stopping your frontend code from being updated to send your API requests somewhere else? Maybe they get rerouted to a proxy, then back to you...