Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authentik_stage_identification sources not idempotent #377

Open
rasschaert opened this issue Jul 5, 2023 · 1 comment · May be fixed by #378
Open

authentik_stage_identification sources not idempotent #377

rasschaert opened this issue Jul 5, 2023 · 1 comment · May be fixed by #378

Comments

@rasschaert
Copy link

Terraform keeps suggesting to change the order of the sources in my authentik_stage_identification resource.

  # authentik_stage_identification.my-authentication-identification has changed
  ~ resource "authentik_stage_identification" "my-authentication-identification" {
        id                        = "e742627a-b9a7-4331-93be-30d98328fd8f"
        name                      = "my-authentication-identification"
      ~ sources                   = [
          - "5eb885ab-d1a9-4404-b3a6-ab58bacbaccf",
            "a1043bac-3475-4d04-9b04-4126ac3c486a",
          + "5eb885ab-d1a9-4404-b3a6-ab58bacbaccf",
        ]
        # (4 unchanged attributes hidden)
    }

I've tried applying the change or changing the order in my code but it keeps happening. Even adding a lifecycle ignore_changes sources doesn't make it go away.

resource "authentik_stage_identification" "my-authentication-identification" {
  name               = "my-authentication-identification"
  user_fields        = ["username", "email"]
  show_source_labels = true
  sources = [
    data.authentik_source.inbuilt.uuid,
    authentik_source_oauth.azure_ad.uuid,
  ]
  lifecycle {
    ignore_changes = [
      sources,
    ]
  }
}

version = "2023.5.0"

@rasschaert rasschaert linked a pull request Jul 5, 2023 that will close this issue
@fullykubed
Copy link

Additionally, impacts other resources such as authentik_stage_authenticator.

image (5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants