This commit is contained in:
2023-10-15 18:06:44 +02:00
parent de12ea88d9
commit e929bdba6a
2 changed files with 81 additions and 99 deletions

View File

@@ -87,21 +87,3 @@ data "kubernetes_secret_v1" "mongos" {
namespace = "${var.mongo[count.index].namespace}"
}
}
locals {
authentik-token = data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]
request_headers = {
"Content-Type" = "application/json"
Authorization = "Bearer ${local.authentik-token}"
}
}
provider "restapi" {
uri = "http://authentik.${var.domain}-auth.svc/api/v3/"
headers = local.request_headers
create_method = "PATCH"
update_method = "PATCH"
destroy_method = "PATCH"
write_returns_object = true
id_attribute = "name"
}