git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] archive: add archive.restrictRemote option

From
Jeff King <peff@peff.net>
Date
Feb 28, 2014, 09:07 UTC
Message-ID
<20140228090709.GB11709@sigill.intra.peff.net>
In-Reply-To
<xmqqtxbkz9jp.fsf@gitster.dls.corp.google.com>
On Thu, Feb 27, 2014 at 10:37:30AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > Signed-off-by: Jeff King <peff@peff.net>
> 
> Thanks.
> 
> Do GitHub people have general aversion against signing off (or
> sending out, for that matter) their own patches, unless they were
> already active here before they joined GitHub, by the way?

Mostly it is that I clean up the patches and commit messages before sending them out. Michael sends out his own patches because they are already perfect by the time I see them. :)

I can certainly get S-O-B from GitHubbers, but my impression of the DCO is that it does not matter; as the first link in the signoff chain, I am certifying that the patch meets the licensing requirements. Of course, I know that because of my relationship to the author and our employer, which is something that isn't encoded in the headers. A S-O-B from the author would perhaps make it more obvious what happened.

Show 16 quoted lines
> I like the general idea and this escape hatch would be a good thing
> to have.
> 
> A few comments:
> 
>  - Seeing the word combination "restrict"+"remote" before reading
>    the explanation made me think "hmph, only allow remote archive
>    from certain hosts but not from others?"  We are restricting the
>    objects and only on the remote usage, not restricting remotes, so
>    somebody else may be able to come up with a less misleading name.
>
>  - It might be better to call the escape hatch "allow something"
>    that defaults to "false".  It is merely the issue of perception,
>    but having a knob to be limiting that defaults to true gives a
>    wrong impression that in an ideal world remote archive ought to
>    be loose and we are artificially limiting it by default.

After reading your first point, I came up with "archive.allowRemoteUnreachable", which also satisfies the second. I do not have a strong opinion.

Show 6 quoted lines
> > +archive.restrictRemote::
> > +	If true, archives can only be requested by refnames. If false,
> 
> As this does not affect local use of "git archive", "requested by
> refnames" may need to be clarified further.  Perhaps "remote
> archives can be requested only for published refnames" or something.

I was hoping to be vague. If we really want to get into specifics, we should probably document the current rules (refnames, and sub-trees of refnames). It might be a good thing to document that anyway, though. And by doing so, it would become obvious why one would want to set this option. I'll see what I can come up with.

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 3 of 8 in “archive: add archive.restrictRemote option”
  1. archive: add archive.restrictRemote optionJeff King, Feb 27, 2014
  2. Junio C HamanoFeb 27, 2014
  3. Jeff KingFeb 28, 2014
  4. 0/2 lifting upload-archive restrictionsJeff King, Feb 28, 2014
  5. 1/2 docs: clarify remote restrictions for git-upload-archiveJeff King, Feb 28, 2014
  6. 2/2 add uploadarchive.allowUnreachable optionJeff King, Feb 28, 2014
  7. Junio C HamanoFeb 28, 2014
  8. Junio C HamanoFeb 28, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.