We have a backup of a gitlab CE 13.12.12 instance which we want to demise.
The backup needs to be kept as an archive so I need to prove that we can recover the code from the backup in the future should we need to do so.
I have created a docker instance on my laptop of the same version, created a couple of local users and then recovered the code to the instance from the backup file. However it doesn’t start correctly and allow logins unless I replace the original /etc/gitlab/gitlab.rb and /etc/gitlab/gitlab-secrets.json which I expected from the restore documentation.
The original gitlab used SAML authentication via keycloak which will also soon be demised so how do we enable logins using local users. If I set omniauth_enabled to false we get the message “No authentication methods configured.” So far my reading of the omniauth documentation is not giving me the answer nor are my tinkering or comparing the pre and post restore gitlab.rb files.
omniauth_enabled = false
results in a message saying “No authentication methods configured.”
All the omniauth providers seem to hand it off to somewhere else and the plain vanilla gitlab.rb appears to have everything commented out but doesn’t work after the restore.
Sounds like they’ll somehow need to be converted/imported. From a quick google it’s possible to do that for LDAP users, but haven’t found anything relating to oauth/omniauth to be able to do a similar thing.
You could see what’s available by logging into it as local root/admin user after restore and see what the user list looks like and see if there is any option in there. If you cannot login as root, then you can reset the password using the procedure here: Reset a user's password | GitLab
We don’t want to import the users as that is being demised and the purpose of the backup is only as an archive.
Does anyone have some ideas that I can try please?