Skip to content

Trouble connecting to Gitlab instance #5946

@erka

Description

@erka

Report by jamjax in Discord on Jan 20, 2026 Link

I had a lot of trouble connecting Flipt to my organization's GitLab instance this weekend, and I ultimately failed. Some things that would be helpful to know:

  • Are there any success stories for connecting to GitLab with an access token? (I took a tangent and successfully connected to my personal GitHub repo but I couldn't parlay that back into GitLab success.) The problem there was (I think) a lack of important debugging granularity (even with DEBUG level). The logs made it seem like the repo was empty (which it's not, of course).

SSH (also unsuccessful). I'm using the Helm chart, BTW:
Is there a way to specify an alternate port for SSH Git? Flipt seems to "normalize" (disappear) an alternate port. I resorted to setting up a proxy tunnel pod and I don't know if that's causing me issues. (But it definitely led to a lot of complexity.)
I seem to have found that our GitLab wants ssh-agent based connections. Outside of Flipt, I get a password prompt from SSH if I don't use an agent. In Flipt, I think I'm getting that same symptom. Is there a Flipt accommodation for that?

ssh example

    # Git-native storage configuration
    storage:
      default:
        name: "GitLab Feature Flags"
        # SSH URL for GitLab repository (port 2223)
        remote: "ssh://git@REDACTED:2223/redacted/platform/feature-flags.git"
        branch: "main"
        credentials: "gitlab"
        # CA certificate for self-signed GitLab certificate
        ca_cert_path: "/tmp/ca-certs/ca-bundle.crt"
        backend:
          path: "/var/opt/flipt/git"

http example

    # Git-native storage configuration
    storage:
      default:
        name: "GitLab Feature Flags"
        # Replace with your GitLab repository URL
        remote: "https://REDACTED/gitlab/redacted/platform/feature-flags.git"
        branch: "main"
        credentials: "gitlab"
        # CA certificate for self-signed GitLab
        ca_cert_path: "/tmp/ca-certs/ca-bundle.crt"
        backend:
          path: "/var/opt/flipt/git"

related: #5130

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

Status
No status
Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions