List for cgit developers and users
 help / color / mirror / Atom feed
From: dev at (Martin M.)
Subject: Private repos & auth
Date: Thu, 13 Jun 2019 23:20:52 +0200
Message-ID: <> (raw)

Great questions by Paul! I am facing exactly the same use case and these
questions are not yet answered:

> # Private repos
> I have my config set to "scan". Would it be possible to declare 
> somewhere in the repo *itself* that it should be private?
> # Authentication
> I see the filter documentation but I am unsure how to actually implement 
> it. I'd like *some* public repos but most of my repos are private.

I have recently installed Gitolite and cgit, after the usual
installation and configuration ups and downs, everything works fine now
(using SSH for cloning). But since yesterday I am struggling to
implement authentication for a subset of repos (call them private). My
first idea was to use HTTP basic auth, without success. Then I
investigated into the cgit filter and example script
'simple-authentication.lua'. I configured the variables in this script
but have no clue how to correctly trigger and deploy it. How and where
do I correctly provide the 12 arguments as mentioned in cgitrc? A
working setup using the script and proper configuration in cgitrc would
help me a lot.

There is another very interesting approach for auth using the already
provided setup from Gitolite
( However, I could not
find the required Perl packages and put this on hold.

So, what is the best practice for using private repositories beside
public one in cgit? Any help is welcome!

Thank you.

             reply	other threads:[~2019-06-13 21:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-13 21:20 dev [this message]
2019-06-20 21:08 ` dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \
    --to= \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

List for cgit developers and users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 cgit cgit/ \
	public-inbox-index cgit

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone