Skip to content

Refactoring and Bug Fixes#146

Open
KhaledEmaraDev wants to merge 4 commits intoegirna:developfrom
KhaledEmaraDev:fix-mimetype-detection
Open

Refactoring and Bug Fixes#146
KhaledEmaraDev wants to merge 4 commits intoegirna:developfrom
KhaledEmaraDev:fix-mimetype-detection

Conversation

@KhaledEmaraDev
Copy link
Copy Markdown
Contributor

In this PR:

  1. Refactor Package Names
  2. Resolve Bugs related to Mimetype detections using a new MIME Type Package that's faster and more accurate.
  3. Include ClamAV File Hash in the Exception Page.
  4. Make INFO logs production friendly.

MIME Type Detection

I replaced the filetype package with the mimetype package because it's faster and more accurate.

Logs

I categorized all debug logs as so and included one INFO log for each ICAP request including all the needed fields.
Each field is its own JSON key. I prefixed ICAP headers with icap_header and HTTP Headers with http_header for readability and searchability in the ELK stack.

I tried querying in Kibana and I can filter by anything I want: Virus Name, Request Type, and anything I want.

Signed-off-by: Khaled Emara <mail@KhaledEmara.dev>
Signed-off-by: Khaled Emara <mail@KhaledEmara.dev>
Signed-off-by: Khaled Emara <mail@KhaledEmara.dev>
Signed-off-by: Khaled Emara <mail@KhaledEmara.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant