Page MenuHomePhabricator
Feed Advanced Search

Mar 31 2016

20after4 updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.

@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.

Mar 31 2016, 4:59 PM · Restricted Project, Restricted Project, Wikimedia, Files

Mar 28 2016

eadler moved T10262: Scramble file secrets when attached objects change their view policies from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Mar 28 2016, 8:29 PM · Restricted Project, Restricted Project, Wikimedia, Files
eadler added a project to T10262: Scramble file secrets when attached objects change their view policies: Restricted Project.
Mar 28 2016, 8:23 PM · Restricted Project, Restricted Project, Wikimedia, Files
swisspol added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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 28 2016, 7:24 PM · Restricted Project, Restricted Project, Wikimedia, Files

Mar 26 2016

epriestley closed T10114: Upgrading: Amazon S3 Configuration Changes as Resolved.

This has been live for some time without any apparent issues.

Mar 26 2016, 9:02 PM · Installing & Upgrading, Files

Mar 19 2016

epriestley added a comment to T7789: Support Git Large File Storage.
  • Once D15499 lands, this is available as a prototype.
Mar 19 2016, 8:20 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 19 2016, 6:11 PM · Customer Impact, Restricted Project, Files, Diffusion

Mar 18 2016

epriestley added a comment to T7789: Support Git Large File Storage.

The technically-functional-prototype code is live on this install, now:

Mar 18 2016, 4:46 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 18 2016, 3:44 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 18 2016, 2:25 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

Quick update:

Mar 18 2016, 1:42 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 18 2016, 1:27 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

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 18 2016, 1:27 AM · Customer Impact, Restricted Project, Files, Diffusion

Mar 17 2016

epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 17 2016, 8:33 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

No way for the upload API to say "no thanks, I already have that file"?

Mar 17 2016, 6:49 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

Quick progress update:

Mar 17 2016, 3:41 PM · Customer Impact, Restricted Project, Files, Diffusion

Mar 16 2016

epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 16 2016, 7:49 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley closed T10603: Make AuthTemporaryTokens suitable for use as LFS tokens, a subtask of T7789: Support Git Large File Storage, as Resolved.
Mar 16 2016, 4:35 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a revision to T7789: Support Git Large File Storage: Restricted Differential Revision.
Mar 16 2016, 2:51 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley changed the edit policy for T7789: Support Git Large File Storage.
Mar 16 2016, 12:18 PM · Customer Impact, Restricted Project, Files, Diffusion

Mar 15 2016

20after4 added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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?

Mar 15 2016, 8:12 PM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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.

Mar 15 2016, 4:33 PM · Restricted Project, Restricted Project, Wikimedia, Files
chad added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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.

Mar 15 2016, 4:21 PM · Restricted Project, Restricted Project, Wikimedia, Files
swisspol added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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.

Mar 15 2016, 4:09 PM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley added a comment to T10262: Scramble file secrets when attached objects change their view policies.

I'm strongly resistant to that, see T8227.

Mar 15 2016, 4:00 PM · Restricted Project, Restricted Project, Wikimedia, Files
swisspol added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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?

Mar 15 2016, 3:57 PM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley added a comment to T7789: Support Git Large File Storage.

Before I forget:

Mar 15 2016, 12:29 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a subtask for T7789: Support Git Large File Storage: T4369: Phabricator HTTP repository hosting has fairly severe scalability limits.
Mar 15 2016, 12:26 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

Adjacent work:

Mar 15 2016, 12:26 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

Various notes from prototyping:

Mar 15 2016, 12:17 PM · Customer Impact, Restricted Project, Files, Diffusion

Mar 10 2016

epriestley claimed T7789: Support Git Large File Storage.
Mar 10 2016, 6:24 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

I'm going to figure out what the state of large PUTs

Mar 10 2016, 6:08 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

This may make sense to at least lightly entangle with T4752, which overlaps in some ways.

Mar 10 2016, 1:37 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

To do an integrity check, it looks like we have to compute the Git hash ourselves.

Mar 10 2016, 1:31 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

As a general preface, this stuff makes me a little uneasy about LFS in its current state:

Mar 10 2016, 1:09 PM · Customer Impact, Restricted Project, Files, Diffusion
• fcontrer moved T9642: Unable to download images on Android from Icebox to Backlog on the Android board.
Mar 10 2016, 12:47 PM · Android, Files
• fcontrer moved T9642: Unable to download images on Android from Backlog to Icebox on the Android board.
Mar 10 2016, 12:47 PM · Android, Files

Mar 3 2016

joshuaspence added a comment to T10505: "403 Forbidden" when downloading files.

Ok thanks. I found it very confusing.

Mar 3 2016, 1:47 AM · Bug Report, Files
eadler added a comment to T10262: Scramble file secrets when attached objects change their view policies.

https://www.w3.org/TR/capability-urls/ is relevant - Good Practices for Capability URLs.

