Disable account registration

560 views
Skip to first unread message

Eric Schoonover

unread,
Jun 12, 2010, 9:19:27 PM6/12/10
to Repo and Gerrit Discussion
Is there a way to disable account registration so that administrators
have to add accounts manually for each user? I am trying to figure out
how I can use gerrit2 in an environment where I don't want anyone that
can get to the HTTP address to be able to create an account and
interact with the data displayed there.

- Eric

Shawn Pearce

unread,
Jun 12, 2010, 10:28:03 PM6/12/10
to Eric Schoonover, Repo and Gerrit Discussion

Not really. You can however work around it by using a reverse proxy,
and HTTP authentication in the reverse proxy.

Use auth.type = HTTP in gerrit.config, and have your reverse proxy web
server authenticate the users through a password file. Only users in
the file can register an account.

See [1] and [2] for more details.

[1] http://gerrit.googlecode.com/svn/documentation/2.1.2/config-sso.html#toc2
[2] http://gerrit.googlecode.com/svn/documentation/2.1.2/config-apache2.html


Another option is to just allow any user to register an account, but
use project level access controls to only permit users of some group
to read the projects. Even if a user registers, they can't see
anything without having an administrator add them to the group.

Reply all
Reply to author
Forward
0 new messages