Add character levels and permanent player titles
This commit is contained in:
@@ -43,6 +43,33 @@ Configure `deploy/chart/values.yaml` (prefer an external GitOps values file):
|
||||
4. Render and inspect with `helm lint` and `helm template`; validate against the
|
||||
target cluster version using your normal dry-run pipeline.
|
||||
|
||||
## Keycloak administrator access
|
||||
|
||||
Create the exact realm role **`aeternalis-admin`** and assign it to your user.
|
||||
The configured override is `OIDC_ADMIN_ROLE` (`control.adminRole` in Helm values);
|
||||
the SRS deployment already uses `aeternalis-admin`.
|
||||
|
||||
The app checks the verified **ID token** for either
|
||||
`realm_access.roles` or `resource_access[OIDC_CLIENT_ID].roles`. An access-token-only
|
||||
role or a role belonging to a different client does not grant access.
|
||||
|
||||
For the realm-role approach, configure a User Realm Role mapper on the client's
|
||||
dedicated scope with token claim `realm_access.roles`, no role prefix, type
|
||||
String, Multivalued enabled, and **Add to ID token** enabled. If client role scope
|
||||
is restricted, include `aeternalis-admin` in that scope. The SRS client is
|
||||
`aeternalis-web`. Use Keycloak's token evaluation to check the ID token contains:
|
||||
|
||||
```json
|
||||
{"realm_access":{"roles":["aeternalis-admin"]}}
|
||||
```
|
||||
|
||||
Sign out of the game and sign back in at `/control` after assigning the role.
|
||||
Existing game sessions do not gain admin privileges automatically. The admin
|
||||
grant lasts ten minutes; sign in again from Control to renew it. Production
|
||||
continues to require verified OIDC; `DEV_ADMIN` is restricted to loopback development.
|
||||
|
||||
See [Keycloak role token mappings](https://www.keycloak.org/docs/latest/server_admin/#_oidc_token_role_mappings).
|
||||
|
||||
## Gitea setup
|
||||
|
||||
Enable Actions in the repository. Use a runner with the `ubuntu-latest` label,
|
||||
|
||||
Reference in New Issue
Block a user