[PATCHv4 0/2] Authorize viewing a repository

Valentin Haenel valentin.haenel at gmx.de
Wed Oct 31 19:50:40 CET 2012


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





More information about the CGit mailing list