gitosis icon indicating copy to clipboard operation
gitosis copied to clipboard

Reject invalid gitosis configurations

Open lazytyper opened this issue 9 years ago • 2 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.

lazytyper avatar Aug 26 '15 22:08 lazytyper

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.

tv42 avatar Aug 26 '15 22:08 tv42

You mean a check like visudo?

xundeenergie avatar Aug 28 '19 08:08 xundeenergie