Skip to content

Commit

Permalink
chore: housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Feb 12, 2024
1 parent 89135c2 commit 5dd646d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
# Authentik
clientID: "{{ .GITOPS_CLIENT_ID }}"
clientSecret: "{{ .GITOPS_CLIENT_SECRET }}"
issuerURL: https://authentik.${SECRET_DOMAIN}/application/o/gitops-provider/
issuerURL: https://authentik.${SECRET_DOMAIN}/application/o/gitops/
redirectURL: https://gitops.${SECRET_DOMAIN}/oauth2/callback
customScopes: openid,profile,email
claimGroups: groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
check_for_plugin_updates: false
reporting_enabled: false
auth:
signout_redirect_url: https://authentik.${SECRET_DOMAIN}/application/o/grafana-provider/end-session/
signout_redirect_url: https://authentik.${SECRET_DOMAIN}/application/o/grafana/end-session/
oauth_auto_login: false
oauth_allow_insecure_email_lookup: true
auth.anonymous:
Expand Down
16 changes: 8 additions & 8 deletions terraform/authentik/applications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
## Downloads ##
# resource "authentik_provider_proxy" "download_proxy" {
# for_each = local.download_applications
# name = "${each.value}-provider"
# name = "${each.value}"
# external_host = "http://${each.value}.${var.cluster_domain}"
# mode = "forward_single"
# authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -53,7 +53,7 @@
## Infra ##
# resource "authentik_provider_proxy" "infra_proxy" {
# for_each = local.infra_applications
# name = "${each.value}-provider"
# name = "${each.value}"
# external_host = "http://${each.value}.${var.cluster_domain}"
# mode = "forward_single"
# authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -74,7 +74,7 @@
## Media ##
# resource "authentik_provider_proxy" "media_proxy" {
# for_each = local.media_applications
# name = "${each.value}-provider"
# name = "${each.value}"
# basic_auth_enabled = true
# basic_auth_username_attribute = var.[each.value]_username #I don't know if this works
# basic_auth_password_attribute = var.[each.value]_password
Expand All @@ -97,7 +97,7 @@

## HASS ##
# resource "authentik_provider_proxy" "hass_proxy" {
# name = "home-assistant-provider"
# name = "home-assistant"
# external_host = "http://hass.${var.cluster_domain}"
# mode = "forward_single"
# authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -117,7 +117,7 @@
### Oauth2 Providers ###
## Weave-Gitops ##
resource "authentik_provider_oauth2" "gitops_oauth2" {
name = "gitops-provider"
name = "gitops"
client_id = var.gitops_id
client_secret = var.gitops_secret
authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -139,7 +139,7 @@ resource "authentik_application" "gitops_application" {

## Grafana ##
resource "authentik_provider_oauth2" "grafana_oauth2" {
name = "grafana-provider"
name = "grafana"
client_id = var.grafana_id
client_secret = var.grafana_secret
authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -161,7 +161,7 @@ resource "authentik_application" "grafana_application" {

## Paperless ##
resource "authentik_provider_oauth2" "paperless_oauth2" {
name = "paperless-provider"
name = "paperless"
client_id = var.paperless_id
client_secret = var.paperless_secret
authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand All @@ -183,7 +183,7 @@ resource "authentik_application" "paperless_application" {

## Portainer ##
resource "authentik_provider_oauth2" "portainer_oauth2" {
name = "portainer-provider"
name = "portainer"
client_id = var.portainer_id
client_secret = var.portainer_secret
authorization_flow = resource.authentik_flow.provider-authorization-implicit-consent.uuid
Expand Down

0 comments on commit 5dd646d

Please sign in to comment.