Commit 17c41f7
authored
feat: OpenID Connect (OIDC) SSO + per-bucket access management (#21)
* feat: OpenID Connect SSO + per-bucket access management (#9)
Generic OIDC client for any compliant provider (Keycloak, Authentik, Okta,
Auth0, Entra ID, Google, Dex). Auto-discovers endpoints, fully validates the
ID token (JWKS signature, iss/aud/exp/azp, nonce), and protects the flow with
state + nonce + PKCE (S256); works as a confidential or public client. Per
issue #9, only the username is synced — new users are viewers with no access
until an admin grants it.
- Optional group->role mapping (OIDC_ADMIN_GROUP / OIDC_GROUPS_CLAIM),
verified-email and email-domain restrictions, and RP-initiated single
logout — all opt-in, off by default.
- Per-bucket access UI: auth-source badges (Local / SSO / LDAP / OAuth), a
bucket-grant count, and a Manage-access editor (Read / Write / No Access,
with search and bulk grant/revoke).
- Security: federated logins (OIDC/OAuth/LDAP) go through one hardened sync
path. An auth_source is tracked per user (with a backfill migration),
blocking account takeover — a federated login can no longer sign in as a
username already owned by a different source (notably the local admin).
- Docs: .env.example, Helm values/deployment/secrets, README, CHANGELOG,
docs/SSO.md, and website SSO / env-vars / user-management / changelog pages.
Validated: 62 backend tests (incl. takeover, azp, group-match, nonce); live
browser e2e across Keycloak, Dex, and Authentik plus the full user-management
UI (18 Playwright checks); Google validated against real discovery + JWKS.
* chore: release 3.6.0
Bump app version to 3.6.0 (Helm chart 1.4.0) and finalize the OIDC SSO +
per-bucket access management changelog entry.1 parent 557dc72 commit 17c41f7
21 files changed
Lines changed: 1428 additions & 93 deletions
File tree
- backend
- charts/sairo
- templates
- docs
- frontend
- src
- components
- website/src/content/docs
- reference
- security
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
39 | 62 | | |
40 | 63 | | |
41 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments