2024-11-12 20:20:10 +00:00
|
|
|
authentik:
|
2025-09-06 21:41:22 +00:00
|
|
|
log_level: warning
|
2025-12-28 20:03:37 +00:00
|
|
|
# log_level: trace
|
2024-11-12 20:20:10 +00:00
|
|
|
secret_key: "${secret_key}"
|
|
|
|
|
# This sends anonymous usage-data, stack traces on errors and
|
|
|
|
|
# performance data to authentik.error-reporting.a7k.io, and is fully opt-in
|
|
|
|
|
error_reporting:
|
|
|
|
|
enabled: true
|
|
|
|
|
postgresql:
|
2025-10-08 21:56:03 +00:00
|
|
|
# host: postgresql.dbaas
|
|
|
|
|
host: pgbouncer.authentik
|
|
|
|
|
port: 6432
|
2024-11-12 20:20:10 +00:00
|
|
|
user: authentik
|
|
|
|
|
password: ${postgres_password}
|
|
|
|
|
redis:
|
[ci skip] Infrastructure hardening: security, monitoring, reliability, maintainability
Phase 1 - Critical Security:
- Netbox: move hardcoded DB/superuser passwords to variables
- MeshCentral: disable public registration, add Authentik auth
- Traefik: disable insecure API dashboard (api.insecure=false)
- Traefik: configure forwarded headers with Cloudflare trusted IPs
Phase 2 - Security Hardening:
- Add security headers middleware (HSTS, X-Frame-Options, nosniff, etc.)
- Add Kyverno pod security policies in audit mode (privileged, host
namespaces, SYS_ADMIN, trusted registries)
- Tighten rate limiting (avg=10, burst=50)
- Add Authentik protection to grampsweb
Phase 3 - Monitoring & Alerting:
- Add critical service alerts (PostgreSQL, MySQL, Redis, Headscale,
Authentik, Loki)
- Increase Loki retention from 7 to 30 days (720h)
- Add predictive PV filling alert (predict_linear)
- Re-enable Hackmd and Privatebin down alerts
Phase 4 - Reliability:
- Add resource requests/limits to Redis, DBaaS, Technitium, Headscale,
Vaultwarden, Uptime Kuma
- Increase Alloy DaemonSet memory to 512Mi/1Gi
Phase 6 - Maintainability:
- Extract duplicated tiers locals to terragrunt.hcl generate block
(removed from 67 stacks)
- Replace hardcoded NFS IP 10.0.10.15 with var.nfs_server (114
instances across 63 files)
- Replace hardcoded Redis/PostgreSQL/MySQL/Ollama/mail host references
with variables across ~35 stacks
- Migrate xray raw ingress resources to ingress_factory modules
2026-02-23 22:05:28 +00:00
|
|
|
host: ${redis_host}
|
2024-11-12 20:20:10 +00:00
|
|
|
|
|
|
|
|
server:
|
2025-03-16 18:26:32 +00:00
|
|
|
replicas: 3
|
2026-02-28 17:03:33 +00:00
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
2026-02-28 21:59:08 +00:00
|
|
|
memory: 512Mi
|
2026-02-28 17:03:33 +00:00
|
|
|
limits:
|
|
|
|
|
cpu: "2"
|
|
|
|
|
memory: 1Gi
|
2024-11-12 20:20:10 +00:00
|
|
|
ingress:
|
|
|
|
|
enabled: false
|
|
|
|
|
# hosts:
|
|
|
|
|
# - authentik.viktorbarzin.me
|
2024-12-30 14:01:38 +00:00
|
|
|
podAnnotations:
|
|
|
|
|
diun.enable: true
|
|
|
|
|
diun.include_tags: "^202[0-9].[0-9]+.*$" # no need to annotate the worker as it uses the same image
|
2026-03-01 14:24:47 +00:00
|
|
|
pdb:
|
|
|
|
|
enabled: true
|
|
|
|
|
minAvailable: 2
|
2024-12-30 14:01:38 +00:00
|
|
|
global:
|
|
|
|
|
addPrometheusAnnotations: true
|
2025-03-16 18:26:32 +00:00
|
|
|
|
|
|
|
|
worker:
|
|
|
|
|
replicas: 3
|
2026-02-28 17:03:33 +00:00
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 50m
|
2026-02-28 21:59:08 +00:00
|
|
|
memory: 384Mi
|
2026-02-28 17:03:33 +00:00
|
|
|
limits:
|
|
|
|
|
cpu: "1"
|
|
|
|
|
memory: 1Gi
|