feat: SSO Stack Enhancements - Automated OIDC Setup (#9)#451
Open
zhaog100 wants to merge 1 commit intoillbnm:masterfrom
Open
feat: SSO Stack Enhancements - Automated OIDC Setup (#9)#451zhaog100 wants to merge 1 commit intoillbnm:masterfrom
zhaog100 wants to merge 1 commit intoillbnm:masterfrom
Conversation
- Add authentik-setup.sh for automated OIDC provider creation - Creates providers for Grafana, Gitea, Nextcloud, Outline, Open WebUI, Portainer - Auto-updates .env with client credentials - Creates user groups: homelab-admins, homelab-users, media-users - Dry-run mode for testing - Update .env.example with new OAuth variables - AUTHENTIK_BOOTSTRAP_TOKEN - AUTHENTIK_ADMIN_GROUP - NEXTCLOUD_OAUTH_* variables - OPENWEBUI_OAUTH_* variables - Simplify and enhance middlewares.yml - Authentik ForwardAuth middleware - Rate limiting - Security headers - Compression Ref: Bounty task illbnm#9 - SSO (00)
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
This PR enhances the SSO (Authentik) implementation for Bounty Task #9 ($300 USDT).
✅ What's Included
1. Automated OIDC Setup Script (
scripts/authentik-setup.sh).envwith client credentialshomelab-admins,homelab-users,media-users2. Updated Environment Variables (
.env.example)AUTHENTIK_BOOTSTRAP_TOKEN- Initial setup tokenAUTHENTIK_ADMIN_GROUP- Admin group nameNEXTCLOUD_OAUTH_*- Nextcloud OAuth variablesOPENWEBUI_OAUTH_*- Open WebUI OAuth variables3. Enhanced Middleware (
config/traefik/dynamic/middlewares.yml)🎯 Integration
This PR adds the automated setup enhancements to the existing SSO stack implementation:
📦 Services Covered
🧪 Testing
The setup script includes:
./scripts/authentik-setup.sh --dry-run📚 Documentation
All changes are documented in:
stacks/sso/README.md(architecture, setup, troubleshooting).env.example(variable descriptions)🔗 Related
Bounty Value: $300 USDT
Implementation Status: Complete (core + enhancements)
Ready for Review: ✅