Sergey Sharybin
e0bd65be95
Support custom policy for GIT access rules
...
Implements following rules:
- Users
- Users of any project
- Users of all projects
- Administrators
- Signers
The 'If No Rules Match' the access is implicitly considered to
be 'DENY'.
It is not possible to control access based on the Moon phase.
2020-09-17 13:26:33 +02:00
Sergey Sharybin
9dc4d903c7
Ignore disabled users for Git/SVN synchronization
2019-08-01 16:51:02 +02:00
Sergey Sharybin
c90665645e
Gitosis sync fixes and improvements
...
- Fixed some remaining issues caused by the update process.
- Support custom rules for the repositories.
Currnetly only supports allowing users.
2014-11-10 01:38:58 +05:00
Sergey Sharybin
fb3c71820b
Fix rebuild gitadmin using old user typeconst class
2014-11-10 01:16:32 +05:00
Sergey Sharybin
5e4ce96266
Fix some more issues after the merge
2014-09-23 00:57:46 +06:00
Sergey Sharybin
d03569e908
Correction for the previous commit
2013-11-27 22:20:55 +06:00
Sergey Sharybin
b1097e9c61
Fix for crash when pushable project have unknown users
...
Apparently we've got Unknown Object (Phabricator User) in
translation project now.
Not sure how it became invalid, but automated scripts
better be robust for this.
2013-11-27 22:14:07 +06:00
Sergey Sharybin
ae2b0e63d6
Further tweaks to gi ermissions script
...
- Seems @all didn't work, now use explicit list of repos
- Handle cases when phab user uses the same key as used for
"system" repositories.
2013-11-15 20:19:20 +06:00
Sergey Sharybin
bcbae097de
Another attempt to make phab sync working
2013-11-15 18:55:16 +06:00
Sergey Sharybin
b59dca4eeb
Made it so public keys are stored in files with .pub extension
...
It is an attempt to solve issues with missing permissions on
pahabricator users.
2013-11-15 18:49:56 +06:00
Sergey Sharybin
5b73071d64
Removed debug-only left-over
2013-11-15 02:29:03 +06:00
Sergey Sharybin
9527d8aafd
tweak to shebang so cron is happy with it
2013-11-14 13:31:50 +06:00
Sergey Sharybin
e35bc58e0e
Fixes for gitosis admin script
...
Basically, pull wasn't happening correct and it was
updating files from CWD< not from workdir.
2013-11-14 12:44:59 +06:00
Sergey Sharybin
1f2471fa67
Use git repository name from uri. not from repo name
2013-11-14 00:09:40 +06:00
Sergey Sharybin
645a6a9f54
Made rebuild_gitadmin only take git repositories into account
2013-11-12 22:43:01 +06:00
Sergey Sharybin
428cdae3cf
Further tweaks to gitosis conf rebuild script
...
- Pull need SSH key as well
- Repository names are ensured to be lower case
- Use verbose name for commti author
2013-11-07 20:33:51 +06:00
Sergey Sharybin
55972ef2c1
Gitadmin configuration now could be commited and pushed from update script
2013-11-07 20:33:51 +06:00
Sergey Sharybin
60cddad047
Whitespace cleanup
2013-11-07 20:33:51 +06:00
Sergey Sharybin
a77a33dc50
Rework gitosis config generator to use pushable settings from repository
2013-11-07 20:33:51 +06:00
Sergey Sharybin
259588e747
Added script which rebuilds gitadmin configuration
...
It generates new gitosis.conf and public key files.
Actual commit to repo would likely be done with a
wrapper script which will run in cron.
2013-11-07 20:33:50 +06:00