From 6d32b0ef2c426c02299a36e1a17d439b38d84192 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Fri, 10 Apr 2015 08:47:42 +0200 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 50c3a26..099a978 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,31 @@ The Dist Git server repeatedly asks a package database for information about pac User cat interact with the Dist Git server using client probably based on [rpkg](https://fedorahosted.org/rpkg/). The client authenticates with an ssh certificate for git communication and with an http client certificate for uploads to the lookaside cache. ![server-communication](/images/server-communication.png) + +### Package Database communication +The following is an example JSON data comming from the Package Database which would create two packages: *copr-frontend* and *copr-backend*. The first package would be for Fedora 21 only and permissions to commit into this repo would be granted to users *mirek*, *adam* and anyone in the group *provenpackager*. The *copr-backend* package would be for Fedora 21 and CentOS 7. The permissions would be processed the same way as for the first package. + + "packageAcls": { + "copr-frontend": { + "fedora-21": { + "commit": { + "groups": ["provenpackager"], + "people": ["mirek", "adam"] + } + } + }, + "copr-backend": { + "fedora-21": { + "commit": { + "groups": ["provenpackager"], + "people": ["mirek", "valentin"] + } + } + "centos-7": { + "commit": { + "groups": ["provenpackager"], + "people": ["mirek", "valentin"] + } + } + } + }