• Michael Kropat's avatar
    Add key-based authentication to management service · 067052d4
    Michael Kropat authored
    Intended to be the simplest auth possible: every time the service
    starts, a random key is written to `/var/lib/mailinabox/api.key`. In
    order to authenticate to the service, the client must pass the contents
    of `api.key` in an HTTP basic auth header. In this way, users who do not
    have read access to that file are not able to communicate with the
    service.
    067052d4
start.sh 4.74 KB