dist-git/pagure: configure pagure to allow access via a single git user for everyone
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
a3677b36a1
commit
218d692b85
2 changed files with 7 additions and 12 deletions
|
@ -298,8 +298,6 @@ ADMIN_API_ACLS = [
|
||||||
|
|
||||||
PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.+]*$'
|
PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.+]*$'
|
||||||
|
|
||||||
HTTP_REPO_ACCESS_GITOLITE = None
|
|
||||||
|
|
||||||
CSP_HEADERS = (
|
CSP_HEADERS = (
|
||||||
"default-src 'self'; "
|
"default-src 'self'; "
|
||||||
"script-src 'self' '{nonce_script}' https://apps.fedoraproject.org https://mdapi.fedoraproject.org; "
|
"script-src 'self' '{nonce_script}' https://apps.fedoraproject.org https://mdapi.fedoraproject.org; "
|
||||||
|
|
|
@ -90,16 +90,13 @@ PDC_URL = 'https://pdc{{ env_suffix }}.fedoraproject.org/rest_api/v1/'
|
||||||
SSH_KEYS_USERNAME_LOOKUP = True
|
SSH_KEYS_USERNAME_LOOKUP = True
|
||||||
SSH_KEYS_OPTIONS = 'restrict,command="/usr/libexec/pagure/aclchecker.py %(username)s"'
|
SSH_KEYS_OPTIONS = 'restrict,command="/usr/libexec/pagure/aclchecker.py %(username)s"'
|
||||||
|
|
||||||
SSH_COMMAND_REPOSPANNER = ([
|
{% if env == 'staging' %}
|
||||||
"/usr/libexec/repobridge",
|
GIT_AUTH_BACKEND = 'pagure'
|
||||||
"--extra", "username", "%(username)s",
|
SSH_KEYS_USERNAME_EXPECT = 'git'
|
||||||
"--extra", "repotype", "%(repotype)s",
|
{% endif %}
|
||||||
"--extra", "project_name", "%(project_name)s",
|
|
||||||
"--extra", "project_user", "%(project_user)s",
|
HTTP_REPO_ACCESS_GITOLITE = None
|
||||||
"--extra", "project_namespace", "%(project_namespace)s",
|
|
||||||
"%(cmd)s",
|
|
||||||
"'pagure/%(repotype)s/%(reponame)s'",
|
|
||||||
], {"REPOBRIDGE_CONFIG": "/etc/repobridge/rpms.json"})
|
|
||||||
SSH_COMMAND_NON_REPOSPANNER = ([
|
SSH_COMMAND_NON_REPOSPANNER = ([
|
||||||
"/usr/libexec/git-core/%(cmd)s",
|
"/usr/libexec/git-core/%(cmd)s",
|
||||||
"%(repopath)s",
|
"%(repopath)s",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue