authentik initial
This commit is contained in:
21
12_Authentik/authentik-values.gomplate.yaml
Normal file
21
12_Authentik/authentik-values.gomplate.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
authentik:
|
||||||
|
secret_key: "PleaseGenerateASecureKey"
|
||||||
|
# This sends anonymous usage-data, stack traces on errors and
|
||||||
|
# performance data to sentry.io, and is fully opt-in
|
||||||
|
error_reporting:
|
||||||
|
enabled: true
|
||||||
|
postgresql:
|
||||||
|
password: "ThisIsNotASecurePassword"
|
||||||
|
|
||||||
|
server:
|
||||||
|
ingress:
|
||||||
|
# Specify kubernetes ingress controller class name
|
||||||
|
ingressClassName: nginx | traefik | kong
|
||||||
|
enabled: true
|
||||||
|
hosts:
|
||||||
|
- authentik.domain.tld
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
enabled: true
|
||||||
|
auth:
|
||||||
|
password: "ThisIsNotASecurePassword"
|
||||||
28
12_Authentik/justfile
Normal file
28
12_Authentik/justfile
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
set fallback := true
|
||||||
|
|
||||||
|
export AUTHENTIK_NAMESPACE := env("AUTHENTIK_NAMESPACE", "authentik")
|
||||||
|
|
||||||
|
[private]
|
||||||
|
default:
|
||||||
|
@just --list --unsorted --list-submodules
|
||||||
|
|
||||||
|
# Add Helm repository
|
||||||
|
add-helm-repo:
|
||||||
|
@helm repo add authentik https://charts.goauthentik.io
|
||||||
|
@helm repo update
|
||||||
|
|
||||||
|
# Remove Helm repository
|
||||||
|
remove-helm-repo:
|
||||||
|
@helm repo remove authentik
|
||||||
|
|
||||||
|
|
||||||
|
install:
|
||||||
|
@just add-helm-repo
|
||||||
|
@helm upgrade --cleanup-on-fail --install authentik authentik/authentik \
|
||||||
|
-n ${AUTHENTIK_NAMESPACE} --create-namespace --wait \
|
||||||
|
-f authentik-values.yaml
|
||||||
|
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@helm uninstall authentik -n ${AUTHENTIK_NAMESPACE} --wait
|
||||||
|
@kubectl delete namespace ${AUTHENTIK_NAMESPACE} --ignore-not-found
|
||||||
1
env/env.local.gomplate
vendored
1
env/env.local.gomplate
vendored
@@ -8,3 +8,4 @@ CLOUDFLARE_API_TOKEN={{ .Env.CLOUDFLARE_API_TOKEN}}
|
|||||||
ACME_EMAIL={{ .Env.ACME_EMAIL}}
|
ACME_EMAIL={{ .Env.ACME_EMAIL}}
|
||||||
EXTERNAL_DOMAIN={{ .Env.EXTERNAL_DOMAIN }}
|
EXTERNAL_DOMAIN={{ .Env.EXTERNAL_DOMAIN }}
|
||||||
VAULT_HOST={{ .Env.VAULT_HOST }}
|
VAULT_HOST={{ .Env.VAULT_HOST }}
|
||||||
|
AUTHENTIK_HOST={{ .Env.AUTHENTIK_HOST }}
|
||||||
9
env/justfile
vendored
9
env/justfile
vendored
@@ -129,6 +129,15 @@ setup:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
while [ -z "${AUTHENTIK_HOST}" ]; do
|
||||||
|
if ! AUTHENTIK_HOST=$(
|
||||||
|
gum input --prompt="Authentik hostname: " \
|
||||||
|
--width=100 --placeholder="authentik"
|
||||||
|
); then
|
||||||
|
echo "Setup cancelled." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo "Generating .env.local file..."
|
echo "Generating .env.local file..."
|
||||||
rm -f ../.env.local
|
rm -f ../.env.local
|
||||||
|
|||||||
Reference in New Issue
Block a user