On premise/ selfsigned Cert issue

36 views
Skip to first unread message

Michael Wolf

unread,
Feb 6, 2023, 11:45:21 AM2/6/23
to Review Board Community
Hi,

I'm trying to make Reviewboard 5.0.1 work on my machine sing the docker-compose pgsql config.
I'm trying to add a git repo, which is hosted on premise.

I managed to enter all information of a repository except "Show this repository" checkbox. 

After saving the Repo, I tried to tick "Show this repository" and save.
Then the form prompts me with "The authenticity of the host '<myonpremgit>' (IP) could not be determined" since whe have a self signed cert.

After clicking "I trust this host" a POST Request is send to http://reviews.example.com/admin/db/scmtools/repository/1/change/ wit the payload:

csrfmiddlewaretoken: <token>
trust_host: I trust this host
versionvault-clearcase_vobs:
extra_data: {}

Then the form resets and promts me with "Please correct the errors below."

What can I do to make this work? 

Cheers Mike

Christian Hammond

unread,
Feb 6, 2023, 9:03:44 PM2/6/23
to revie...@googlegroups.com
Hi Mike,

Hmm, seems like there's an error being handled as part of that process that isn't being correctly represented in the form.

(This whole form is getting a very long-overdue rework and UI re-think for Review Board 6.)

Would it be possible to see the configuration being provided for the form? (Feel free to mask IPs or domain names, but seeing the structure of the values will be important.)

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/73c899ce-8221-4878-8161-9b70fbd9421an%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Michael Wolf

unread,
Feb 7, 2023, 7:34:53 AM2/7/23
to Review Board Community
Hi Christian, 

here are 3 screenshots. Hope this helps. - Thank you for the support.

reviewboard1_LI.jpg
after clicking save:

reviewboard2.png
and now after clicking "I trust this host":
reviewboard3.png

Christian Hammond

unread,
Feb 7, 2023, 4:03:21 PM2/7/23
to revie...@googlegroups.com
Hi Michael,

Not sure why the proper error isn’t coming through, but a core part of the issue is that Git doesn’t really have a suitable remote access protocol.

You can of course talk to Git remotely, but only barely, and for specific operations. There’s nothing useful there for tools like Review Board.

So, even though there appears to be some bug kicking in with choosing I Trust This Host, this would fail anyway.

To configure a Git repository, you need one of the following:

1. Local file access to the repository
2. A service like GitWeb you can point to in the Raw File URL field (this is a bit of a hack, and being rethought for the new repository experience)
3. A wrapper service that provides an API that Review Board supports. There are services like GitHub and GitLab of course, but we also provide our own called RB Gateway: 

Review Board can talk to that, and that can talk to Guy (via local file access).

It’s an annoying limitation of Git, and Git is effectively alone in that limitation. But if you go with one of these options, you should be up and running.

In the meantime, we’ll work out why the form is being cleared like that when confirming the certificate, and work to get a fix in for 5.0.3.

Christian


--
Reply all
Reply to author
Forward
0 new messages