feat: add Helm test for Authentik deployment validation#62
Merged
Conversation
- 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
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan