Skip to content

Resource authentik_certificate_key_pair always reports changes #830

@josegomezr

Description

@josegomezr

On this resource:

resource "authentik_certificate_key_pair" "cert-sample" {
  name             = "cert-sample"
  certificate_data = file("./certificates/cert-sample.pem")
}

After an apply I still gt these changes on subsequent terraform plan:

# authentik_certificate_key_pair.cert-sample will be updated in-place
  ~ resource "authentik_certificate_key_pair" "cert-sample" {
      ~ certificate_data = <<-EOT
            -----BEGIN CERTIFICATE-----
            MII...
            -----END CERTIFICATE-----
        EOT
        id               = "0b14c781-7a99-49e2-b601-827458c66fa5"
      - key_data         = (sensitive value) -> null
    }

I've downloaded the certificate from the authentik instance and it's 1:1 equal with the file terraform is referring to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions