This commit is contained in:
2023-10-15 17:54:14 +02:00
parent 01828479be
commit 7cc48d439b
2 changed files with 55 additions and 48 deletions

View File

@@ -88,6 +88,13 @@ data "kubernetes_secret_v1" "mongos" {
}
}
locals {
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