Terraform gitlab plugin 17.0.0 crashes on creating gitlab_group_issue_board resource with no permissions
Bug Report
Relevant Terraform Configuration
resource "gitlab_group_issue_board" "applications_issue_board" {
group = gitlab_group.applications.id
name = "Issue Board Name"
}
Relevant Terraform Command
terraform apply
Relevant Log Output
These are the debug logs of the `terraform apply` command output:
gitlab_group_issue_board.applications_issue_board: Creating...
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-gitlab_v17.10.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xea7a0d]
goroutine 37 [running]:
gitlab.com/gitlab-org/terraform-provider-gitlab/internal/provider.(*gitlabGroupIssueBoardResource).Create(0xc000606050, {0x14dcc88, 0xc000987830}, {{{{0x14e5080, 0xc0004a0ea0}, {0x1130540, 0xc0004a0900}}, {0x14e8df0, 0xc0002474f0}}, {{{0x14e5080, ...}, ...}, ...}, ...}, ...)
gitlab.com/gitlab-org/terraform-provider-gitlab/internal/provider/resource_gitlab_group_issue_board.go:417 +0x6cd
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).CreateResource(0xc000374488, {0x14dcc88, 0xc000987830}, 0xc000477460, 0xc000477438)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/fwserver/server_createresource.go:101 +0x577
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0xc000374488, {0x14dcc88, 0xc000987830}, 0xc000734460, 0xc000477550)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/fwserver/server_applyresourcechange.go:57 +0x4aa
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0xc000374488, {0x14dcc88?, 0xc000987740?}, 0xc0007343c0)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/proto6server/server_applyresourcechange.go:55 +0x385
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ApplyResourceChange(0xc00017ff00, {0x14dcc88?, 0xc000987470?}, 0xc0007343c0)
github.com/hashicorp/terraform-plugin-mux@v0.18.0/tf6muxserver/mux_server_ApplyResourceChange.go:36 +0x18d
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc00036e1e0, {0x14dcc88?, 0xc000986960?}, 0xc0002000e0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/tf6server/server.go:866 +0x3b9
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0x12901a0, 0xc00036e1e0}, {0x14dcc88, 0xc000986960}, 0xc0003ac000, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:611 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000256400, {0x14dcc88, 0xc000986900}, 0xc000052360, 0xc000454030, 0x1cb7a58, 0x0)
google.golang.org/grpc@v1.69.4/server.go:1392 +0xfbe
google.golang.org/grpc.(*Server).handleStream(0xc000256400, {0x14dd948, 0xc0003441a0}, 0xc000052360)
google.golang.org/grpc@v1.69.4/server.go:1802 +0xb88
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.69.4/server.go:1030 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 13
google.golang.org/grpc@v1.69.4/server.go:1041 +0x11d
Error: The terraform-provider-gitlab_v17.10.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Additional Details
- GitLab Terraform Provider Version:
17.10.0 - GitLab Instance Version:
gitlab.com - Terraform Version:
1.11.1