All of lore.kernel.org
 help / color / mirror / Atom feed
* Query remote repository files, blobs
@ 2009-12-19  7:45 Shakthi Kannan
  2009-12-19 11:02 ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: Shakthi Kannan @ 2009-12-19  7:45 UTC (permalink / raw)
  To: git

Hi,

>From git-ls-remote:
http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html

I am able to query for list of remote heads, and tags. I would like to
know if it is possible to query for information on remote files, or
blobs? Sometimes, I am on a slow Internet connection, and I just want
to be able to see the remote file diffs, or new file, branch
additions, or changes without having to clone the repository.

Appreciate any inputs on this regard,

Thanks!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

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

* Re: Query remote repository files, blobs
  2009-12-19  7:45 Query remote repository files, blobs Shakthi Kannan
@ 2009-12-19 11:02 ` Johannes Schindelin
  2009-12-19 13:31   ` Bill Lear
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2009-12-19 11:02 UTC (permalink / raw)
  To: Shakthi Kannan; +Cc: git

Hi,

On Sat, 19 Dec 2009, Shakthi Kannan wrote:

> Hi,
> 
> >From git-ls-remote:
> http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html
> 
> I am able to query for list of remote heads, and tags. I would like to
> know if it is possible to query for information on remote files, or
> blobs?

This has been discussed a number of times, but we cannot allow that for 
security reasons.  A blob might contain confidential information, in which 
case the branch has to be rewritten and force-pushed.  However, that does 
not make the blob go away, but makes it only unreachable.  Until the next 
garbage collection kicks in, that is (which you typically cannot control).

So: sorry, your feature request cannot be granted.

Ciao,
Dscho

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

* Re: Query remote repository files, blobs
  2009-12-19 11:02 ` Johannes Schindelin
@ 2009-12-19 13:31   ` Bill Lear
  2009-12-19 19:24     ` Shawn O. Pearce
  0 siblings, 1 reply; 6+ messages in thread
From: Bill Lear @ 2009-12-19 13:31 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Shakthi Kannan, git

On Saturday, December 19, 2009 at 12:02:02 (+0100) Johannes Schindelin writes:
>On Sat, 19 Dec 2009, Shakthi Kannan wrote:
>...
>> I am able to query for list of remote heads, and tags. I would like to
>> know if it is possible to query for information on remote files, or
>> blobs?
>
>This has been discussed a number of times, but we cannot allow that for 
>security reasons.  A blob might contain confidential information, in which 
>case the branch has to be rewritten and force-pushed.  However, that does 
>not make the blob go away, but makes it only unreachable.  Until the next 
>garbage collection kicks in, that is (which you typically cannot control).

Hmm, I thought this had been addressed by git in a different way (removing
confidential information).  A company will not be satisfied that its
proprietary information is "unreachable" in your software repository.
They want absolute assurance that the information is completely
removed.

Have I remembered wrongly --- is this still not possible with git?


Bill

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

* Re: Query remote repository files, blobs
  2009-12-19 13:31   ` Bill Lear
@ 2009-12-19 19:24     ` Shawn O. Pearce
  2009-12-19 20:42       ` A Large Angry SCM
  0 siblings, 1 reply; 6+ messages in thread
From: Shawn O. Pearce @ 2009-12-19 19:24 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Bill Lear, Shakthi Kannan, git

Bill Lear <rael@zopyra.com> wrote:
> On Saturday, December 19, 2009 at 12:02:02 (+0100) Johannes Schindelin writes:
> >On Sat, 19 Dec 2009, Shakthi Kannan wrote:
> >...
> >> I am able to query for list of remote heads, and tags. I would like to
> >> know if it is possible to query for information on remote files, or
> >> blobs?
> >
> >This has been discussed a number of times, but we cannot allow that for 
> >security reasons.  A blob might contain confidential information, in which 
> >case the branch has to be rewritten and force-pushed.  However, that does 
> >not make the blob go away, but makes it only unreachable.  Until the next 
> >garbage collection kicks in, that is (which you typically cannot control).
> 
> Hmm, I thought this had been addressed by git in a different way (removing
> confidential information).  A company will not be satisfied that its
> proprietary information is "unreachable" in your software repository.
> They want absolute assurance that the information is completely
> removed.
> 
> Have I remembered wrongly --- is this still not possible with git?

Its still possible, but you have to wipe out the reflog record(s)
that had the object in it, and you have to repack to evict it from
the pack files, and you have to run `git prune --expire=0` to force
it to wipe out the object immediately.

We already support dumping back random commits via upload-archive, if
its enabled in the daemon, and I think a lot of people do turn it on.
There is no validation that the requested tree-ish is reachable.

I think gitweb winds up doing the same thing, it doesn't actually
try to validate the object is reachable, it just serves whatever
it was asked for, if its present in the repository.


I'm getting some mild suggestions over here at $DAY_JOB to implement
shallow clones by lazily downloading large blobs on demand.
We've resisted doing this in git because of the reachability test
Dscho mentioned above... but many people skip that anyway due
to gitweb and upload-archive being enabled.  Which is making me
start to question who is broken... upload-pack for not being more
willing to serve arbitrary content, or gitweb/upload-archive for
not validating their requests are reachable.

-- 
Shawn.

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

* Re: Query remote repository files, blobs
  2009-12-19 19:24     ` Shawn O. Pearce
@ 2009-12-19 20:42       ` A Large Angry SCM
  2009-12-19 20:50         ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: A Large Angry SCM @ 2009-12-19 20:42 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Johannes Schindelin, Bill Lear, Shakthi Kannan, git

