Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9982

Closed
Open
Created Jan 15, 2016 by Administrator@rootOwner

Configuration values containing a single quote break the app

Created by: narfbg

I don't know if this is only relevant to omnibus packages (that's what I use, and every other help resource refers to gitlab.yml instead of gitlab.rb), but the LDAP password I have to use happens to contain the single quote character.

I've tried escaping it via a backslash, or using double quotes around the value, but no matter what I put into /etc/gitlab.rb, after running gitlab-ctl reconfigure, the resulting (already parsed) string value is just shoved into /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml with a single quote on each side and nothing else.

For example, if I were to do this:

# /etc/gitlab.rb
gitlab_rails['ldap_password'] = "foo'bar"

I would get this:

# /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
  ldap:
    password: 'foo'bar'

Naturally, that triggers a syntax error ...

Assignee
Assign to
Time tracking