Remember time of last user push activity
commite9c40d4958abefaf129727f7961d602494968ed6
authorKyle J. McKay <mackyle@gmail.com>
Tue, 2 Sep 2014 22:12:31 +0000 (2 15:12 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 2 Sep 2014 22:12:31 +0000 (2 15:12 -0700)
tree3c6b6944fa91771d02db819c1373eb706d3730c8
parent214b0624c765f3fece9c95536685c8329c65d101
Remember time of last user push activity

When a user pushes and successfully passes the initial push
permissions check, update the time stamp on the file
$Girocco::Config:chroot/etc/sshactive/$USER to record the
time of the most recent push activity for $USER.

Despite the name "sshactive" both https and ssh push activity
updates the time stamp on the file.

When combined with a user's creation date, this allows one to
determine whether or not the user has ever actually been used
to push anything in the recent past.

Since fetches do not update this time stamp, it's possible
the user's key was used for fetching, but since all repos are
world-readable there's no reason to keep a user around only
for fetches should inactive user removal be implemented in
the future.
Girocco/User.pm
bin/git-http-backend-verify
bin/git-shell-verify
jailsetup.sh
toolbox/remove-user.sh