From 3982cf34b5f57f8144346be46d9acfd2521d8ab3 Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Sun, 30 Jun 2024 21:35:06 -0400 Subject: [PATCH] fix(home-assistant): Remove authentik terraform config --- terraform/authentik/.terraform.lock.hcl | 35 ++++++++++--------- terraform/authentik/app-home-assistant.tf | 42 +++++++++++------------ terraform/authentik/directory.tf | 4 +-- terraform/authentik/outposts.tf | 4 +-- 4 files changed, 43 insertions(+), 42 deletions(-) diff --git a/terraform/authentik/.terraform.lock.hcl b/terraform/authentik/.terraform.lock.hcl index ab46edfcce..f96f344196 100644 --- a/terraform/authentik/.terraform.lock.hcl +++ b/terraform/authentik/.terraform.lock.hcl @@ -2,24 +2,25 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/1password/onepassword" { - version = "1.4.3" - constraints = "1.4.3" + version = "2.1.0" + constraints = "2.1.0" hashes = [ - "h1:/iQ2CwCCmUuqFtKXqtgUl9YqQQ2bss6Bl+sC4YuxqM0=", - "zh:01c3d2bbc3199f46504d7c26e78230e52b8044c7965322edb107f7ebb5339d5c", - "zh:210aaad41ad9d3df6c21bac532fcd3f554b09e4ba51a73adc0dee528fb537dbe", - "zh:2210573c368187cea89d948f60c8e65bcab42571e4c079fbf96bf36820a20fcf", - "zh:32b677a638d19a7d71cdec76d9172ba564cc65af726be54584a151fb0dbf9240", - "zh:3357f032c0de221ae1a99dc2c752e1bd3e7fbbbf30640cd82b3568689e372116", - "zh:3c82397d200c8726c2e96f47049e039257200856a2eb925fc2bf9eed17bfffef", - "zh:420259b5a29d1d849e050293f4dcfaa5e69c144eb8cda1f228c9f624f072e3d0", - "zh:42709d61d8db8fa08522a5a54e8f739b99bca5dd9336f328cd3de525850cac03", - "zh:7a91b6990b23edb488a2a2e3b158e7d8c8bf01b9cf9e9464822a2889d620b1d8", - "zh:95ca0311c5b56df47818432bd42a9315ef83bdf22f59b0d8e2bee8cabbbe5efd", - "zh:9fa8741ef3d65fb879e534e5e962eb992b9dadcc0b578afeb3f2d68b6fe103b8", - "zh:a5961294d6e50e60462dfa7df5fb82f984617cf1ba04602b1812643c0341252a", - "zh:b11ad8ad3e4e01688bf99341230deddc392865d3ade3250f1c76f52f17aa132e", - "zh:bc96a3f36a261b00c7825e1bfdf25cc671b4fcc7042c36dec47f8bc6d052209d", + "h1:WaVFLtfvlx899m6rNsL3qr4aS+v2lIhO8QgfcDgC4NM=", + "zh:0d6f803760aa7cae0e841cfca17ef04411231170b2844cc0b30556d5476d9dff", + "zh:17badbffb56309f28aee1893a6b93d1cd87ed5157704fb17b93889f0ccf8cc2d", + "zh:185e0c7c66cc159769d7b91c37ab51a546efc13fb99eb206481739a521f75236", + "zh:19e213f8265445a29d8bb7c7b1f0d4e3c1fdfd538178704f8e8378db2dcdf359", + "zh:49929666304f97301f44ee0fdd39f40f63e35ccfb4c81588439bdab6d5bafde0", + "zh:4de33f5630350d6a561d5d62994d525beb8849c94287c2658f39242fe3170cf8", + "zh:4f212a8fbbbaa7a47f1b31857be3bad2d590f92be845c6b252c9716bb70076d9", + "zh:596cc2bd9aaafd2e649aabcff0125afa9d4270f702813c935fbd5694eed002e7", + "zh:618e703a43608c502066c5b909ead45b1f4202f7cebc993f447278477d32cda2", + "zh:61fde3651bcb2e691ee9d82ce1de03588d006f53b2e8e2516910321da8627228", + "zh:890df766e9b839623b1f0437355032a3c006226a6c200cd911e15ee1a9014e9f", + "zh:db05022113841a00174bba5e24cfc77195bbc03d24339c5e8ac4346069901e45", + "zh:dcc7792a24c74890081a96ba2bc360d90ab71a4d25232ca18046d9868c835e21", + "zh:f2e67a298d20bf52cb208611767b420962d3f0d518e89cf41cc432551b1faf63", + "zh:f7e587814506c7e74fc1d80b29465c8e4b7bdbf803f7f8c0a8bb498968cdd58d", ] } diff --git a/terraform/authentik/app-home-assistant.tf b/terraform/authentik/app-home-assistant.tf index b264d00053..10dda35fb7 100644 --- a/terraform/authentik/app-home-assistant.tf +++ b/terraform/authentik/app-home-assistant.tf @@ -1,26 +1,26 @@ -module "home_assistant" { - source = "./modules/forward-auth-application" - slug = "homeassistant" +# module "home_assistant" { +# source = "./modules/forward-auth-application" +# slug = "homeassistant" - name = "Home Assistant" - domain = "home.${local.cluster_domain}" - internal_host = "https://home.zinn.ca" - group = authentik_group.applications.name +# name = "Home Assistant" +# domain = "home.${local.cluster_domain}" +# internal_host = "https://home.zinn.ca" +# group = authentik_group.applications.name - policy_engine_mode = "any" - authentication_flow_uuid = authentik_flow.authentication.uuid - authorization_flow_uuid = data.authentik_flow.default-provider-authorization-implicit-consent.id +# policy_engine_mode = "any" +# authentication_flow_uuid = authentik_flow.authentication.uuid +# authorization_flow_uuid = data.authentik_flow.default-provider-authorization-implicit-consent.id - meta_icon = "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/home-assistant.png" - meta_launch_url = "https://home.zinn.ca/lovelace-home/default_view" -} +# meta_icon = "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/home-assistant.png" +# meta_launch_url = "https://home.zinn.ca/lovelace-home/default_view" +# } -resource "authentik_group" "home_assistant_users" { - name = "Home Assistant Users" -} +# resource "authentik_group" "home_assistant_users" { +# name = "Home Assistant Users" +# } -resource "authentik_policy_binding" "home_assistant-access-users" { - target = module.home_assistant.application_id - group = authentik_group.home_assistant_users.id - order = 0 -} +# resource "authentik_policy_binding" "home_assistant-access-users" { +# target = module.home_assistant.application_id +# group = authentik_group.home_assistant_users.id +# order = 0 +# } diff --git a/terraform/authentik/directory.tf b/terraform/authentik/directory.tf index 22b696a7d8..fd25975f92 100644 --- a/terraform/authentik/directory.tf +++ b/terraform/authentik/directory.tf @@ -41,7 +41,7 @@ resource "authentik_user" "scotte" { authentik_group.hades_users.id, authentik_group.whoami_users.id, authentik_group.echo_server_users.id, - authentik_group.home_assistant_users.id, + # authentik_group.home_assistant_users.id, ] } @@ -59,6 +59,6 @@ resource "authentik_user" "sophie" { groups = [ authentik_group.users.id, authentik_group.wikijs_users.id, - authentik_group.home_assistant_users.id, + # authentik_group.home_assistant_users.id, ] } diff --git a/terraform/authentik/outposts.tf b/terraform/authentik/outposts.tf index a8df8fe492..cd9afa7409 100644 --- a/terraform/authentik/outposts.tf +++ b/terraform/authentik/outposts.tf @@ -1,12 +1,12 @@ locals { internal_proxy_provider_ids = [ - module.home_assistant.proxy_provider_id, + # module.home_assistant.proxy_provider_id, module.whoami.proxy_provider_id ] external_proxy_provider_ids = [ module.echo_server.proxy_provider_id, - module.home_assistant.proxy_provider_id, + # module.home_assistant.proxy_provider_id, ] }