@csteipp was one of the people who originally advocated for such strict file visibility enforcement. He would be the best one to respond with justification for wanting the feature in the first place.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Mar 31 2016
Mar 28 2016
No to beat on a dead horse, but I just finished creating a new wiki page with ~20 screenshots of mobile UI (in a series of tables to easily compare UIs on different OSes), and the fact images don't cache is a massive pain:
- whenever editing the markup, even to add a single character, the preview area needs to reload 2+ MBs of screenshots
- not only is this slow, but the layout of the preview jumps all around while the images are (re)loading, so you can't navigate easily
- same thing when saving the changes: everything needs to reload again from scratch and layout jumps again all over the place
Mar 26 2016
This has been live for some time without any apparent issues.
Mar 19 2016
- Once D15499 lands, this is available as a prototype.
Mar 18 2016
The technically-functional-prototype code is live on this install, now:
Quick update:
One issue which we'll hit eventually is that git-lfs doesn't currently support pushing to remotes by URL, but we push to staging areas by URL:
Mar 17 2016
No way for the upload API to say "no thanks, I already have that file"?
Quick progress update:
Mar 16 2016
Mar 15 2016
In T10262#165087, @swisspol wrote:Naive question, but would it be possible to have a new "disable security theater" setting and have Phab then do "Unique URL Hash + Fully Cacheable Resources" like everyone else?
In some cases, the effects of the theater can be mitigated issue-by-issue. For example, we may be able to write caching/rendering logic in Javascript to mitigate the performance impact on lightboxes and Pholio. We may be able to attach images directly to email. There may be a workaround for the Safari issue, or we may be able to do preview rendering partially in Javascript. With Quicksand, we can also increase the "hit rate" of client-side Javascript caches, at the cost of additional complexity.
I imagine we also want to just remove the feature, but some install(s) rely on it? The point of this task then is to be a discussion around removing it outright, and giving those who rely on it time for input.
Understood. I'm of the very same opinion when it comes to adding settings / preferences to a product. It shouldn't be a way to avoid taking a decision or pushing the problem to the user.
I'm strongly resistant to that, see T8227.
Naive question, but would it be possible to have a new "disable security theater" setting and have Phab then do "Unique URL Hash + Fully Cacheable Resources" like everyone else?
Before I forget:
Adjacent work:
Various notes from prototyping:
Mar 10 2016
I'm going to figure out what the state of large PUTs
This may make sense to at least lightly entangle with T4752, which overlaps in some ways.
To do an integrity check, it looks like we have to compute the Git hash ourselves.
As a general preface, this stuff makes me a little uneasy about LFS in its current state:
Mar 3 2016
Ok thanks. I found it very confusing.
https://www.w3.org/TR/capability-urls/ is relevant - Good Practices for Capability URLs.
Mar 2 2016
(See also T6007). There should be a download button on lightboxed images as a workaround.
This is expected behavior, isn't it?
Feb 29 2016
We're also about to select a source code hosting / project management tool, and Phabricator looks awesome but git-lfs support is a requirement for us!
Feb 23 2016
Feb 19 2016
Feb 18 2016
Feb 17 2016
Feb 10 2016
There are several reasons we don't do that:
Preventing images from being cached in public proxies/CDNs is a reasonable security precaution. I'm not sure what benefit Phabricator's URL randomization adds though. the standard approach would be to stream files through the application and require an authenticated session (with the appropriate permissions), and set something like Cache-control: private so that the browser will cache it but upstream proxies won't. That would fix all the issues enumerated here (except maybe the Safari one - not sure how that's related) while still keep the files unleakable. The only performance impact that would remain is that files cannot be cached in a CDN and they need to be streamed through a lightweight PHP process - that's nontrivial but not huge.
Feb 8 2016
That's a good point, and certainly makes me feel less bad about putting IAM user credentials in a file on the host.
You can use a policy like this to restrict a key to requests originating from a particular VPC:
I think you missed the point. The attacker in this instance is an employee, or a contractor, or an ex-employee. If you have static credentials sitting in files on your servers, all your ex-employees probably have them, too. And they can use them until you rotate them, which is pretty much never, in practice.
Since IAM role credentials are always rotating, anyone who wants to abuse those credentials (possibly to avoid using their own credentials which would get them caught) only has an hour at most. It's pretty easy to see who SSHed into the server in the past hour. Not so easy to see who might have had access to the filesystem, ever.
Feb 7 2016
This isn't necessarily "won't ever fix", but the cost to secure SVG sufficiently is enormous and I can't imagine it making sense to pursue until we are a huge organization with as many as 4 or 5 full time engineers.
Looking through the security situation in more detail in response to a recent report via HackerOne, I think it's unlikely that we'll pursue support for this in the upstream. Browsers will execute Javascript and other dangerous actions (external includes, entity expansion) in SVGs, and there is no way to avoid this in a categorical way or otherise delegate security to the browser.
Feb 2 2016
FWIW I'd be happy to trade performance for security by obscurity aka Facebook model etc... when it comes to files stored in Phabricator - because right now on Phacility, the current approach makes wiki pages with numerous image files feel slow since images are not cached at all. And we don't have anything that sensitive. Maybe a config setting could allow this?
Jan 29 2016
Should the user be warned that invisible files are still attached when they remove them?
Jan 28 2016
This is intentional. The file is visible in the UI in the edit history of the comment, and still part of the object in that sense.
Jan 27 2016
Jan 25 2016
Jan 23 2016
After rCORE538a9808, all new files larger than 64KB go to S3.
Jan 22 2016
Thank you very much! You solved all my problems :D
Jan 21 2016
I believe this is fixed at head. Let us know if you're still seeing issues.
(And there are no configuration settings you can change which will possibly impact or resolve it -- it can only be resolved by an upstream fix to the problematic implementation.)
Daemons now do both reads and writes, and may need to do reads and writes which are nonlocal in cluster configurations. So I think the pathway forward here must be to expose local disk storage over HTTP with S3-like raw APIs (read, write, delete).
Jan 20 2016
I don't plan to support this. I think "files attached to any object tagged with this project" is not likely to be a useful view in most situations, and haven't seen other requests for this. We inched into this territory with a "files" module in Conpherence some time ago and it was felt pretty much useless in practice.
Jan 16 2016
The second biggest source of storage pressure appears to be test instances that, e.g., imported the Linux Kernel and were then suspended. I've filed T10166 to follow up.
This is now available in the cluster, but the storage engine currently never selects it for new writes because MySQL is still configured to allow 8MB chunks. I'm going to selectively migrate some data, but probably not turn default writes on for a week or so.
Jan 11 2016
For me, the big advantage to using IAM roles is that the credentials rotate automatically, every hour.