Skip to content

Support for private Gitlab #107

@jeremydescamps

Description

@jeremydescamps

Hello,

We would like to use our private Gitlab as endpoint for terraform modules.

Here is my trial :

          spec:
            forProvider:
              source: Remote
              module: "git::https://gitlab.private.example.com/gitlab/terraform/registry/terraform-aws-s3-bucket.git?ref=v5.8.2"
              vars:
                - key: bucket
                  value: "xxx-patched-xxx"
                - key: force_destroy
                  value: "true"

What problem are you facing?

The provider-opentofu is not able to reach the private Gitlab endpoint because of the following SSL error :

  Warning  CannotConnectToProvider  10s (x23 over 39h)  managed/workspace.opentofu.m.upbound.io  cannot get remote tofu module: error downloading 'https://gitlab.private.example.com/gitlab/terraform/registry/terraform-aws-s3-bucket.git?ref=v5.8.2': /usr/bin/git exited with 128: fatal: unable to access 'https://gitlab.private.example.com/gitlab/terraform/registry/terraform-aws-s3-bucket.git/': SSL certificate problem: self-signed certificate in certificate chain

By the way, there is no official documentation about the usage of a private Gitlab endpoint.

How could Upbound help solve your problem?

It could be nice to have an official documentation explaining :

  • how to configure credentials when using private Gitlab endpoint
  • how to add CA certificate in the provider-opentofu docker image
  • how to set environment variables in the opentofu pod for example to set GIT_SSL_NO_VERIFY or any other useful config
  • how to create my own docker image based on xpkg.upbound.io/upbound/provider-opentofu:v1

Thanks a lot !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions