feat: Authentik SSO Stack - Unified Identity Authentication (Bounty #9)#455
Open
zhaog100 wants to merge 1 commit intoillbnm:masterfrom
Open
feat: Authentik SSO Stack - Unified Identity Authentication (Bounty #9)#455zhaog100 wants to merge 1 commit intoillbnm:masterfrom
zhaog100 wants to merge 1 commit intoillbnm:masterfrom
Conversation
Implements bounty illbnm#9 - SSO Stack ($300) ## Changes ### SSO Core - Authentik Server + Worker + PostgreSQL + Redis (already existed) - ForwardAuth middleware via Traefik dynamic config (already existed) - Setup script enhanced with user groups and all 6 service providers ### OIDC Integration (6 services) - Grafana: native OIDC with role mapping (already configured) - Outline: native OIDC via env vars (already configured) - Open WebUI: native OIDC env vars + ForwardAuth middleware (NEW) - Gitea: ForwardAuth middleware (NEW) - Nextcloud: ForwardAuth middleware (NEW) - Portainer: ForwardAuth middleware (NEW) - Prometheus: ForwardAuth middleware (already configured) ### User Groups - homelab-admins: full access to all services - homelab-users: standard access to productivity/storage/AI - media-users: access to media streaming services ### Scripts - Enhanced setup-authentik.sh: creates 6 OIDC providers + 3 user groups - New verify-sso-setup.sh: 27 automated checks for SSO configuration ### Environment Variables - Added AUTHENTIK_BOOTSTRAP_TOKEN to .env.example files - Added NEXTCLOUD_OAUTH_CLIENT_* placeholders - Added PORTAINER_OAUTH_CLIENT_* placeholders - Added OPENWEBUI_OAUTH_CLIENT_* placeholders ### Testing - All 27 verification checks pass - All 6 docker-compose files validate successfully - ForwardAuth middleware confirmed on all protected services
9 tasks
|
Closing - no response from maintainers |
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
Implements Bounty #9 - SSO Stack ($300): Complete Authentik-based unified identity authentication for all homelab services.
What Was Done
1. SSO Core Infrastructure ✅
config/traefik/dynamic/authentik.yml)2. OIDC Integration for 6 Services ✅
3. Setup Script ✅
scripts/setup-authentik.shauto-creates 6 OIDC providers + 3 user groups4. User Groups ✅
homelab-admins,homelab-users,media-users5. Verification ✅
scripts/verify-sso-setup.sh— 27/27 checks passFiles Changed (9 files, +237 -156)
scripts/setup-authentik.sh— Rewritten with 6 providers + 3 groupsscripts/verify-sso-setup.sh— NEW verification scriptstacks/ai/docker-compose.yml— Open WebUI OIDC + ForwardAuthstacks/base/docker-compose.yml— Portainer ForwardAuthstacks/productivity/docker-compose.yml— Gitea ForwardAuthstacks/storage/docker-compose.yml— Nextcloud ForwardAuthstacks/sso/.env.example— Added all OAuth varsstacks/sso/README.md— Complete docs.env.example— Added missing varsTest: 27 PASS / 0 FAIL
All docker-compose files validate. All integration checks pass.
Closes #9