Commit Graph

6 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 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 778093da01 Split entrypoints into api and worker for simplicity.
Change-Id: I7045fd4b8a0b0a70265bafb16505f0c145cb53f6
2017-12-15 19:11:43 +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