Shawn O. Pearce wrote:
> Bill Lear <rael@zopyra.com> wrote:
>> On Saturday, December 19, 2009 at 12:02:02 (+0100) Johannes Schindelin writes:
>>> On Sat, 19 Dec 2009, Shakthi Kannan wrote:
>>> ...
>>>> I am able to query for list of remote heads, and tags. I would like to
>>>> know if it is possible to query for information on remote files, or
>>>> blobs?
>>> This has been discussed a number of times, but we cannot allow that for 
>>> security reasons.  A blob might contain confidential information, in which 
>>> case the branch has to be rewritten and force-pushed.  However, that does 
>>> not make the blob go away, but makes it only unreachable.  Until the next 
>>> garbage collection kicks in, that is (which you typically cannot control).
>> Hmm, I thought this had been addressed by git in a different way (removing
>> confidential information).  A company will not be satisfied that its
>> proprietary information is "unreachable" in your software repository.
>> They want absolute assurance that the information is completely
>> removed.
>>
>> Have I remembered wrongly --- is this still not possible with git?
> 
> Its still possible, but you have to wipe out the reflog record(s)
> that had the object in it, and you have to repack to evict it from
> the pack files, and you have to run `git prune --expire=0` to force
> it to wipe out the object immediately.
> 
> We already support dumping back random commits via upload-archive, if
> its enabled in the daemon, and I think a lot of people do turn it on.
> There is no validation that the requested tree-ish is reachable.
> 
> I think gitweb winds up doing the same thing, it doesn't actually
> try to validate the object is reachable, it just serves whatever
> it was asked for, if its present in the repository.
> 
> 
> I'm getting some mild suggestions over here at $DAY_JOB to implement
> shallow clones by lazily downloading large blobs on demand.
> We've resisted doing this in git because of the reachability test
> Dscho mentioned above... but many people skip that anyway due
> to gitweb and upload-archive being enabled.  Which is making me
> start to question who is broken... upload-pack for not being more
> willing to serve arbitrary content, or gitweb/upload-archive for
> not validating their requests are reachable.

The security argument hasn't been true for a while if any of the 
following are enabled on the server:
	Gitweb
	http transport
	rsync transport
	ftp transport
	alternates (the alternates are the ones at risk)

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

* Re: Query remote repository files, blobs
  2009-12-19 20:42       ` A Large Angry SCM
@ 2009-12-19 20:50         ` Johannes Schindelin
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2009-12-19 20:50 UTC (permalink / raw)
  To: A Large Angry SCM; +Cc: Shawn O. Pearce, Bill Lear, Shakthi Kannan, git

Hi,

On Sat, 19 Dec 2009, A Large Angry SCM wrote:

> Shawn O. Pearce wrote:
> > Bill Lear <rael@zopyra.com> wrote:
> > > On Saturday, December 19, 2009 at 12:02:02 (+0100) Johannes Schindelin
> > > writes:
> > > > On Sat, 19 Dec 2009, Shakthi Kannan wrote:
> > > > ...
> > > > > I am able to query for list of remote heads, and tags. I would like to
> > > > > know if it is possible to query for information on remote files, or
> > > > > blobs?
> > > > This has been discussed a number of times, but we cannot allow that for
> > > > security reasons.  A blob might contain confidential information, in
> > > > which case the branch has to be rewritten and force-pushed.  However,
> > > > that does not make the blob go away, but makes it only unreachable.
> > > > Until the next garbage collection kicks in, that is (which you typically
> > > > cannot control).
> > > Hmm, I thought this had been addressed by git in a different way (removing
> > > confidential information).  A company will not be satisfied that its
> > > proprietary information is "unreachable" in your software repository.
> > > They want absolute assurance that the information is completely
> > > removed.
> > >
> > > Have I remembered wrongly --- is this still not possible with git?
> > 
> > Its still possible, but you have to wipe out the reflog record(s)
> > that had the object in it, and you have to repack to evict it from
> > the pack files, and you have to run `git prune --expire=0` to force
> > it to wipe out the object immediately.
> > 
> > We already support dumping back random commits via upload-archive, if
> > its enabled in the daemon, and I think a lot of people do turn it on.
> > There is no validation that the requested tree-ish is reachable.
> > 
> > I think gitweb winds up doing the same thing, it doesn't actually
> > try to validate the object is reachable, it just serves whatever
> > it was asked for, if its present in the repository.
> > 
> > 
> > I'm getting some mild suggestions over here at $DAY_JOB to implement
> > shallow clones by lazily downloading large blobs on demand.
> > We've resisted doing this in git because of the reachability test
> > Dscho mentioned above... but many people skip that anyway due
> > to gitweb and upload-archive being enabled.  Which is making me
> > start to question who is broken... upload-pack for not being more
> > willing to serve arbitrary content, or gitweb/upload-archive for
> > not validating their requests are reachable.
> 
> The security argument hasn't been true for a while if any of the following are
> enabled on the server:
> 	Gitweb
> 	http transport
> 	rsync transport
> 	ftp transport
> 	alternates (the alternates are the ones at risk)

Right.  But we must not break the security for careful administrators 
(read: who did _not_ enable any of the above) just out of a whim, right?  
Certainly not if the only reason to do it was "somebody thought it would 
be neat, but most probably is not going to use it herself after having 
played with it for a few days".

Ciao,
Dscho

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

end of thread, other threads:[~2009-12-19 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19  7:45 Query remote repository files, blobs Shakthi Kannan
2009-12-19 11:02 ` Johannes Schindelin
2009-12-19 13:31   ` Bill Lear
2009-12-19 19:24     ` Shawn O. Pearce
2009-12-19 20:42       ` A Large Angry SCM
2009-12-19 20:50         ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.