Mar 3 2016, 1:35 AM · Restricted Project, Restricted Project, Wikimedia, Files

Mar 2 2016

chad added a comment to T10505: "403 Forbidden" when downloading files.

(See also T6007). There should be a download button on lightboxed images as a workaround.

Mar 2 2016, 10:31 PM · Bug Report, Files
chad merged T10505: "403 Forbidden" when downloading files into T10262: Scramble file secrets when attached objects change their view policies.
Mar 2 2016, 10:29 PM · Restricted Project, Restricted Project, Wikimedia, Files
chad merged task T10505: "403 Forbidden" when downloading files into T10262: Scramble file secrets when attached objects change their view policies.
Mar 2 2016, 10:29 PM · Bug Report, Files
chad added a comment to T10505: "403 Forbidden" when downloading files.

This is expected behavior, isn't it?

Mar 2 2016, 10:28 PM · Bug Report, Files
joshuaspence created T10505: "403 Forbidden" when downloading files.
Mar 2 2016, 9:04 PM · Bug Report, Files
• erick.rojas.figueroa moved T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases from Backlog to Monitor on the Abuse board.
Mar 2 2016, 6:13 PM · Abuse, Files
• erick.rojas.figueroa moved T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases from Monitor to Backlog on the Abuse board.
Mar 2 2016, 6:13 PM · Abuse, Files

Feb 29 2016

lordmortis added a comment to T7789: Support Git Large File Storage.

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 29 2016, 3:12 AM · Customer Impact, Restricted Project, Files, Diffusion

Feb 23 2016

epriestley renamed T10423: Huge diffs (>8MB) should stream directly into file storage in Diffusion when downloaded from Can not Download large diffs in diffusion "No configured storage engine can store this file" to Huge diffs (>8MB) should stream directly into file storage in Diffusion when downloaded.
Feb 23 2016, 6:26 PM · Phacility, Files, Diffusion, Bug Report

Feb 19 2016

chad added projects to T10393: Differential revision's images cannot be viewed as raw files: Files, Differential.
Feb 19 2016, 7:17 PM · Restricted Project, Differential, Files, Bug Report

Feb 18 2016

• mayconwo moved T9642: Unable to download images on Android from Icebox to Backlog on the Android board.
Feb 18 2016, 6:56 PM · Android, Files
• mayconwo moved T9642: Unable to download images on Android from Backlog to Icebox on the Android board.
Feb 18 2016, 6:56 PM · Android, Files

Feb 17 2016

avivey changed the visibility for T2115: Back button support in Lightbox.
Feb 17 2016, 1:04 AM · Quicksand, Lightbox, Files

Feb 10 2016

epriestley added a comment to T10262: Scramble file secrets when attached objects change their view policies.

There are several reasons we don't do that:

Feb 10 2016, 1:10 PM · Restricted Project, Restricted Project, Wikimedia, Files
tgr added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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 10 2016, 3:04 AM · Restricted Project, Restricted Project, Wikimedia, Files

Feb 8 2016

• bitglue added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

That's a good point, and certainly makes me feel less bad about putting IAM user credentials in a file on the host.

Feb 8 2016, 2:18 PM · Files
epriestley added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

You can use a policy like this to restrict a key to requests originating from a particular VPC:

Feb 8 2016, 2:22 AM · Files
• bitglue added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

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.

Feb 8 2016, 2:18 AM · Files
hach-que added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

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 8 2016, 12:42 AM · Files

Feb 7 2016

epriestley removed a project from T5155: Evaluate support for AWS IAM Roles in S3 Client: libphutil.
Feb 7 2016, 10:20 PM · Files
epriestley moved T6445: Rendering SVG images from Backlog to Far Future on the Files board.
Feb 7 2016, 10:20 PM · Wikimedia, Restricted Project, Files
epriestley removed a project from T6445: Rendering SVG images: Remarkup.
Feb 7 2016, 10:20 PM · Wikimedia, Restricted Project, Files
epriestley triaged T6445: Rendering SVG images as Wishlist priority.

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.

Feb 7 2016, 10:20 PM · Wikimedia, Restricted Project, Files
epriestley added a comment to T6445: Rendering SVG images.

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 7 2016, 10:16 PM · Wikimedia, Restricted Project, Files

Feb 2 2016

swisspol added a comment to T10262: Scramble file secrets when attached objects change their view policies.

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?

