stable

Clone or download

Read-only

Block Git access through SSH when a project is suspended

This is part of story #12160 have a clean way to suspend a project When a project is switched to suspended: * A new system event is created in the Git queue * Once processed, all the repositories of the project must not be usable through SSH When a project is switched to active: * The existing system event regenerate gitolite config is queued * The config file is regenerated with the permissions set in DB Change-Id: I22284214aa0a80584f990125e6ebd33c035840fd

Modified Files

Name
M plugins/git/include/Git/Gitolite/ConfigPermissionsSerializer.class.php +5 −0 Go to diff View file
M plugins/git/include/Git/Gitolite/GitoliteConfWriter.php +69 −4 Go to diff View file
M plugins/git/include/Git/Gitolite/ProjectSerializer.class.php +38 −0 Go to diff View file
M plugins/git/include/Git/SystemEventManager.class.php +13 −1 Go to diff View file
M plugins/git/include/Git_GitoliteDriver.class.php +25 −2 Go to diff View file
A plugins/git/include/SystemEvents/ProjectIsSuspended.php +80 −0 Go to diff View file
M plugins/git/include/gitPlugin.class.php +25 −1 Go to diff View file
M plugins/git/phpunit/Git/Gitolite/ConfigPermissionsSerializerTest.php +10 −0 Go to diff View file
M plugins/git/phpunit/Git/Gitolite/ProjectSerializerTest.php +45 −0 Go to diff View file