Score:0

Create git server with many repositories

aw flag

Please consider my question from a technical point of view. I am faced with the problem of access control to git repositories. I need to somehow distinguish the access of certain ssh-keys. That is, the key should give access to one repository, not to all. I looked at how git servers are organized: a git user is created (that's what it's called, I'm shocked))), a repository (one) is created and shh keys of development participants are added. So, I need this repository to be not one but many, but the key did not give access to all depositories. If you know how such services and products as GitLab, Gitlab, gitlab are organized, I really want to know how to organize access. I will be glad of any comments, questions, answers, thank you in advance for your attention to the question)))

Andrey avatar
aw flag
In such services as gitlab, github this problem is solved, but I can't understand what technical solution(
Jaromanda X avatar
ru flag
there are a few products that allow you to host your own github-like system, e.g. ones that I've personally used are `gogs` and `gitea`
Score:1
br flag

In GitLab you work with projects and project groups, and assign rights to these. The official documentation explains it well.

Score:0
jp flag

You can check gitolite project code. It is very simple command-line-only system to manage multiple git repos with multiple users and different access permissions.

It creates a single ssh user gitolite with multiple ssh public keys put in authorized_keys. It sets "command=gitolite-shell username" in authorized_keys for each individual ssh public key to call its gitolite-shell wrapper for a user. The wrapper then uses gitlite config to determine calling user access rights to each git repo.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.