Skip to content

Bug Report: gitlab-ctl reconfigure typo modifies registry user password to append md5

gitlab self-hosted Omnibus version v18.3.0-ee

When running gitlab-ctl reconfigure, I discovered that this file: /opt/gitlab/embedded/cookbooks/registry/resources/database_objects.rb

Executes this task:

[2025-08-29T00:27:43+00:00] INFO: execute[set password for registry postgresql user] ran successfully
        - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "ALTER USER \"registry\" WITH PASSWORD 'md5ActualPasswordInPlain'"

Subsequently the reconfigure fails, later when trying to run the database migration:

   [execute] Running migrate up
                Executing command:
                /opt/gitlab/embedded/bin/registry database migrate up /var/opt/gitlab/registry/config.yml

Because /var/opt/gitlab/registry/config.yml contains ActualPasswordInPlain and the DB expects md5ActualPasswordInPlain

Edited by 🤖 GitLab Bot 🤖