Re:CloudFlare and Google Cloud Platform
by phonon on Wednesday September 09, 2015 @06:53PM
(#10195189)
I'm in financial services...as part of our checkout process, the customer downloads a 1 MB pdf with sensitive and unique data to them. In testing ( a test site with cloudflare set up), everything was fine. In production, apparently cloudflare cached these pdfs after some sort of traffic threshold was reached (I guess they are all very similar in size...though they are probably not exactly the same size.) Now customers are calling that they are getting other people's data! Apparently cloudflare caches files without even comparing hashes of the download first. Needless to say, we entirely shut off any and all caching after that.
[ Parent
| on HN ]
Re:CloudFlare and Google Cloud Platform
by pipeep on Wednesday September 09, 2015 @08:55PM
(#10195595)
I feel like any CDN or caching proxy (which might even happen at the ISP level if you aren't using HTTPS!) would have that same issue. You should serve confidential files from unique URLs or at least set the right HTTP headers to disable caching.
Re:CloudFlare and Google Cloud Platform
by MichaelApproved on Thursday September 10, 2015 @07:51PM
(#10201257)
If CF download the file to check the hash, it wouldn't really be helpful as a caching service. That would mean CF would hit your server for each request before it served up the asset to the customer. Your server wouldn't benefit from caching. Maybe you'd get a small speed increase from their worldwide endpoints but that would reduce the advantage of having CF manage your site. One of the biggest advantages is that CF serves hits that your server wouldn't have to. That allows you to need less infrastructure.
Further, it might be better to never serve sensitive financial data via a 3rd party server. That kind of data would be best served directly to the customer's browser from your server.
Re:CloudFlare and Google Cloud Platform
by pmtarantino on Wednesday September 09, 2015 @08:55PM
(#10195597)
I am almost sure you did set up this, but worth asking anyway. Was it "Cache-Control: private no-store", right?