tv42 / gitosis

software for hosting git repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reject invalid gitosis configurations

lazytyper opened this issue · comments

If you push an update of gitosis-admin with an invalid gitosis.conf file, you can't access any repositories anymore, you will always receive a ConfigParser.ParsingError until you fix the gitosis,conf on the server.

There should be a protection:
When the gitosis-admin repository receives an update, the gitosis.conf should be checked if it is still valid, if not, then the update should be rejected.

commented

Unfortunately, "valid" is not a criteria that can be programmed reasonably. What if you accidentally replaced your ssh public key with the key of a stranger?

The only fix that works in all circumstances is to log in to the box and undo the damage. Sorry.

You mean a check like visudo?