Git Product home page Git Product logo

ukhomeoffice.dq-kube-clamav's Introduction

dq-clamav

This is customised DQ clamav Service that is based on the ACP Clamav service https://github.com/UKHomeOffice/clamav-http. Dq-clamav has repalced the clamav sidekick scanner that is deployed in the OAG, NATS and ACL ingest pods which ACP have stopped supporting.

Components

clamav-http is made up of four components, clamav, clamav-http, clamav-notify and clamav-notify-cron and is designed to be deployed as a service in kubernetes via its helm chart. for more information about these components and how they fit together please refer to https://github.com/UKHomeOffice/clamav-http

Dependencies

  • Docker
  • Drone 1.0
  • helm
  • Kubernetes

Drone secrets

Environmental variables are set in Drone based on secrets listed in the .drone.yml file and they are passed to Kubernetes as required.

Installation

Basic installation can be acheived by running:

helm install -n <namespace> clamav ./charts/clamav

Clamav will be installed in the namespace and available at https://clamav/

More detailed documentation on the helm chart can be found here

Scanning Files using dq-clamav

The dq-clamav endpoint can be called from any pod that is deployed in the same namespace as the dq-clamav pod.

To scan a file using the dq-clamav service:

  • Run the following command from container (provioded that curl is insralled)
curl -sk -F "name=eicar" -F "[email protected]" https://dq-clamav/scan
  • Use the python3 module requests as follows:
response = requests.post('https://dq-clamav/scan', files={'file': scan}, data={'name': scan_file}, verify=False)

ukhomeoffice.dq-kube-clamav's People

Contributors

abouhouly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.