1 |
On 17-09-04 at 17:05, Alan McKinnon wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I fear I have a severe case of too many trees in the way to see the forest. |
5 |
> |
6 |
> I have a git server, it only runs git. |
7 |
> All the sysadmins have full access using ssh://, their keys are in git's |
8 |
> authorized_keys, the repos are owned git:git, MODE 770, etc etc, and it |
9 |
> works like it should. |
10 |
> |
11 |
> I want an app to have read-only access to some repos, i.e. clone and |
12 |
> pull only. But they are not publicly accessible i.e. the app user must |
13 |
> be pre-authorized by me and have a public key. And for the life of me I |
14 |
> can't think how to do it! |
15 |
You want to use the command= option in the .ssh/authorized_keys file for |
16 |
the key to ensure that only `git-upload-pack <repo_path>' is run |
17 |
|
18 |
> Google is only giving me results about what fancy buttons to click in |
19 |
> GitHub and Gitlab... I know, my Google-fu sucks today. |
20 |
You can look at [1] if you want a really minimal example of a git |
21 |
permissions management system. |
22 |
|
23 |
[1]: https://github.com/cbdevnet/fugit |
24 |
|
25 |
-- |
26 |
Simon Thelen |