idip: LimeSurvey (surveys) shows the member's display name #1926
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#1926
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Blocked by
nameBlocked — 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
nameclaim the way the OIDC services in #1915 do. The stockAuthwebserverplugin reads only the username from$_SERVER(verified against the pinned 6.15.14 source: its settings areserverkey/is_default/strip_domain; the full name comes from either a staticauth_webserver_autocreate_profile— today"Community member"— or a per-user PHP hookhook_get_auth_webserver_profile).internal/clan/surveys.go:803-809already documents that a per-user hook is impossible with the current approach, because nixpkgs'config.phpis 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-timeYII_CONSOLE_COMMANDSconsole 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)
internal/controlapi): on IDIP resolve the AID's community-unique display name (via the roster, the same readmemakes throughkeria.Registry.DisplayName/ #1916) and carry it on the allow.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).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
config.phpdefininghook_get_auth_webserver_profileand requiring the nixpkgs config, pointed at by an overriddenLIMESURVEY_CONFIG; orupload/pluginsdir, activated by the existing console command) that setsfull_namefrom the header on autocreate/login; orX-Idss-Nameheader contract be designed once across #1926 and #1924 before either lands?Re-arm with
ready-for-agentonce the mechanism is chosen.