stable

Clone or download

Read-only

request #9970: Tuleap can generate the SSH authorization keys file for Gitolite

To test it you have to: - use gitolite3 - deploy the new sudoers file gitolite3-replace-authorized-keys - insert the following entry into the new table: INSERT INTO plugin_git_global_parameters(name, value) VALUES ('authorized_keys_managed', 'tuleap'); New instances will use this mode by default, a next contribution will add a way for existing instances to switch over this new management mode. The switch will however be one-way, once Tuleap manages the keys it will not be possible to go back the Gitolite management. Change-Id: I4556378e7f8ba5780f81ad011b27ee730c69a3d1

Modified Files

Name
A plugins/git/bin/replace-authorized-keys.sh +14 −0 Go to diff View file
M plugins/git/db/install.sql +6 −0 Go to diff View file
A plugins/git/db/mysql/updates/2017/201702211530_create_global_parameters_table.php +49 −0 Go to diff View file
A plugins/git/etc/sudoers.d/gitolite3-replace-authorized-keys +3 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/AuthorizedKeysFileCreator.php +73 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/DumpKeyException.php +25 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Dumper.php +31 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/DumperFactory.php +93 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Gitolite3Dumper.php +104 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Gitolite3MassDumper.php +47 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Key.php +55 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/ManagementDetector.php +51 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/MassDumper.php +28 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/AccessException.php +25 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/GerritServer.php +75 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/GitoliteAdmin.php +50 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/IProvideKey.php +25 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/User.php +93 −0 Go to diff View file
A plugins/git/include/Git/Gitolite/SSHKey/Provider/WholeInstanceKeysAggregator.php +65 −0 Go to diff View file
M plugins/git/include/Git/RemoteServer/Dao.class.php +6 −0 Go to diff View file
M plugins/git/include/Git_Gitolite_SSHKeyDumper.class.php +5 −2 Go to diff View file
M plugins/git/include/Git_Gitolite_SSHKeyMassDumper.class.php +9 −7 Go to diff View file
A plugins/git/include/GlobalParameterDao.php +38 −0 Go to diff View file
M plugins/git/include/autoload.php +18 −2 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_DUMP_ALL_SSH_KEYS.class.php +5 −3 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_EDIT_SSH_KEYS.class.php +5 −3 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_GERRIT_ADMIN_KEY_DUMP.class.php +6 −3 Go to diff View file
M plugins/git/include/events/SystemEvent_GIT_USER_RENAME.class.php +4 −5 Go to diff View file
M plugins/git/include/gitPlugin.class.php +51 −18 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/AuthorizedKeysFileCreatorTest.php +53 −0 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/DumperFactoryTest.php +72 −0 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/ManagementDetectorTest.php +54 −0 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/Provider/GerritServerTest.php +73 −0 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/Provider/UserTest.php +62 −0 Go to diff View file
A plugins/git/tests/Git/Gitolite/SSHKey/Provider/WholeInstanceKeysAggregatorTest.php +38 −0 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +2 −0 Go to diff View file