Skip to content

Commit

Permalink
Update readme inline with initial release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanmunro committed Mar 26, 2019
1 parent 68f43f2 commit 03c8ee6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Local config
users.yml
# Local config/build
users.yml
chowder
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Chowder
[![Build Status](https://travis-ci.org/lachlanmunro/chowder.svg?branch=master)](https://travis-ci.org/lachlanmunro/chowder)

Chowder is a REST API front end for ClamAV written in Go.

Chowder is a REST API for ClamAV written in Go.
* HTTPS
* JSON logs
* Prometheus metrics
* Prometheus metrics

## Current state
All the API endpoints are hand tested, no unit or integration CI yet. Probably needs a tomb on the response goroutine. Missing a panic handler so you might get some text where you should be getting JSON (from the router). Not benchmarked or optimised further than by eyeball. Beta means beta.

## Key Points
* Needs a backing clamd setup with a tcp socket.
* Auth using an `Authorize` header if you supply a users.yml (a yaml dict of `token: username`).
* HTTPS if either of the supplied `certfile` or `keyfile` resolve to a file.
* POST /scan performs an instream scan using the post body (will correctly chunk for instream, just send your files as straight binary in the body).
* GET /healthz performs a health check and calls ping on the underlying antivirus.
* GET /metrics returns prometheus metrics.
* Quirks of Go mean you need to set false flags like `-pretty=false` (ie if you want JSON logs).
* Should get one line of log entry per request so long as loglevel is info or above.

0 comments on commit 03c8ee6

Please sign in to comment.