aboutsummaryrefslogtreecommitdiff
path: root/lib/GitACL.pm
AgeCommit message (Collapse)AuthorFiles
2019-08-30Use proper logical operatorsHEADmasterSergey Poznyakoff1
2014-07-31Minor imorivementSergey Poznyakoff1
* lib/GitACL.pm: Use class attributes instead of state variables.
2014-07-31Optionally test filenames of the files changed by the commit.Sergey Poznyakoff1
* gitacl.schema (gitAclTree): New attribute. * gitaclhook: Document changes. Accept four or more arguments in test mode. * lib/GitACL.pm (git_values): New function. (match_tree): New function. (match_tuple): Match path pattern, if supplied. (new): Fix initialization of the debug member. Get remote IP address from the socket, if no envar is defined. Default to 127.0.0.1. * lib/GitACL/File.pm (check_acl): Allow up to 6 fields in an ACL line. * lib/GitACL/LDAP.pm: Get path pattern from the gitAclTree attribute.
2014-07-30Use special project name "all" to match all projects.Sergey Poznyakoff1
2014-07-29Separate rules for the same user name coming from different IP addresses.Sergey Poznyakoff1
* Makefile.PL: Add Net::CIDR to the list of prerequisites. * gitaclhook: Document user@CIDRLIST syntax and the hooks.acl.ip-env-var variable. * lib/GitACL.pm: Use Net::CIDR (match_host): New sub. (match_user): Check IP against cidr part (if defined). (new): Get remote IP address from environment.
2014-07-29Change namespace for the configuration variables: hooks.acl.*Sergey Poznyakoff1
2014-04-25Change default rule to "deny".Sergey Poznyakoff1
The old behavior can be restored by setting 'hooks.acldefault = allow' in Git configuration. * gitaclhook: Document hooks.acldefault. * lib/GitACL.pm (default_rule): New sub. * lib/GitACL/File.pm (check_acl): Use default_rule. Fix incorrect reference to project_name. * lib/GitACL/LDAP.pm (check_acl): Use default_rule.
2013-10-24Take into account the user primary group.Sergey Poznyakoff1
* MANIFEST: Add new files. * lib/GitACL.pm (match_primary_group): New function. (match_user): Use match_primary_group. * lib/GitACL/File.pm (check_acl): Minor fix.
2013-06-25Bugfixes.release-1.00Sergey Poznyakoff1
* gitacl.schema: An example LDAP schema. * MANIFEST: Add gitacl.schema * Makefile.PL: Update. * gitaclhook: Fix passing 'user' parameter in test mode. * lib/GitACL.pm: Fix malformed references.
2013-06-23Extract from gsc into a separate project.Sergey Poznyakoff1
2013-06-23Rewrite gitaclhook in a modular way.Sergey Poznyakoff1
The new version provides two storage engines: File and LDAP. * git/MANIFEST: New file. * git/Makefile.PL: New file. * git/gitaclhook: Rewrite. * git/lib/GitACL.pm: New file. * git/lib/GitACL/File.pm: New file. * git/lib/GitACL/LDAP.pm: New file.

Return to:

Send suggestions and report system problems to the System administrator.