私はhttps://github.com/sitaramc/gitoliteの開発者に話を聞いた、彼は方向に私を指摘:SSHアクセスが十分で
in short, you need a "mini gitolite"?
(1) set it up the way my man page says but instead of using
gl-auth-command use your script
(2) your script should do/deal with the following:
- it should take the authenticated username from $REMOTE_USER
- it should look at the PATH_INFO, REQUEST_URI, etc., to find out
what repo he wants to access and whether he wants to read or write
(you can see the code in simulate_ssh_connection() in my code for
that)
- then use whatever logic you want to decide if you should allow or
reject the request
If you allow it you must "exec" the original git-http-backend.
あなたは、httpが必要です、または(制限付き)でしょうか? – huitseeker
私はhttpが好きで、以前はsshルートに行きました。 – drewrockshard
明らかにgitoliteがスマートなHTTPをサポートするようになりました:http://github.com/sitaramc/gitolite/blob/pu/doc/http-backend.mkd - きめ細かなアクセスコントロールがスマートなHTTPにも拡張されているかどうかはわかりません、 しかしながら。 –