stable

Clone or download

Read-only

request #9312 Replication from gerrit server does not work over http

This commits add a new parameter in Gerrit server configuration to be able to the replicatation over HTTPS (or HTTP, but please use HTTPS). To do this, the Gerrit administrator has to enable the Gerrit replication plugin. Then, he must configures the replication with the replication.config file and provide a Tuleap HTTPS URL. After that, he has to add the forge__user login and the newly provided password in the secure.config file to add the basic authentication crendentials. With that, the replication will works through HTTPS. Be careful, if you use a self signed certificate, you have to import it in your JAVA keytool[1] [1] http://alvinalexander.com/java/java-using-keytool-import-certificate-keystore Change-Id: I797042fe113e18eeb7bbb6359dcd024b9faa0dc8

Modified Files

Name
M plugins/git/db/install.sql +1 −0 Go to diff View file
A plugins/git/db/mysql/updates/2016/201607061503_add_replication_password_for_git_remote_server.php +63 −0 Go to diff View file
M plugins/git/include/Git.class.php +10 −6 Go to diff View file
M plugins/git/include/Git/AdminGerritController.class.php +28 −15 Go to diff View file
M plugins/git/include/Git/HTTP/CommandFactory.class.php +51 −13 Go to diff View file
M plugins/git/include/Git/HTTP/CommandGitolite.class.php +2 −2 Go to diff View file
M plugins/git/include/Git/HTTP/CommandGitolite3.class.php +2 −2 Go to diff View file
M plugins/git/include/Git/RemoteServer/Dao.class.php +99 −17 Go to diff View file
A plugins/git/include/Git/RemoteServer/Gerrit/ReplicationHTTPUser.php +47 −0 Go to diff View file
A plugins/git/include/Git/RemoteServer/Gerrit/ReplicationHTTPUserAuthenticator.php +81 −0 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServer.class.php +42 −14 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServerFactory.class.php +15 −3 Go to diff View file
M plugins/git/include/Git/RemoteServer/GerritServerPresenter.class.php +21 −18 Go to diff View file
M plugins/git/include/autoload.php +4 −2 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMP.class.php +2 −4 Go to diff View file
M plugins/git/templates/admin-plugin-gerrit-server.mustache +9 −0 Go to diff View file
M plugins/git/tests/Git/AdminGerritControllerTest.php +75 −46 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/GerritDriverFactoryTest.php +4 −1 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/ProjectCreatorTest.php +1 −0 Go to diff View file
M plugins/git/tests/Git/Driver/Gerrit/RemoteSSHCommandTest.php +3 −0 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerFactoryTest.php +16 −11 Go to diff View file
M plugins/git/tests/Git/RemoteServer/GerritServerTest.php +92 −78 Go to diff View file
M plugins/git/tests/builders/aGerritServer.php +2 −1 Go to diff View file
M plugins/git/tests/events/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMPTest.php +1 −0 Go to diff View file
M plugins/git/tests/rest/GitDataBuilder.php +4 −2 Go to diff View file