idip: LimeSurvey (surveys) shows the member's display name #1926

Open
opened 2026-09-27 18:44:51 +00:00 by ben · 1 comment
Owner

Parent

#1915

What to build

LimeSurvey's header-trusting sign-in (gate header = AID) keeps the AID as the account key; the user's full name becomes the community-unique display name instead of the raw id.

Acceptance criteria

  • The surveys user's full name is the unique display name on IDIP
  • The kanidm-path render is byte-identical before and after (guard test)
  • Live proof: a signed-in member reads as their display name in LimeSurvey's admin

Blocked by

## Parent #1915 ## What to build LimeSurvey's header-trusting sign-in (gate header = AID) keeps the AID as the account key; the user's full name becomes the community-unique display name instead of the raw id. ## Acceptance criteria - [ ] The surveys user's full name is the unique display name on IDIP - [ ] The kanidm-path render is byte-identical before and after (guard test) - [ ] Live proof: a signed-in member reads as their display name in LimeSurvey's admin ## Blocked by - #1916

Blocked — mechanism decision owed (asked a human, no reply within the window)

Why human (trigger: not provable by a test I can run): the actual LimeSurvey display-name behaviour is provable only by a live clan-lab drive (acceptance criterion 3), which this iteration cannot run, and the spec (#1915) left the delivery mechanism for a header-trusting service unspecified. So the mechanism choice is not mine to rule under ADR 0174.

The finding

LimeSurvey is header-trusting (gate header = AID), not OIDC, so it cannot take the display name from a name claim the way the OIDC services in #1915 do. The stock Authwebserver plugin reads only the username from $_SERVER (verified against the pinned 6.15.14 source: its settings are serverkey / is_default / strip_domain; the full name comes from either a static auth_webserver_autocreate_profile — today "Community member" — or a per-user PHP hook hook_get_auth_webserver_profile).

internal/clan/surveys.go:803-809 already documents that a per-user hook is impossible with the current approach, because nixpkgs' config.php is JSON-rendered and cannot carry a PHP function; and the surveys port has no per-request PHP injection point — every customisation (superadmin seeding, brand theme) is a deploy-time YII_CONSOLE_COMMANDS console command, whereas a display-name hook is inherently per-request (it needs the incoming identity).

What a fix would take (three seams + a new cross-cutting header)

  1. Gate (internal/controlapi): on IDIP resolve the AID's community-unique display name (via the roster, the same read me makes through keria.Registry.DisplayName / #1916) and carry it on the allow.
  2. Front door (internal/clan/frontdoor.go): copy a new header (e.g. X-Idss-Name) onto the surveys backend and strip it on exempt paths in the same commit (#1167). The same header contract would serve #1924 (Jitsi).
  3. Surveys render (internal/clan/surveys.go): on IDIP, a per-request PHP hook consuming the header so the autocreate profile is per-user; kanidm render byte-identical (guard test).

Decision owed

  • Which per-request PHP mechanism for the hook:
    • A) a wrapper config.php defining hook_get_auth_webserver_profile and requiring the nixpkgs config, pointed at by an overridden LIMESURVEY_CONFIG; or
    • B) a tiny custom LimeSurvey plugin (PHP in the writable upload/plugins dir, activated by the existing console command) that sets full_name from the header on autocreate/login; or
    • C) defer the whole per-user-name delivery to its own spike.
  • Is shipping the gate + render + Go seam/guard tests now with the live drive deferred (the #1540 precedent) acceptable, or should the X-Idss-Name header contract be designed once across #1926 and #1924 before either lands?

Re-arm with ready-for-agent once the mechanism is chosen.

## Blocked — mechanism decision owed (asked a human, no reply within the window) **Why human** (trigger: not provable by a test I can run): the actual LimeSurvey display-name behaviour is provable only by a live clan-lab drive (acceptance criterion 3), which this iteration cannot run, and the spec (#1915) left the *delivery mechanism* for a header-trusting service unspecified. So the mechanism choice is not mine to rule under ADR 0174. ### The finding LimeSurvey is **header-trusting** (gate header = AID), not OIDC, so it cannot take the display name from a `name` claim the way the OIDC services in #1915 do. The stock `Authwebserver` plugin reads **only the username** from `$_SERVER` (verified against the pinned 6.15.14 source: its settings are `serverkey` / `is_default` / `strip_domain`; the full name comes from either a static `auth_webserver_autocreate_profile` — today `"Community member"` — or a per-user PHP hook `hook_get_auth_webserver_profile`). `internal/clan/surveys.go:803-809` already documents that a per-user hook is impossible with the current approach, because nixpkgs' `config.php` is JSON-rendered and cannot carry a PHP function; and the surveys port has **no per-request PHP injection point** — every customisation (superadmin seeding, brand theme) is a deploy-time `YII_CONSOLE_COMMANDS` console command, whereas a display-name hook is inherently per-request (it needs the incoming identity). ### What a fix would take (three seams + a new cross-cutting header) 1. **Gate** (`internal/controlapi`): on IDIP resolve the AID's community-unique display name (via the roster, the same read `me` makes through `keria.Registry.DisplayName` / #1916) and carry it on the allow. 2. **Front door** (`internal/clan/frontdoor.go`): copy a new header (e.g. `X-Idss-Name`) onto the surveys backend and **strip it on exempt paths** in the same commit (#1167). The same header contract would serve **#1924** (Jitsi). 3. **Surveys render** (`internal/clan/surveys.go`): on IDIP, a per-request PHP hook consuming the header so the autocreate profile is per-user; kanidm render byte-identical (guard test). ### Decision owed - Which per-request PHP mechanism for the hook: - **A)** a wrapper `config.php` defining `hook_get_auth_webserver_profile` and requiring the nixpkgs config, pointed at by an overridden `LIMESURVEY_CONFIG`; or - **B)** a tiny custom LimeSurvey plugin (PHP in the writable `upload/plugins` dir, activated by the existing console command) that sets `full_name` from the header on autocreate/login; or - **C)** defer the whole per-user-name delivery to its own spike. - Is shipping the gate + render + Go seam/guard tests now with the live drive deferred (the #1540 precedent) acceptable, or should the `X-Idss-Name` header contract be designed once across **#1926** and **#1924** before either lands? Re-arm with `ready-for-agent` once the mechanism is chosen.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1926
No description provided.