Project

General

Profile

Actions

Patch #14527

open

Git-smart-http authentication by repository

Added by Ciprian Ciubotariu over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM extra
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

This patch allows the repository name to differ from the project name.

We migrated to a multi-repository per project setup after the whole infrastructure (scripts, build servers etc.) was set up. At this point we considered that renaming all the repositories to match the project identifier is too time-consuming and error-prone.

The compromise we found is to path the authentication script so that is also looks at the pool of repository identifiers when authenticating a git-smart-http request:

  1. extract the project/repository identifier from the request URI
  2. if it is a project identifier, use that project to authenticate the request
  3. if it is a repository identifier, use the first project it belongs to authenticate the request.

While this patch does not represent a full solution to the multi-repository problem, I hope it helps others in the same situation as us.


Files

repo-id-auth.patch (949 Bytes) repo-id-auth.patch Ciprian Ciubotariu, 2013-07-23 17:04
Actions #1

Updated by Toshi MARUYAMA over 10 years ago

  • Category changed from SCM to SCM extra
Actions

Also available in: Atom PDF