Skip to content

Commit

Permalink
fix(home-assistant): Remove authentik terraform config
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Jul 1, 2024
1 parent c76d836 commit 3982cf3
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 42 deletions.
35 changes: 18 additions & 17 deletions terraform/authentik/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions terraform/authentik/app-home-assistant.tf
Original file line number Diff line number Diff line change
@@ -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
# }
4 changes: 2 additions & 2 deletions terraform/authentik/directory.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
}

Expand All @@ -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,
]
}
4 changes: 2 additions & 2 deletions terraform/authentik/outposts.tf
Original file line number Diff line number Diff line change
@@ -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,
]
}

Expand Down

0 comments on commit 3982cf3

Please sign in to comment.