Git development
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: Git Mailing List <git@vger.kernel.org>, nicolas.s.dev@gmail.com
Subject: Re: [gitosis] unexpected error for a warning msg
Date: Sun, 3 May 2009 16:54:02 -0700	[thread overview]
Message-ID: <20090503235402.GA10702@curie-int> (raw)
In-Reply-To: <20090503232300.GA20066@vidovic>

[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]

On Mon, May 04, 2009 at 01:23:00AM +0200, Nicolas Sebrecht wrote:
> I had the following issue using gitosis today:
> http://colabti.org/irclogger/irclogger_log/git?date=2009-05-03#l2233
> 
> The name of the key file was 'keydir/Jacques@BLACK_ANTEC.pub' which gave
> the warning (when pushing): 
> WARNING:gitosis.ssh:Unsafe SSH username in keyfile: Jacques@BLACK_ANTEC.pub
> 
> Changing the filename into Jacques.pub solved the issue.
> 
> I was expecting an error message instead (not a warning) as it seems to
> _not_ permit such a filename.
> 
> Why the initial filename is fobidden?
> Could the warning be substituted by an error?
They are meant to be valid usernames, which don't include the @ symbol.

For the git.overlays.gentoo.org site, where we use gitosis, we had some
issues that were best solved by fixing Gitosis itself (like being able
to pass SSH key options, eg "from=" to restrict hosts). Another one that
bugged me was that the string at the end of an ssh key is NOT a
username, it's a freeform (well, no newline) text field.

I've tried to send the patches to upstream on several occasions, but
never gotten any response. 

I didn't disable the warning you're complaining about, as I wanted it
still, but I do agree it's probably better to upgrade to an error.

You can find the Gentoo fork here:
http://git.overlays.gentoo.org/gitweb/?p=proj/gitosis-gentoo.git;a=summary

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

      reply	other threads:[~2009-05-03 23:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-03 23:23 [gitosis] unexpected error for a warning msg Nicolas Sebrecht
2009-05-03 23:54 ` Robin H. Johnson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090503235402.GA10702@curie-int \
    --to=robbat2@gentoo.org \
    --cc=git@vger.kernel.org \
    --cc=nicolas.s.dev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox