docker - Frontend displays wrong ssh host keys

Summary

When running from the gitlab/gitlab-ce docker image, Instance Configuration displays fingerprints of ssh keys from /etc/ssh, but Gitlab actually uses keys from /etc/gitlab.

Steps to reproduce

  1. Run gitlab/gitlab-ce docker container
  2. Open instance configuration
  3. Try to connect using ssh (ssh -p yourport -T git@gitlab.yourinstance)
  4. Compare keys shown by GitLab and ssh.

What is the current bug behavior?

The keys differ, even if tested on the container host. Since /etc is not persisted, the key shown by ssh should change when the container is recreated with the same volumes.

What is the expected correct behavior?

The keys should match.

Relevant logs

Relevant logs
Unsure what logs would be relevant, and the case seems pretty clear-cut.

Details of package version

Provide the package version installation details
GitLab 12.4.2 - gitlab/gtlab-ce:latest Docker image hash sha256:0e39d6e67b264fd3c4c110d8c971799941e6f97e799240843ba67f504fce8b88

Environment details

  • Operating System: OpenSUSE Leap 15.1
  • Installation Target, remove incorrect values:
    • Other: Docker 19.03.1
  • Installation Type, remove incorrect values:
    • Other: Continually upgraded by Watchtower since January 2019
  • Is there any other software running on the machine: nginx (reverse proxy for Gitlab)
  • Is this a single or multiple node installation? Single
  • Resources
    • CPU: Three cores, 2 GHz
    • Memory total: 8 GB

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`

None that I can tell.
Edited by Radosław Wyrzykowski