git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* gitosis question: identifying/logging remote user
@ 2009-06-02  4:02 Sitaram Chamarty
  2009-06-02  6:31 ` Robin H. Johnson
  2009-06-02 13:56 ` [PATCH] Add USER environment variable to executed git commands when serving Heiko Voigt
  0 siblings, 2 replies; 11+ messages in thread
From: Sitaram Chamarty @ 2009-06-02  4:02 UTC (permalink / raw)
  To: git; +Cc: tv

Hi,

Summary:

I want to be able to log the information that the post-receive hook
receives, but I *also* want, along with that, the name of the pubkey
that was used in this particular "push".

Detail:

gitosis uses lines in ~git/.ssh/authorized_keys that use ssh's
"command=" feature.  Specifically, the command is restricted to
"gitosis-serve username".  Internally, gitosis uses this name to
decide if you're allowed to do what you're trying to do.

I'd like it to set an additional env var which will contain "username"
so that hooks etc can get that info and use it as they they see fit.

Q1: are there any downsides to doing this?  I don't see any, you're
just creating and setting a new variable but...

Q2: if it's a good idea, can someone give me a hint about where to do
this?  I'm useless at python but I'm willing to try.

Thanks,

Sitaram

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-06-03 21:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02  4:02 gitosis question: identifying/logging remote user Sitaram Chamarty
2009-06-02  6:31 ` Robin H. Johnson
2009-06-02 13:19   ` Sitaram Chamarty
2009-06-02 20:21     ` Robin H. Johnson
2009-06-03  0:54       ` Sitaram Chamarty
2009-06-02 13:56 ` [PATCH] Add USER environment variable to executed git commands when serving Heiko Voigt
2009-06-03  1:04   ` Sitaram Chamarty
2009-06-03  6:24     ` Sitaram Chamarty
2009-06-03 20:27       ` Heiko Voigt
2009-06-03 20:50         ` Robin H. Johnson
2009-06-03 21:02           ` Shawn O. Pearce

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).