mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- LXC 100: Authentik 2025.4 with PostgreSQL 16 + Redis
- LXC 100: Credential vault HTTP service on port 9100 (PG-backed)
- VPS: Caddy reverse proxy with Let's Encrypt DNS-01 for researchstack.info,
auth.researchstack.info, vault.researchstack.info
- VPS: Post-quantum SSH (mlkem768x25519-sha256) in sshd_config
- Repo: age-sops secret management enabled
- Encrypt: .env, restic.env, credentials.json, appflowy.env,
tailscale-auth.key, porkbun.env, API KEYS/*.txt
- Add .sops.yaml at repo root and update k3s-flake/.sops.yaml
- Porkbun DNS: update A records to 46.232.249.226, add vault/auth subdomains
- Tailscale: auth key added to credential server (RackNerd microVM)
- Docs: PQC posture, VPS status, Authentik setup guide, ARR stack plan
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
3.8 KiB
3.8 KiB
Authentik Setup Guide — Research Stack
Status: 2026-05-21
Authentik is deployed in LXC 100 with local PostgreSQL 16 and Redis.
Current State
- URL:
https://auth.researchstack.info(Caddy reverse proxy ->192.168.100.100:9000) - Default admin:
akadmin/authentik(CHANGE THIS IMMEDIATELY) - Backend: PostgreSQL 16 in Docker (
authentik-postgresql)
Step 1: First Login & Bootstrap
- Open
https://auth.researchstack.info(use SSH tunnel if netcup ports blocked) - Login with
akadmin/authentik - Go to Admin Interface (top right)
- Navigate to Directory -> Users -> akadmin
- Change password to a strong unique password
- (Optional) Add your email for recovery
Step 2: Create Forward Auth Provider (for Caddy)
This protects vault.researchstack.info and future ARR services.
- In Admin Interface, go to Applications -> Providers
- Click Create
- Select Proxy Provider
- Fill in:
- Name:
caddy-forward-auth - Authorization flow:
default-provider-authorization-implicit-consent - Internal host:
http://192.168.100.100:9100(vault service) - External host:
https://vault.researchstack.info - Mode:
Forward domain
- Name:
- Save
Step 3: Create Application
- Go to Applications -> Applications
- Click Create
- Fill in:
- Name:
Credential Vault - Slug:
vault - Provider:
caddy-forward-auth
- Name:
- Save
Step 4: Configure Outpost
- Go to Applications -> Outposts
- The authentik Embedded Outpost is already running
- Edit it, add
Credential Vaultto the list of applications - Save
The outpost listens on 192.168.100.100:9000 (same as Authentik).
Step 5: Update Caddy Forward Auth
On the VPS, edit /opt/caddy/Caddyfile:
vault.researchstack.info {
tls {
dns porkbun { ... }
}
forward_auth 192.168.100.100:9000 {
uri /outpost.goauthentik.io/auth/caddy
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name
}
reverse_proxy 192.168.100.100:9100
}
Then reload:
/opt/caddy/caddy reload --config /opt/caddy/Caddyfile
Step 6: Test
- Open
https://vault.researchstack.infoin an incognito window - You should be redirected to Authentik login
- After logging in, you should see the credential vault JSON response
Step 7: Add Users
- Go to Directory -> Users
- Create users for anyone who needs access
- (Optional) Add users to Directory -> Groups for role-based access
Next: ARR Stack Apps
For each ARR service, repeat Steps 2-5:
| Service | Internal Host | External Host | Provider Name |
|---|---|---|---|
| Sonarr | http://192.168.100.100:8989 |
https://sonarr.researchstack.info |
sonarr-forward-auth |
| Radarr | http://192.168.100.100:7878 |
https://radarr.researchstack.info |
radarr-forward-auth |
| Lidarr | http://192.168.100.100:8686 |
https://lidarr.researchstack.info |
lidarr-forward-auth |
| Readarr | http://192.168.100.100:8787 |
https://readarr.researchstack.info |
readarr-forward-auth |
| Prowlarr | http://192.168.100.100:9696 |
https://prowlarr.researchstack.info |
prowlarr-forward-auth |
| Bazarr | http://192.168.100.100:6767 |
https://bazarr.researchstack.info |
bazarr-forward-auth |
All can use the same embedded outpost.
Troubleshooting
Certificate errors?
- Check
journalctl -u caddyon the VPS
Authentik not reachable?
- Verify Docker containers in LXC 100:
pct exec 100 -- docker ps - Check Authentik logs:
pct exec 100 -- docker logs authentik-server
Forward auth not working?
- Verify outpost application assignment
- Check Caddy logs for
forward_autherrors - Ensure
auth.researchstack.infois accessible (the outpost needs to redirect there)