Secure management of a document repository