[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN Hook doesn't know client's IP Address?

From: Mike Schilli <m_at_perlmeister.com>
Date: Tue, 24 Feb 2009 11:29:45 -0800 (PST)

On Tue, 24 Feb 2009, David Weintraub wrote:

> The user who is running the hook script is available. Why do you need
> the IP address?

It's only for logging purposes, I want to have a track record of who's
doing commits under which username logged in from which IP.

Having the IP along with the username in my logs helps tracking down
cases where people share svn login credentials or to determine if
a check-in is slow because a user is located at the end of a slow
Internet connection on a different continent.

-- Mike

Mike Schilli
m_at_perlmeister.com

> Since you're using ssh, the whole conversation between you and the
> user is encrypted, and you've already identified the user via name.
> Are you trying to prevent commits if the user is located is not at
> a particular IP address?
>
> On Tue, Feb 24, 2009 at 11:28 AM, Mike Schilli <m_at_perlmeister.com> wrote:
>> On Tue, 24 Feb 2009, Andy Levy wrote:
>>
>>> Hook scripts are executed in an empty or near-empty environment for
>>> security purposes.
>>
>> I figured so much, but is there another way for a hook to log the
>> client's IP address? For example, is there a way to configure the server
>> to make an exception and pass SSH_CLIENT on to the hook?
>>
>> -- Mike
>>
>> Mike Schilli
>> m_at_perlmeister.com
>>
>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1221390
>>
>> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>>
>
>
>
> --
> --
> David Weintraub
> qazwart_at_gmail.com
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1222090

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-25 05:01:41 CET

This is an archived mail posted to the Subversion Users mailing list.