This is an old revision of the document!


Security

Usually, clapf listens on the localhost, so it cannot be accessed directly.

As clapf listens on a high port (>1024), and it does not require any special privileges. By default it switches to user 'clapf' after it's started. You may run it as a different user by setting the username parameter.

username=clapf

Because the clapf.conf file probably contains sensitive data, such as MySQL credentials, it's very important that it shouldn't be read by any other user than clapf.

chgrp clapf /usr/local/etc/clapf.conf
chmod 640 /usr/local/etc/clapf.conf

If you have clapf.pem for enabling starttls support for the clapf daemon, then fix permissions on it as well:

chgrp clapf /usr/local/etc/clapf.pem
chmod 640 /usr/local/etc/clapf.pem