Feb 2 2016, 3:27 AM · Restricted Project, Restricted Project, Wikimedia, Files
avivey added a project to T10262: Scramble file secrets when attached objects change their view policies: Restricted Project.
Feb 2 2016, 1:39 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated the task description for T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:19 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated the task description for T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:18 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:15 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley merged task T6007: "File link has expired" when trying to shared direct links to images into T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:15 AM · Files
epriestley updated the task description for T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:15 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:08 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:08 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:07 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley merged task T9377: Image lightbox perceived slow due to always creating new urls into T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:07 AM · Files, Wikimedia
epriestley updated subscribers of T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:07 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley renamed T10262: Scramble file secrets when attached objects change their view policies from Paranoid file security from WMF causes nearly universal performance problems to Paranoid file URL security mode causes nearly universal performance problems.
Feb 2 2016, 1:07 AM · Restricted Project, Restricted Project, Wikimedia, Files
epriestley created T10262: Scramble file secrets when attached objects change their view policies.
Feb 2 2016, 1:07 AM · Restricted Project, Restricted Project, Wikimedia, Files

Jan 29 2016

jdforrester added a comment to T10238: File remains 'attached' to a ticket even once removed from any current comment.

Should the user be warned that invisible files are still attached when they remove them?

Jan 29 2016, 1:10 AM · Maniphest, Files, Bug Report

Jan 28 2016

epriestley closed T10238: File remains 'attached' to a ticket even once removed from any current comment as Wontfix.

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 28 2016, 10:45 PM · Maniphest, Files, Bug Report
jdforrester created T10238: File remains 'attached' to a ticket even once removed from any current comment.
Jan 28 2016, 10:20 PM · Maniphest, Files, Bug Report

Jan 27 2016

chad added a project to T8266: Some audio isn't streaming correctly in Safari: Safari.
Jan 27 2016, 6:40 PM · Safari, Files

Jan 25 2016

epriestley moved T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases from Backlog to Monitor on the Abuse board.
Jan 25 2016, 11:06 AM · Abuse, Files
epriestley added a project to T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases: Abuse.
Jan 25 2016, 11:05 AM · Abuse, Files

Jan 23 2016

epriestley closed T7163: Convert Phacility file storage to use S3 as Resolved.

After rCORE538a9808, all new files larger than 64KB go to S3.

Jan 23 2016, 2:39 PM · Files, Phacility
epriestley moved T9642: Unable to download images on Android from Icebox to Backlog on the Android board.
Jan 23 2016, 12:46 PM · Android, Files
• stefania moved T9642: Unable to download images on Android from Backlog to Icebox on the Android board.
Jan 23 2016, 8:13 AM · Android, Files

Jan 22 2016

OCram added a comment to T10186: Landing a diff with files larger than 8M leads to storage engine error.

Thank you very much! You solved all my problems :D

Jan 22 2016, 6:12 AM · Conduit, Files, Diffusion, Bug Report

Jan 21 2016

epriestley added a comment to T10186: Landing a diff with files larger than 8M leads to storage engine error.

I believe this is fixed at head. Let us know if you're still seeing issues.

Jan 21 2016, 5:53 PM · Conduit, Files, Diffusion, Bug Report
epriestley closed T10186: Landing a diff with files larger than 8M leads to storage engine error as Resolved by committing Restricted Diffusion Commit.
Jan 21 2016, 5:52 PM · Conduit, Files, Diffusion, Bug Report
epriestley added a revision to T10186: Landing a diff with files larger than 8M leads to storage engine error: Restricted Differential Revision.
Jan 21 2016, 5:42 PM · Conduit, Files, Diffusion, Bug Report
epriestley added a revision to T10186: Landing a diff with files larger than 8M leads to storage engine error: Restricted Differential Revision.
Jan 21 2016, 5:21 PM · Conduit, Files, Diffusion, Bug Report
epriestley added a comment to T10186: Landing a diff with files larger than 8M leads to storage engine error.

(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.)

Jan 21 2016, 4:58 PM · Conduit, Files, Diffusion, Bug Report
epriestley edited projects for T10186: Landing a diff with files larger than 8M leads to storage engine error, added: Diffusion, Files, Conduit; removed Arcanist.
Jan 21 2016, 4:56 PM · Conduit, Files, Diffusion, Bug Report
epriestley moved T4752: Daemons may not have permission to remove files from local disk storage engine from Backlog to vNext on the Files board.
Jan 21 2016, 12:36 PM · Files
epriestley added a comment to T4752: Daemons may not have permission to remove files from local disk storage engine.

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 21 2016, 12:36 PM · Files

Jan 20 2016

epriestley closed T9133: Allow to search Files by Project as Wontfix.

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 20 2016, 2:42 PM · Projects, Files

Jan 16 2016

epriestley added a comment to T7163: Convert Phacility file storage to use S3.

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.

Jan 16 2016, 3:06 PM · Files, Phacility
epriestley added a comment to T7163: Convert Phacility file storage to use S3.

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 16 2016, 2:42 PM · Files, Phacility

Jan 11 2016

• bitglue added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

For me, the big advantage to using IAM roles is that the credentials rotate automatically, every hour.

Jan 11 2016, 4:05 PM · Files

Jan 10 2016

epriestley updated the task description for T10114: Upgrading: Amazon S3 Configuration Changes.
Jan 10 2016, 4:45 PM · Installing & Upgrading, Files