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

Add support for GitLab Applications

Open steinybot opened this issue 5 years ago • 5 comments
trafficstars

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It would be nice to be able to have support for GitLab Applications.

New or Affected Resource(s)

  • gitlab_application

Potential Terraform Configuration

resource "gitlab_application" "example" {
  name = "My App"
  callback_uri = "https://example.com/login/callback"
  scopes = [
    "api"
  ]
  confidential = true
}

Not shown here but the secret from the exported attributes should probably be encrypted using a PGP key like for https://www.terraform.io/docs/providers/aws/r/iam_access_key.html.

References

  • GitLab Actions: https://docs.gitlab.com/ee/api/applications.html
  • Go GitLab client API: https://godoc.org/github.com/xanzy/go-gitlab#Application

steinybot avatar Jun 01 '20 11:06 steinybot

@steinybot hi, did you mean Add support for Gitlab Application not Github ? 😃

vymarkov avatar Jun 10 '20 05:06 vymarkov

Oops, yes I did.

steinybot avatar Jun 10 '20 06:06 steinybot

@steinybot I've found that Gitlab Application can be managed only by admin users looks like it can not be used within gitlab.com only with self-hosted.

vymarkov avatar Jul 21 '20 08:07 vymarkov

also Gitlab API doesn't provide an endpoint to update the application

vymarkov avatar Jul 21 '20 08:07 vymarkov

Hi, any chance this could be added now in order to support group-level applications which were introduced in Gitlab 13.11? https://docs.gitlab.com/ee/integration/oauth_provider.html#group-owned-applications

tspearconquest avatar Jul 08 '22 00:07 tspearconquest