feat: add argo workflows

This commit is contained in:
cătălin 2024-03-13 15:20:32 +01:00
commit 2c7de2fb4c
No known key found for this signature in database
11 changed files with 254 additions and 0 deletions

32
tofu/authentik/main.tf Normal file
View file

@ -0,0 +1,32 @@
terraform {
backend "s3" {
bucket = "fuku-terraform"
key = "authentik/terraform"
region = "us-east-1"
}
required_providers {
authentik = {
source = "goauthentik/authentik"
version = "2024.2.0"
}
}
}
data "authentik_user" "catalin" {
username = "catalin"
}
resource "authentik_group" "ci" {
name = "ci"
users = [data.authentik_user.catalin.id]
}
module "argo-workflows" {
source = "../modules/authentik"
app_name = "Argo Workflows"
app_slug = "argo-workflows"
client_id = var.argo_workflows_client_id
client_secret = var.argo_workflows_client_secret
app_access_group_id = authentik_group.ci.id
redirect_uris = ["https://ci.fuku/oauth2/callback"]
}