All checks were successful
CI / skip-ci-check (pull_request) Successful in 8s
CI / lint-and-test (pull_request) Successful in 17s
CI / secret-scanning (pull_request) Successful in 8s
CI / dependency-scan (pull_request) Successful in 18s
CI / ansible-validation (pull_request) Successful in 54s
CI / sast-scan (pull_request) Successful in 29s
CI / license-check (pull_request) Successful in 14s
CI / vault-check (pull_request) Successful in 13s
CI / container-scan (pull_request) Successful in 8s
CI / sonar-analysis (pull_request) Successful in 8s
CI / playbook-test (pull_request) Successful in 27s
CI / workflow-summary (pull_request) Successful in 6s
Consolidate sprint status into handoff docs, add Listmonk/Mattermost/Mailcow and Vikunja SSO guides, Beszel alerts script, mattermost inventory, and mark phases 0–1 complete with phase 2 backlog for edge Caddy and security. Co-authored-by: Cursor <cursoragent@cursor.com>
2.4 KiB
2.4 KiB
Mattermost ↔ Authentik (GitLab OAuth workaround)
Status: ✅ Live (config.json patched 2026-05-24; VM 107 @ 10.0.10.237)
Team Edition has no generic OIDC UI — use GitLab OAuth endpoints pointed at Authentik.
URL: https://slack.levkin.ca · Backend: 10.0.10.237:8065 (VM 107 on pve10)
Authentik (done 2026-05-24)
| Item | Value |
|---|---|
| Application slug | mattermost |
| Provider | mattermost-gitlab-oidc |
| Client ID | mattermost |
| Redirect URI | https://slack.levkin.ca/signup/gitlab/complete |
| Scope mappings | mattermost-username, mattermost-id + default OpenID |
| Access | homelab-users group binding |
Client secret: store in vault as vault_mattermost_oidc_client_secret (rotate if exposed).
Mattermost — apply on VM
SSH as root (or bootstrap key first: make bootstrap-root-ssh once password works):
ssh root@10.0.10.237
Edit /opt/mattermost/config/config.json (path may vary — find / -name config.json -path '*mattermost*').
Set GitLabSettings:
"GitLabSettings": {
"Enable": true,
"Secret": "<vault_mattermost_oidc_client_secret>",
"Id": "mattermost",
"Scope": "",
"AuthEndpoint": "https://auth.levkin.ca/application/o/authorize/",
"TokenEndpoint": "https://auth.levkin.ca/application/o/token/",
"UserAPIEndpoint": "https://auth.levkin.ca/application/o/userinfo/",
"DiscoveryEndpoint": "https://auth.levkin.ca/application/o/mattermost/.well-known/openid-configuration",
"ButtonText": "Log in with Authentik",
"ButtonColor": "#fd4b2d"
}
Then:
- System Console → Authentication → Signup → Enable Account Creation = true
systemctl restart mattermost(ordocker compose restartif containerized)- Log out → use GitLab button (actually Authentik)
- Existing users: Profile → Security → Switch to GitLab SSO (see Authentik integration)
Verify
curl -sS https://auth.levkin.ca/application/o/mattermost/.well-known/openid-configuration | head
curl -sS -o /dev/null -w '%{http_code}\n' https://slack.levkin.ca/login
Related
- sso-selfhosted-matrix.md
- cursor-mcp-homelab.md — Playwright can smoke-test login after
config.jsonis applied