{"id":17888607,"url":"https://github.com/l-with/terraform-module-authentik-tenant","last_synced_at":"2026-01-21T16:37:24.249Z","repository":{"id":47124176,"uuid":"515847146","full_name":"l-with/terraform-module-authentik-tenant","owner":"l-with","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-12T20:50:34.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T02:53:39.767Z","etag":null,"topics":["authentik","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l-with.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-20T05:35:39.000Z","updated_at":"2023-04-01T18:52:44.000Z","dependencies_parsed_at":"2024-10-28T14:27:25.217Z","dependency_job_id":"36424f77-cbb7-47a4-a59a-0ab3aa5ef076","html_url":"https://github.com/l-with/terraform-module-authentik-tenant","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fterraform-module-authentik-tenant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fterraform-module-authentik-tenant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fterraform-module-authentik-tenant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-with%2Fterraform-module-authentik-tenant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l-with","download_url":"https://codeload.github.com/l-with/terraform-module-authentik-tenant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773744,"owners_count":20993633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentik","terraform","terraform-module"],"created_at":"2024-10-28T13:37:57.443Z","updated_at":"2026-01-21T16:37:24.193Z","avatar_url":"https://github.com/l-with.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-module-authentik-tenant\n\nTerraform module which configures the default [authentik](https://goauthentik.io/docs/tenants) tenant.\n\nAuthentik comes with predefined resources. \nThe anchor is the default tenant, which is marked as \nto be used for each domain that doesn't have a dedicated tenant.\n\nAs a consequence the \n[terraform-provider authentik](https://registry.terraform.io/providers/goauthentik/authentik) \ncan not create a new tenant\nto be used for each domain that doesn't have a dedicated tenant,\nsince there could only be one tenant with this characteristic.\n\nThis module changes the default tenant by a direct API call by \n[local-exec](https://www.terraform.io/language/resources/provisioners/local-exec) \nin a [null_resource](https://registry.terraform.io/providers/hashicorp/null).\n\nThe following code changes the default tenant to \nnot be used for each domain that doesn't have a dedicated tenant.\n\n```\nmodule \"tenant\" {\n  source                   = \"l-with/authentik-tenant/module\"\n  version                  = \"\u003e= 0.0.3\"\n  authentik_url            = var.authentik_url\n  authentik_token          = var.authentik_bootstrap_token\n  authentik_tenant_default = false\n}\n ```\n\nThe tenant is selected by the input variable `authentik_tenant_domain` which default value is `\"authentik-default\"`.\n\nThe module provides an output value `authentik_module_tenant_dummy` \nthat depends on the null_resource with the local-exec.\nThe value is `\"\"`.\nYou can use it to create an implicit dependency in every resource with a string value, \nfor example a new \n[resource authentik_tenant](https://registry.terraform.io/providers/goauthentik/authentik/latest/docs/resources/tenant):\n\n```\nresource \"authentik_tenant\" \"default\" {\n  domain           =  \"${module.tenant.authentik_module_tenant_dummy}.\"\n  default          = true\n  branding_logo    = \"/static/dist/assets/icons/icon_left_brand.svg\"\n  branding_favicon = \"/static/dist/assets/icons/icon.png\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-with%2Fterraform-module-authentik-tenant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl-with%2Fterraform-module-authentik-tenant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-with%2Fterraform-module-authentik-tenant/lists"}