secure APIs on Ubuntu