Commit Graph

18 Commits

Author SHA1 Message Date
Robert Putt aa51aa4a59 Add clamav scanning plugin
Adds clamav scanning plugging to perform malware scanning via
clamd unix socket

Change-Id: I8a1288080c861c6e75adb37f7bc94500150ed3c0
2018-05-09 19:56:24 +01:00
Robert Putt ec5932db85 Missing bytes conversion
Missing bytes conversion when returning file data via API.

Change-Id: I57f9b38c88f80f7b4e38e3ebe3e8a6b2745d1b2c
2018-05-09 18:21:17 +01:00
Robert Putt 97b054605c Fix error with byte values in EXIF plugin.
Sometimes an EXIF tag contains raw bytes rather than an EXIFClass object.
Return the raw bytes as a string.

Change-Id: I7a0b1a9ba4e8e810093ab6030bcdca6adcee523b
2018-03-09 10:34:46 +00:00
Robert Putt 819c104d9e Add Exif plugin.
Adds Exif plugin for analysis of Exif tags in TIFF and JPEG file types.

Change-Id: I1a83e919eba7d84676cbc411e3c339c27080ff63
2018-03-09 10:27:00 +00:00
Robert Putt 2341f2acaf Use Oslo Config global CONF object rather than Flask config.
Update anything using configuration items to use the global CONF
object from Oslo Config rather than using the Flask config as
the Oslo Config CONF object can be used outside of the Flask
application context.

Change-Id: Ie7eafd322ab1a6f57ff1e8e5b66e27079caa4aba
2018-03-08 19:17:19 +00:00
Robert Putt a001829f55 Update swift / worker base
Change-Id: I512a3ecfb52c908e26b3b7a1e679d3303ee39338
2018-03-03 00:47:43 +00:00
Robert Putt 778093da01 Split entrypoints into api and worker for simplicity.
Change-Id: I7045fd4b8a0b0a70265bafb16505f0c145cb53f6
2017-12-15 19:11:43 +00:00
Robert Putt dae39ef8ae Fix lookup recording of files found with hashes other than sha512.
Change-Id: Id7f01519b358b00c7eb689a476cc6c97d56443f4
2017-12-15 13:45:26 +00:00
Robert Putt 1a4d5d3af1 Add MIME type detection upon upload
Change-Id: Ia2f080b9fa7c7b12fe06166caecf089ded3cb16a
2017-12-15 07:18:39 +00:00
Robert Putt 63dc98c723 Add uber simple Oslo.Messaging notifier for sending messages.
Add uber simple Oslo.Messaging notifier for sending messages.

Change-Id: I5ac4bafbb02cb4dfb79e5892e5b9fc42d9162807
2017-12-03 17:21:29 +00:00
Robert Putt bb16e13ec1 Upload files sent to API to swift.
Upload files sent to API to swift container.

Change-Id: I6f7d541952fc0c6376e913990ba287b1030bc10c
2017-12-03 10:20:30 +00:00
Robert Putt a4ab2d89ca Allow file upload and hash calculation.
Allow users to upload file for analysis and calculate hash for file.
Later we probably need to send this to some shared storage (Swift)
and then pass the file_id to a queue so the workers can pick it up
and process it accordingly.

Change-Id: Ie45adb5154c1c17f61c6d0cdddeaa2191d05f91e
2017-12-02 20:24:51 +00:00
Robert Putt d7efed8c1d Add starter routes and db methods.
Add starter routes and db methods.

Change-Id: I1e5c3d59cdbac17c6bb11a7886026bb58856cc9c
2017-12-01 21:09:35 +00:00
Robert Putt 1836ccbc6b Add basic database model
Adds basic database model to get us started. This will need to be
extended drastically for basic functionality but should allow
us to make a simple worker that simply adds hashes to the DB.

Long term maybe MySQL isnt even a good idea, but it'll get a
basic proof of concept sorted for now.

Change-Id: Ifdcd2309fa2ad6a9a27dd6c3ba61dd8db0dcb854
2017-11-30 20:36:52 +00:00
Robert Putt 4f46b53a53 Adds Flask Keystone to Nemesis Project
Change-Id: I48374e5396230dc60f73319b0c2e94c575329d33
2017-06-10 11:08:07 +01:00
Robert Putt d78c005ff3 Add flask-oslolog to Nemesis project for logging
Change-Id: I9b1c666e9563bf03971342e55f043504532bbd08
2017-05-15 21:03:25 +01:00
Robert Putt 18632f314d Adding basic flask framework
Pending addition of Flask-OsloLog and Flask-KeystoneAuth

Change-Id: I734bcd4390d1eeadd61c64516ac6b0adf02d09e9
2017-03-16 19:30:50 +00:00
Robert Putt 054413a055 Adding project template as generated by cookiecutter
Change-Id: Ic0650a2ae9394536af831c49d6e44a15d046fe5b
2017-03-08 18:08:07 +00:00