[Gluster-infra] https access with gerrit

Michael Scherer mscherer at redhat.com
Tue Apr 26 15:03:44 UTC 2016


Le mardi 26 avril 2016 à 09:42 +0200, Michaël Scherer a écrit :
> Le lundi 25 avril 2016 à 13:19 -0400, Vijay Bellur a écrit :
> > On Mon, Apr 25, 2016 at 4:31 AM, Niels de Vos <ndevos at redhat.com> wrote:
> > > On Mon, Apr 25, 2016 at 10:15:22AM +0200, Michael Scherer wrote:
> > >> Le dimanche 24 avril 2016 à 16:08 +0200, Niels de Vos a écrit :
> > >> > On Sat, Apr 23, 2016 at 08:05:50PM -0400, Vijay Bellur wrote:
> > >> > > On Sat, Apr 23, 2016 at 12:48 AM, Kaushal M <kshlmster at gmail.com> wrote:
> > >> > > > You need to use the ssh:// URIs to push. The https:// URIs just allow git clone.
> > >> > > >
> > >> > > > The ssh:// URIs should be in the format
> > >> > > > `ssh://<username>@review.gluster.org/glusterfs.git`
> > >> > > >
> > >> > >
> > >> > >
> > >> > > That used to be the case a while back. git supports pushing over http
> > >> > > for a while now and so does gerrit [1]. We need to determine why it is
> > >> > > failing so with r.g.o.
> > >> >
> > >> > I tried it, and pulling over https works just fine. When pushing
> > >> > (./rfc.sh) over https, I get asked for a password (username in URL).
> > >> > Pasting the generated password from
> > >> > http://review.gluster.org/#/settings/http-password did not work, I got
> > >> > this error:
> > >> >
> > >> >     remote: Unauthorized
> > >> >     fatal: Authentication failed for 'https://ndevos@review.gluster.org/glusterfs/'
> > >> >
> > >> > It would be nice to have this working. Most of us should be able to use
> > >> > ssh, but in some corperate environments firewalls can be pretty
> > >> > restrictive.
> > >>
> > >> So here, I do get "not found".
> > >>
> > >> But unless there is a urgency and someone is currently blocked, I would
> > >> rather push that to later for now.
> > >
> > > I don't think it is urgent. Not sure why Vijay was trying this.
> > >
> > 
> > A few developers in the community have the problem of not being able
> > to push changes to gerrit because of ssh being blocked in their
> > corporate firewalls. It would be nice to have this fixed sooner than
> > later.
> 
> So, do we have a idea of when it was working and when it broke, so I can
> see if something was changed in the mean time ?

So I did check gerrit source code, that brought me to the doc, and I
have added:

gitBasicAuth = yes in the auth section of the config of gerrit.

Are people ok with me restarting gerrit ?

(I forgot the impact on build job, so better ask before this time)

-- 
Michael Scherer
Sysadmin, Community Infrastructure and Platform, OSAS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.gluster.org/pipermail/gluster-infra/attachments/20160426/1e1b677f/attachment.sig>


More information about the Gluster-infra mailing list