terraform-provider-dbtcloud icon indicating copy to clipboard operation
terraform-provider-dbtcloud copied to clipboard

Issue when linking GitLab using Service Tokens

Open b-per opened this issue 1 year ago • 5 comments

When using service tokens to call the API to link a GitLab repo natively with dbt Cloud the connection is not set up correctly and require manually reconnecting the repo.

The same config works when using a user token.

This has been raised to the engineering team and should be automatically fixed without any action on this repo once the changes are done in dbt Cloud.

b-per avatar Sep 18 '23 13:09 b-per

This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

github-actions[bot] avatar Feb 06 '24 01:02 github-actions[bot]

This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

github-actions[bot] avatar May 07 '24 01:05 github-actions[bot]

Thanks for reporting. This is still an issue.

When diagnosing it I found the API for projects and/or repositories seems to show a little evidence of the problem

        "remote_backend": "gitlab",
        "git_clone_strategy": "deploy_token",
        "deploy_key_id": null,
        "repository_credentials_id": null,

Will not work, however setting this up as user in the UI I do see repository_credentials_id is set.

        "remote_backend": "gitlab",
        "git_clone_strategy": "deploy_token",
        "deploy_key_id": null,
        "repository_credentials_id": 6760,

The latter works fine

kcd83 avatar May 22 '24 04:05 kcd83

Hi @kcd83

Yes, this is still a problem, and the dbt Cloud team is aware of it, but there is nothing we can do just on the Terraform side for now. So, I keep this one as "blocked".

b-per avatar May 22 '24 07:05 b-per

This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

github-actions[bot] avatar Aug 21 '24 01:08 github-actions[bot]