Background Info:

End Goal: Perform Gerrit code reviews in Rubymine rather than on Gerrit's rudimentary web interface.

I attempted to connect with the Gerrit IntelliJ plugin with no success. I emailed Urs Wolfer, the main contributor, and he updated the README to include an "Important Note if you have Authentication Issues", in which he states:

If you have correctly set up a HTTP Password in Gerrit, but still have authentication issues, your Gerrit instance might be behind a HTTP Reverse Proxy (like Nginx or Apache) with enabled HTTP Authentication. You can identify that if you have to enter an username and password (browser password request) for opening the Gerrit web interface. Since this plugin uses Gerrit REST API (with authentication enabled), you need to tell your system administrator that he should disable HTTP Authentication for any request to /a path (e.g. https://git.example.com/a). For these requests HTTP Authentication is done by Gerrit (double HTTP Authentication will not work). For more information see Gerrit documentation.

When I asked my system adminstrator if they could disable HTTP Authentication for any request to /a, he replied with:

we can't disable http auth, sorry

(not even for certain paths)

you might be able to set up some sort of local proxy if you don't want to hack on his code

it'd be an http proxy that does its own basic auth, not sure if something already exists for that purpose

Useful Info: I am a noob. I don't know exactly what setting up an http proxy that does its own basic auth will entail. I am concerned that I may break things.

Current progress towards solving this problem:

Looking into the following:

Most promising thus far:



If i understood correctly, you have a proxy in your workplace that uses an authentication system that is not supported by a certain plugin. One way of workaround this would be to run a program or script that will behave as a local proxy, supporting the authentication system at your workplace, and implementing a simple or no authentication local proxy for the intended plugin to connect to.

So, if i read the question correctly this is what you need to do:

  1. Install Python
  2. Configure ntlmaps to use your company's proxy
  3. Configure Gerrit plugin to use the local proxy you configured in ntlmaps


Mostly any other solution you were looking into would work also, if implemented around the same basic concept.

It is really hard to go into configuration details without previous knowledge on specifics on the authentication types, but last time I had to do something similar ntlmaps was the most simple to implement/configure in my personal experience.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.