From mboxrd@z Thu Jan 1 00:00:00 1970 From: valentin.haenel at gmx.de (Valentin Haenel) Date: Wed, 31 Oct 2012 19:50:40 +0100 Subject: [PATCHv4 0/2] Authorize viewing a repository In-Reply-To: <1350378927-10834-1-git-send-email-valentin.haenel@gmx.de> References: <1350378927-10834-1-git-send-email-valentin.haenel@gmx.de> Message-ID: <1351709440-29185-1-git-send-email-valentin.haenel@gmx.de> This is the fourth iteration of the patches to invoke an external helper for authorizing viewing of repositories. The significant changes are that now, no book-keeping of the REMOTE_USER or equivalent environment variable is done within cgit and the authorization helper must instead obtain this from the environment. Also, the authorization helper is no longer invoked via 'system', but instead using a 'fork/exec/wait' construct. Lastly, the external helper is no longer given any arguments, but must get the repository to authorize for, from the environment. To this end, the same "CGIT_*" environment variables that are available to the filters are handed over. The cgit man page entry for the authorization helper has been updated to describe the environment available to the helper and the expected exit code. The example for interfacing with gitolite has now got adequately quoted variables and has been updated to reflect the changes in how the external helper should be invoked. Carlos Aguado Sanchez (1): Helper script to interface to gitolite Valentin Haenel (1): Add ability to authorize viewing a repository cgit.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ cgit.h | 1 + cgitrc.5.txt | 6 ++++++ contrib/gl-check-user | 20 ++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100755 contrib/gl-check-user -- 1.7.9.5