Skip to content

feat: add Helm test for Authentik deployment validation#62

Merged
timothyclin merged 50 commits into
mainfrom
agent/add-authentik-test
Apr 7, 2026
Merged

feat: add Helm test for Authentik deployment validation#62
timothyclin merged 50 commits into
mainfrom
agent/add-authentik-test

Conversation

@timothyclin
Copy link
Copy Markdown
Owner

Summary

  • Added Helm test pod for Authentik deployment validation
  • Tests service availability and basic connectivity

Test Plan

  • helm lint passes
  • helm template renders valid pod definition

- Add stable secretKey field to values.yaml
- Change default postgres and redis passwords from empty to placeholder
- Replace random secretKey generation with stable value
- Add validation to ensure required passwords are set
…bilities

- Change default authentik.secretKey from insecure placeholder to empty string
- Add clear documentation requiring cryptographically strong random key (32+ chars)
- Maintain required validation to prevent empty deployments
- Users must explicitly set secure key before installation
- Add chart/templates/authentik/configmap.yaml for Authentik configuration
- Add chart/templates/authentik/deployment.yaml for Authentik server deployment
- Add chart/templates/authentik/service.yaml for Authentik service
- Update chart/values.yaml with complete Authentik configuration section
- Add conditional ingress routing through Authentik when enabled
- Fix indentation in values.yaml redis section
- Add conditional ingress logic for Authentik routing when enabled
- Remove default hostname fallback in OIDC ingress for consistency
- Fix template comment syntax in _helpers.tpl
Copilot AI review requested due to automatic review settings April 7, 2026 13:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an initial Authentik component deployment (server + Postgres + Redis), adds an nginx Ingress that conditionally routes via Authentik, and includes a Helm test pod plus supporting design/plan documentation.

Changes:

  • Added Authentik Helm values and templates (Deployment/Service/ConfigMap/Secrets, Postgres/Redis, NetworkPolicy).
  • Added a new nginx Ingress template that switches routing based on authentik.enabled.
  • Added a Helm test pod for basic Authentik service reachability and added related specs/plans.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 30 comments.

Show a summary per file
File Description
docs/superpowers/specs/2026-04-07-update-ingress-authentik-routing-design.md Design notes for conditional ingress routing via Authentik.
docs/superpowers/specs/2026-04-07-shared-ingress-authentik-design.md Shared-ingress/AuthentiK architecture spec (contains trailing artifact text).
docs/superpowers/plans/2026-04-07-update-ingress-authentik-routing.md Step-by-step plan for updating ingress hostnames/routing.
docs/superpowers/plans/2026-04-07-shared-ingress-authentik.md Full implementation plan for Authentik shared ingress (contains trailing artifact text).
docs/superpowers/plans/2026-04-07-add-authentik-deployment.md Plan for requiring Authentik secretKey (contains trailing artifact text).
chart/values.yaml Adds authentik configuration block (secretKey, image, resources, postgres/redis, oidc).
chart/templates/tests/authentik-test.yaml Adds Helm test pod to curl the Authentik service.
chart/templates/ingress.yaml Adds nginx Ingress routing conditional on authentik.enabled.
chart/templates/authentik/service.yaml Adds Authentik Service for ports 80/443.
chart/templates/authentik/secret.yaml Adds Secrets for Authentik secretKey + Postgres/Redis (and optional OIDC client secret).
chart/templates/authentik/redis-service.yaml Adds Redis Service for Authentik cache.
chart/templates/authentik/redis-deployment.yaml Adds Redis Deployment for Authentik cache.
chart/templates/authentik/postgres-service.yaml Adds Postgres Service for Authentik DB.
chart/templates/authentik/postgres-pvc.yaml Adds PVC for Authentik Postgres persistence.
chart/templates/authentik/postgres-deployment.yaml Adds Postgres Deployment for Authentik DB.
chart/templates/authentik/networkpolicy.yaml Adds NetworkPolicy intended to constrain Authentik traffic.
chart/templates/authentik/deployment.yaml Adds Authentik Deployment with bootstrap env + config/secret mounts.
chart/templates/authentik/configmap.yaml Adds Authentik configuration ConfigMap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chart/templates/ingress.yaml
Comment thread chart/templates/ingress.yaml
Comment thread chart/templates/authentik/networkpolicy.yaml
Comment thread chart/templates/authentik/postgres-deployment.yaml
Comment thread chart/templates/authentik/postgres-deployment.yaml
Comment thread chart/templates/authentik/networkpolicy.yaml
Comment thread chart/templates/authentik/postgres-service.yaml
Comment thread chart/templates/authentik/postgres-pvc.yaml
Comment thread chart/templates/authentik/redis-service.yaml
Comment thread chart/templates/authentik/deployment.yaml
@timothyclin timothyclin merged commit a230a09 into main Apr 7, 2026
8 checks passed
@timothyclin timothyclin deleted the agent/add-authentik-test branch April 7, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants