ThalesGroup / terraform-provider-ciphertrust

The CipherTrust Terraform Provider allows for the incorporation of CipherTrust Cloud Key Manager functionality into a CI/CD pipeline.
Apache License 2.0
6 stars 4 forks source link

plugin crashes on user creation #16

Closed TomSp closed 2 hours ago

TomSp commented 3 days ago

environment:

Terraform v1.9.8
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v6.11.2
+ provider registry.terraform.io/hashicorp/random v3.6.3
+ provider registry.terraform.io/thalesgroup/ciphertrust v0.10.6-beta

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0x10e43de]

goroutine 27 [running]: thales.com/terraform/terraform-provider-ciphertrust/provider.resourceUserCreateContext({0x16f5240, 0xc000d82000}, 0xc000ba5e00, {0x136db20?, 0x1f961a0}) thales.com/terraform/terraform-provider-ciphertrust/provider/resource_user.go:102 +0x37e

resource "ciphertrust_user" "user_admin" {
 for_each = merge(var.users_onpier)
  username = each.key
  email = "${each.key}+thales@${each.value["domain"]}"
  name = each.value["family_name"]
  password = "XXXX"
  is_domain_user = false
  prevent_ui_login = false
  password_change_required = false
  user_metadata = {
  }
}
martingegenleitner commented 5 hours ago

Hi @TomSp,

this issue seems to be linked to your broken provider configuration from issue #15 . Please update this issue after testing a fixed provider config if this also fixes this issue.

Thanks and best regards, Martin

TomSp commented 2 hours ago

the main problem was fix by https://github.com/ThalesGroup/terraform-provider-ciphertrust/issues/15