Blocked host: <port>.qa-tunnel.gitlab.info

Overview

GDK fails to configure GitLab properly with Auto DevOps and the QA tunnel enabled.

How to reproduce

Brand new GDK installation. Setup your gdk.yml as following:

---
    auto_devops:
      enabled: true
      gitlab:
        port: <gitlab_port_number>
      registry:
        port: <registry_port_number>

Run gdk reconfigure.

Run gdk start.

Trying to access GitLab through https://<gitlab_port_number>.qa-tunnel.gitlab.info, and we get the Rails 6 message saying:

Blocked host: <gitlab_port_number>.qa-tunnel.gitlab.info

To allow requests to <gitlab_port_number>.qa-tunnel.gitlab.info, add the following to your environment configuration:

config.hosts << "<gitlab_port_number>.qa-tunnel.gitlab.info"

Insights

I can also see that gdk reconfigure did not override the gitlab.yml values properly, as it should have set the tunnel port, hostname and https enabled. Instead, I see the default values:

# gitlab.yml

production: &base
  #
  # 1. GitLab app settings
  # ==========================

  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: 127.0.0.1
    port: 3000
    https: false

It should be:

# gitlab.yml

production: &base
  #
  # 1. GitLab app settings
  # ==========================

  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: <gitlab_port_number>.qa-tunnel.gitlab.info
    port: 433
    https: true

Environment (optional)

  • Operating System: Windows/macOS/Linux
  • The contents of your gdk.yml
  • Ruby version: ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin19]
  • GDK version: 3f8a626
Edited by João Alexandre Cunha