-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to create initial (admin) user in Gerrit? #40
Comments
Hi there. Sorry for the late response since I just came back from a personal leave. |
@thinkernel So let me summarize: |
Yes. Here is the auth types which are supported by the Gerrit. As you can see that OpenID, HTTP, LDAP, OAUTH , all of them need somewhere else to store your user information. |
@tivaliy What we've resorted to doing is adding an additional entrypoint to wrap the one container within this repo to bring up gerrit hardcoded to DEVELOPMENT_BECOME_ANY_AUTH, then create a user account and password passed in via the environment (including setting the http.password), and then kill the gerrit process and bring it back up with the externally specified settings and attached to the correct interfaces to allow external communication. This allows us to create a dedicated admin user/password that can be easily controlled on a per environment basis as part of the bootstrap process. I think there is likely enough benefit to be able to do this that it might be worth chiming in on the google group mail where I raised this as a solution to our problem in bootstrapping: https://groups.google.com/forum/#!topic/repo-discuss/6LzcZoc77-8 |
Any way of creating admin with http psw at initial container startup without idm system like ldap ? |
You can use auth.type=HTTP then configure your reverse proxy to provide a basic authentication. |
“Any way of creating admin with http psw at initial container startup without idm system like ldap ?” I have the same problem. My auth type is DEVELOPMENT_BECOME_ANY_ACCOUNT . |
@WisperDin |
@WisperDin @thinkernel @electrofelix , I am also looking for “Any way of creating admin with http psw at initial container startup without idm system like ldap ?” Do you have new best practice? |
@jgse You can use OpenID. |
Hi @thinkernel |
Hi @thinkernel
I have some problems. I was trying to use openfrontier/gerrit images to setup gerrit. All works fine. But now I want to create an initial (admin) user during gerrit installation process. So I'm trying to find solution also in your repos, but without any success. Can you bring me any idea about how to create initial (admin) Gerrit user exact in openfrontier/gerrit:latest -> 2.13.5?
The text was updated successfully, but these errors were encountered: