Display names still not resolving from Keycloak on the dogfoods (low priority) #731

Open
opened 2026-09-25 02:29:37 +00:00 by Cordy · 0 comments
Owner

Deferred from the #727 polish (v0.6.269 verified on files-bao): the Owner column still shows nikola-test although Keycloak stores Somborski / Nikola, even after the lookup moved to briefRepresentation=false and the name map is awaited at boot.

The plumbing is test-pinned end to end (TestUserNamesFromDirectory, TestUserNamesEndpoint), so the gap is between our Manager and this Keycloak. Diagnostics for whoever picks this up:

  1. As a logged-in user, GET /api/v1/user-names — is the map empty or populated? (Empty → server side; populated → a UI render path missed.)
  2. If empty: call Keycloak directly with the spaces admin client (GET /admin/realms/cordyceps/users?max=500&briefRepresentation=false) and check whether firstName/lastName appear. Candidate causes: the service-account's view-users role returning trimmed representations, a Keycloak version quirk, or the 5-minute cache having latched an earlier empty result (rule out by restarting the pod and fetching within the first minute).
  3. If the wiring never ran: confirm apiH.UserNames.Fetch is set on this config path (it lives inside the #719 liveness block in main.go).

Not blocking anything: the fallback is usernames everywhere, which is the pre-#727 status quo. Related: #729 (local-account display names).

Deferred from the #727 polish (v0.6.269 verified on files-bao): the Owner column still shows `nikola-test` although Keycloak stores Somborski / Nikola, even after the lookup moved to `briefRepresentation=false` and the name map is awaited at boot. The plumbing is test-pinned end to end (`TestUserNamesFromDirectory`, `TestUserNamesEndpoint`), so the gap is between our Manager and this Keycloak. Diagnostics for whoever picks this up: 1. As a logged-in user, `GET /api/v1/user-names` — is the map empty or populated? (Empty → server side; populated → a UI render path missed.) 2. If empty: call Keycloak directly with the spaces admin client (`GET /admin/realms/cordyceps/users?max=500&briefRepresentation=false`) and check whether `firstName`/`lastName` appear. Candidate causes: the service-account's `view-users` role returning trimmed representations, a Keycloak version quirk, or the 5-minute cache having latched an earlier empty result (rule out by restarting the pod and fetching within the first minute). 3. If the wiring never ran: confirm `apiH.UserNames.Fetch` is set on this config path (it lives inside the #719 liveness block in `main.go`). Not blocking anything: the fallback is usernames everywhere, which is the pre-#727 status quo. Related: #729 (local-account display names).
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#731
No description provided.