$site_path/etc/readonly.config
[readonly]
message = Gerrit is down for maintenanceOn Thursday, 7 February 2019 14:09:07 UTC+1, tmc...@gmail.com wrote:I used readonly plugin for gerrit mirror replication server, but in web page i could also to modify config and push git changesi do NOT know what miss ??
$site_path/etc/readonly.config[readonly] message = Gerrit is down for maintenanceDid you reload the plugin after applying the configuration - as mentioned in the documentation? For example:
ssh -p 29418 adminuser gerrit plugin reload readonly
On 7 Feb 2019, at 13:27, tmc...@gmail.com wrote:Dear Gert van Dijk,Of course, i do NOT reload, but i restart entire gerrit server like below:ubuntu@ubuntu-vm:~/gerrit/review_site$ ./bin/gerrit.sh restartubuntu@ubuntu-vm:~/gerrit/review_site$ grep -nr readonlylogs/error_log:272:[2019-02-07 21:23:28,769] [main] INFO com.google.gerrit.server.plugins.PluginLoader : Loaded plugin readonly, version 93e7337ee6
在 2019年2月7日星期四 UTC+8下午9:20:45,Gert van Dijk写道:On Thursday, 7 February 2019 14:09:07 UTC+1, tmc...@gmail.com wrote:I used readonly plugin for gerrit mirror replication server, but in web page i could also to modify config and push git changesi do NOT know what miss ??
$site_path/etc/readonly.config[readonly] message = Gerrit is down for maintenanceDid you reload the plugin after applying the configuration - as mentioned in the documentation? For example:ssh -p 29418 adminuser gerrit plugin reload readonlyIf you still experience this, please provide the Gerrit version you're running as well as the plugin version.HTH
--
--
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.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe, email rep...@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-d...@googlegroups.com.
Hi Luca,Could you please let us know how to allow ssh commands(READ only),read-only config contents as below.[readonly]message = this is readonly mirrorallowSshCommand = "^ssh://<username>@<servername>:29418/*"allowSshCommand = "^ssh.*"allowSshCommand = "^s.*"
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/428c0d6c-3df1-4e9e-8860-a9d2d33e007a%40googlegroups.com.
To unsubscribe, email repo-d...@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-d...@googlegroups.com.
On 29 May 2019, at 10:41, gm <mannemgo...@gmail.com> wrote:Dear Sven,Thanks a lot! It worked.Below is what I have included.[readonly]message = this is readonly mirrorallowSshCommand = gerrit plugin reload readonlyallowSshCommand = gerrit plugin ls ##test command.allowSshCommand = git-upload-pack
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/eaeb1eea-f47b-4745-80be-9dffd8890b12%40googlegroups.com.
Hi Luca,Done, Issue 10938. Hope I've raised at the correct portal, please excuse otherwise!.Also, please let me know, how to allow ssh-keys addition, permissions change, and replication to the mirrors.With that -- mirrors will only be in the readonly stateUsers can add ssh-keys to mirrorAdmins can edit/modify the permissions
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/b60a6070-c24a-461e-bd8a-694d308eacaf%40googlegroups.com.
Hi David,Thanks for your response!
However, we need to allow ssh-keys addition and permissions change. I am yet to check the replication part, will check and update you shortly.The reasons as below.As we have integrated our systems with LDAP, we would like to use LDAP groups to maintain permissions. And for ssh-keys, it is a little difficult to always type in HTTP (UI generated ) password for syncing.
Bumping up this old thread.We try to configure our Gerrit into RO mode for backup. Still running into this issue - Putting Gerrit into RO mode with this plugin failed the git clone over SSH.Is git-upload-pack going to be a default allowed operation in this plugin ? Or this is still there for a reason ?
| [readonly] |
allowSshCommand = git upload-pack |
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/746fac16-8601-41d4-a40f-a743524ef36dn%40googlegroups.com.