spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

Creation of `spacelift_user` resource results in "get login from session: incompatible issuer" error #486

Closed mgajewskik closed 7 months ago

mgajewskik commented 11 months ago

I have tried to use the spacelift_user resource on my account created from GitHub organization in 2 different ways:

Both cases fail with this error:

[01HH1TMVXW5QDAEZTNQWKV9A2E] Applying changes...
spacelift_user.mgajewskik: Creating...
╷
│ Error: could not create user mapping mgajewskik: get login from session: incompatible issuer
│ 
│   with spacelift_user.mgajewskik,
│   on users.tf line 2, in resource "spacelift_user" "mgajewskik":
│    2: resource "spacelift_user" "mgajewskik" {
│ 
╵
[01HH1TMVXW5QDAEZTNQWKV9A2E] Unexpected exit code when applying changes: 1

Resource definition I'm using:

resource "spacelift_user" "test" {
  username         = "mgajewskik"
  invitation_email = "<email>"

  policy {
    role     = "ADMIN"
    space_id = "root"
  }
}

I'm not sure at this point if there is something wrong with the provider itself or if I'm using it incorrectly. Any guidance on that? Thanks!

marcinwyszynski commented 7 months ago

I was able to reproduce it, assigning to our dev teams for a fix.

marcinwyszynski commented 7 months ago

This has just been fixed.