Single sign-on through OpenID Connect: accounts, staff roles and memberships from the provider
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b60cf45adf
commit
4cf40644c9
16 files changed
+853
-4
No files matched your search
@@ -33,6 +33,7 @@ rather than repeated.
|
||||
| `default_rpm` | `int` | [Auth](#auth) |
|
||||
| `default_tpm` | `int` | [Auth](#auth) |
|
||||
| `signup_open` | `bool` | [Auth](#auth) |
|
||||
| `oidc` | `OIDC` | [Auth](#auth) |
|
||||
| `personal` | `Personal` | [Auth](#auth) |
|
||||
| `pricing` | `map[string]Price` | [Auth](#auth) |
|
||||
| `default_price` | `Price` | [Auth](#auth) |
|
||||
@@ -106,6 +107,17 @@ rather than repeated.
|
||||
| `prometheus` | `string` | [Monitoring](#monitoring) |
|
||||
| `window` | `time.Duration` | [Monitoring](#monitoring) |
|
||||
| `timeout` | `time.Duration` | [Monitoring](#monitoring) |
|
||||
| `issuer` | `string` | [OIDC](#oidc) |
|
||||
| `client_id` | `string` | [OIDC](#oidc) |
|
||||
| `client_secret_file` | `string` | [OIDC](#oidc) |
|
||||
| `redirect_url` | `string` | [OIDC](#oidc) |
|
||||
| `label` | `string` | [OIDC](#oidc) |
|
||||
| `scopes` | `[]string` | [OIDC](#oidc) |
|
||||
| `groups_claim` | `string` | [OIDC](#oidc) |
|
||||
| `create_accounts` | `bool` | [OIDC](#oidc) |
|
||||
| `roles` | `map[string][]string` | [OIDC](#oidc) |
|
||||
| `memberships` | `map[string]string` | [OIDC](#oidc) |
|
||||
| `no_passwords` | `bool` | [OIDC](#oidc) |
|
||||
| `nvidia_smi` | `string` | [Options](#options) |
|
||||
| `ib_root` | `string` | [Options](#options) |
|
||||
| `prefer_nvml` | `bool` | [Options](#options) |
|
||||
@@ -413,6 +425,14 @@ SignupOpen serves the signup form. Accounts it creates are pending until
|
||||
an operator approves them, so this is not a way in — but turning it off
|
||||
means accounts are made with `llmgw users create` instead.
|
||||
|
||||
### `oidc`
|
||||
|
||||
`OIDC`
|
||||
|
||||
OIDC is sign-in through an identity provider.
|
||||
|
||||
Takes a [OIDC](#oidc) block.
|
||||
|
||||
### `personal`
|
||||
|
||||
`Personal`
|
||||
@@ -959,6 +979,85 @@ Window is how far back the charts look. Zero takes an hour.
|
||||
Timeout bounds one query. It runs while somebody waits for a page, so a
|
||||
monitoring system that is slow today is skipped rather than waited for.
|
||||
|
||||
## OIDC
|
||||
|
||||
### `issuer`
|
||||
|
||||
`string`
|
||||
|
||||
Issuer is the provider's address; its /.well-known/openid-configuration
|
||||
says the rest.
|
||||
|
||||
### `client_id`
|
||||
|
||||
`string`
|
||||
|
||||
ClientID and the file holding its secret, as registered with the
|
||||
provider.
|
||||
|
||||
### `client_secret_file`
|
||||
|
||||
`string`
|
||||
|
||||
### `redirect_url`
|
||||
|
||||
`string`
|
||||
|
||||
RedirectURL is where the provider sends people back:
|
||||
https://<gateway>/login/oidc/callback. Empty works it out from the
|
||||
request, which is right unless a proxy changes the address.
|
||||
|
||||
### `label`
|
||||
|
||||
`string`
|
||||
|
||||
Label is what the sign-in button says: "Sign in with <label>".
|
||||
|
||||
### `scopes`
|
||||
|
||||
`[]string`
|
||||
|
||||
Scopes asked for besides openid; empty is email and profile, and
|
||||
groups when Roles or Memberships use them.
|
||||
|
||||
### `groups_claim`
|
||||
|
||||
`string`
|
||||
|
||||
GroupsClaim names the ID token claim holding groups; empty is
|
||||
"groups".
|
||||
|
||||
### `create_accounts`
|
||||
|
||||
`bool`
|
||||
|
||||
CreateAccounts makes an account, active, for a person the provider
|
||||
vouches for and the gateway does not know. Off, only existing accounts
|
||||
sign in this way.
|
||||
|
||||
### `roles`
|
||||
|
||||
`map[string][]string`
|
||||
|
||||
Roles maps a staff role (viewer, operator, billing, admin) to the
|
||||
groups that give it. Set at every sign-in: someone taken out of the
|
||||
group loses the role the next time.
|
||||
|
||||
### `memberships`
|
||||
|
||||
`map[string]string`
|
||||
|
||||
Memberships maps a group to a place in the tree — org:NAME,
|
||||
team:ORG/TEAM, project:ORG/TEAM/PROJECT — joined at sign-in.
|
||||
|
||||
### `no_passwords`
|
||||
|
||||
`bool`
|
||||
|
||||
PasswordSignIn off refuses passwords on the sign-in form: people come
|
||||
in through the provider only. Administrators still can, so a broken
|
||||
provider does not lock everybody out.
|
||||
|
||||
## Options
|
||||
|
||||
### `nvidia_smi`
|
||||
|
||||
Reference in new issue
Block a user