Got rid of authentik secret
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Terraform / Terraform (push) Successful in 35s

This commit is contained in:
AB
2025-12-03 17:14:28 +02:00
parent 5c886d7604
commit a2114327cf
3 changed files with 16 additions and 2 deletions

View File

@@ -30,21 +30,29 @@ jobs:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Terraform Init
env:
TF_VAR_authentik_token: ${{ secrets.AUTHENTIK_TOKEN }}
run: terraform init
working-directory: ./terraform/authentik
- name: Terraform Format
env:
TF_VAR_authentik_token: ${{ secrets.AUTHENTIK_TOKEN }}
run: terraform fmt -check
continue-on-error: true
working-directory: ./terraform/authentik
- name: Terraform Apply
env:
TF_VAR_authentik_token: ${{ secrets.AUTHENTIK_TOKEN }}
run: terraform apply -var-file proxy-apps.tfvars -var-file oauth2-apps.tfvars -var-file terraform.tfvars -var-file groups.tfvars -input=false -auto-approve -parallelism=100
working-directory: ./terraform/authentik
- name: Generate Wiki Content
if: success()
continue-on-error: true
env:
TF_VAR_authentik_token: ${{ secrets.AUTHENTIK_TOKEN }}
run: |
echo "📋 Starting Wiki generation..."
cd ./terraform/authentik

View File

@@ -8,6 +8,6 @@ terraform {
}
provider "authentik" {
url = "https://idm.hexor.cy"
token = "qXcuoCg77JaRgqnU6rqIIBa8MBJ4UNyLPTL89dZI8zeC2jfaWqQ7k56BJs8F"
url = var.authentik_url
token = var.authentik_token
}

View File

@@ -166,3 +166,9 @@ variable "authentik_url" {
type = string
default = "https://idm.hexor.cy"
}
variable "authentik_token" {
description = "Authentik API token (set via TF_VAR_authentik_token env var)"
type = string
sensitive = true
}