salve server don't need to provide Crediential authentication? HTTP

78 views
Skip to first unread message

wang hanji

unread,
Jul 4, 2022, 3:20:47 AM7/4/22
to Repo and Gerrit Discussion
What steps will reproduce the problem?
1. Configure Gerrit in slave mode
2. Configure the HTTPD protocol with container.daemonOpt = --enable-httpd
3. Start Gerrit
4. Clone a repository using git/http

What is the expected output?
1.I am able to clone the repository, need to providing the Gerrit basic auth credentials

What do you see instead?
1.You don't need to provide Crediential authentication
Message has been deleted

Nasser Grainawi

unread,
Jul 6, 2022, 5:46:19 PM7/6/22
to wang hanji, Repo and Gerrit Discussion


On Wed, Jul 6, 2022 at 4:56 AM 'wang hanji' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
I would like to know how can I make the replica servers authenticate when using the HTTP protocol.
When I clone from replica servers using HTTP protocol, no authentication is done. Anyone can git clone.


在2022年7月4日星期一 UTC+8 15:20:47<wang hanji> 写道:
What steps will reproduce the problem?

What was done for step 0: "Populate git repositories for replica"? Are you sure all the refs are present / being replicated (assuming you're using replication plugin)?
Any errors or messages in the replica error_log?
 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/58a5b6b3-6973-443a-92ba-967088cf18c4n%40googlegroups.com.

wang hanji

unread,
Jul 6, 2022, 9:59:43 PM7/6/22
to Repo and Gerrit Discussion
I am sure all refs are copied.
Maybe there is something wrong with my description.

What I want to know is, when I git clone from replica servers using HTTP protocol, is it possible to authenticate like master servers authenticate.

In another question, the answer is - "
No, replica servers do not serve REST API, UI and search index.
You may consider using a multi-master or multi-site setup.
"

Thanks.

Nasser Grainawi

unread,
Jul 7, 2022, 8:58:38 PM7/7/22
to wang hanji, Repo and Gerrit Discussion


On Wed, Jul 6, 2022 at 7:59 PM 'wang hanji' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

Please respond inline instead of top posting.

I am sure all refs are copied.
Maybe there is something wrong with my description.

What I want to know is, when I git clone from replica servers using HTTP protocol, is it possible to authenticate like master servers authenticate.

In another question, the answer is - "
No, replica servers do not serve REST API, UI and search index.
You may consider using a multi-master or multi-site setup.
"

That answer is not about git requests, but about the other APIs and functionality. AFAIK, replicas should authenticate git requests in the same way that your primaries would. Is your gerrit.config on the replicas the same as on your primaries (other than 'replica = true')?
 
Reply all
Reply to author
Forward
0 new messages