Adding users to Gitolite

前端 未结 2 1385
后悔当初
后悔当初 2021-02-01 07:42

I\'m trying to setup Gitolite but I\'m running into a weird issue:

When I add a new public key file for a new user (say raphaelcruzeiro.pub), giolite sends me the follow

2条回答
  •  清歌不尽
    2021-02-01 08:14

    Note that the recent gitolite v3.5.2-10-g437b497 introduces (September 2013, commit 59c817d0):

    ukm, for "user key management".

    User key management allows certain users to add and remove keys.

    It introduces a level of delegation, when not just the gitolite admin user can add new ssh public keys, but other users can now do so as well.

    You can see it in action in "contrib/t/ukm.t":

    You need to enable that feature:

    # enable user key management in a simple form.
    # Guest key managers can add keyids looking like email addresses, but
    # cannot add emails containing example.com or hemmecke.org.
    system("sed -i \"s/.*ENABLE =>.*/'UKM_CONFIG'=>{'FORBIDDEN_GUEST_PATTERN'=>'example.com|hemmecke.org'}, ENABLE => ['ukm',/\" $h/.gitolite.rc");
    

提交回复
热议问题