1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-06 12:51:01 +01:00
phorge-phorge/src/applications/files/engine
epriestley 1049feb0ed Add support to Files for file storage formats, to support encryption-at-rest
Summary:
Ref T11140. When reading and writing files, we optionally apply a "storage format" to them.

The default format is "raw", which means we just store the raw data.

This change modularizes formats and adds a "rot13" format, which proves formatting works and is testable. In the future, I'll add real encryption formats.

Test Plan:
  - Added unit tests.
  - Viewed files in web UI.
  - Changed a file's format to rot13, saw the data get rotated on display.
  - Set default format to rot13:
    - Uploaded a small file, verified data was stored as rot13.
    - Uploaded a large file, verified metadata was stored as "raw" (just a type, no actual data) and blob data was stored as rot13.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11140

Differential Revision: https://secure.phabricator.com/D16122
2016-06-15 11:17:53 -07:00
..
__tests__ Add a bunch of tests for subclass implementations 2015-06-15 18:13:27 +10:00
PhabricatorChunkedFileStorageEngine.php Add support to Files for file storage formats, to support encryption-at-rest 2016-06-15 11:17:53 -07:00
PhabricatorFileChunkIterator.php Stream chunks when sending chunked files 2015-03-14 08:29:30 -07:00
PhabricatorFileStorageEngine.php Add support to Files for file storage formats, to support encryption-at-rest 2016-06-15 11:17:53 -07:00
PhabricatorLocalDiskFileStorageEngine.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorMySQLFileStorageEngine.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorS3FileStorageEngine.php Swap S3 to first-party client 2016-01-10 07:55:27 -08:00
PhabricatorTestStorageEngine.php phtize all the things 2015-05-22 21:16:39 +10:00