kanidm display name + logo runtime push — the half of IdP branding override.css cannot carry #349
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#349
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?
DDR 0145 put the full community palette on the kanidm UI via a seam-compiled
override.css(bind-mounted over the package'sui/hpkg/override.css, restart-triggered on brand re-apply). CSS cannot carry the display name or the domain image, and the old path for them was dead code, excised in the DDR 0145 commit:frontdoor.gosetsystemd.services.kanidm-brand.environmenton a unit that does not exist anywhere — nothing ever consumedOURCLOUD_IDP_DISPLAYNAME/OURCLOUD_IDP_LOGO.FrontDoorConfig.BrandImportwas never set by a production caller (only tests), so thekanidm-brand.nixfragment was compiled and never imported.What to build: a runtime push that applies, against the RUNNING kanidm (1.10.3 has both hooks):
kanidm system domain set-displayname <name>— from the community header (ourcloud/brand-kit.json), so the sign-in<h3>stops reading "Kanidm localhost".kanidm system domain set-image <file> [type]— the community mark (PNG/JPG/GIF/SVG/WebP, max 1024x1024, under 256 KB).Shape suggestion: follow the
nextcloud-brandoneshot pattern (internal/clan/files.go—pathExists-guarded unit,restartTriggerson the artifact path literal, applies via CLI against the live service), fed by a re-addedidp-loginname/logo artifact or the header doc. When it lands,brand.name/logo.monogrow back into theidp-loginsurface capability (see the note ininternal/brandkit/idp_override.goand the DDR).Gate: the logo half is blocked on the DDR 0124 logo-bytes gap — uploaded logo bytes (
LogoData) never leave the founding draft; no deploy runner materialisesbrand/<name>objects into the config repo, so there is nothing on the gateway to feedset-image. The display-name half has no such gate and can land alone.Filed from the DDR 0145 arc (commit 938dffe).
Landed the display-name half of the runtime push in
75fee8c(origin/main).A nextcloud-brand-shaped oneshot on the gateway render —
kanidmDisplayNamePushBlockininternal/clan/vmguest.go— reads the community name from the header (../../ourcloud/brand-kit.json, the same docclan.ReadCommunityNamereads) and applieskanidm system domain set-displaynameagainst the RUNNING kanidm, so the sign-in<h3>stops reading "Kanidm localhost". It ispathExists-guarded (no header → no unit, mkIf) withrestartTriggerson the header path literal, so a Settings re-apply re-pushes.Decisions:
Name, so no Surface-interface surgery (the interface returns one artifact; override.css genuinely cannot carry the name, hence the push).idm_admincredential are provisioned there. Authenticates asidm_admin— the one admin identity the control plane + member adapter already drive kanidm as (ADR 0105) — with the clan-var password overKANIDM_PASSWORD, so the credential never leaves the gateway. Login retries briefly (kanidm settles async after boot/provisioning); the name is passed after--so hostile operator free text starting with a dash cannot be read as a flag.Logo half deliberately NOT shipped — still blocked on the DDR 0124 logo-bytes gap (uploaded
LogoDatanever leaves the founding draft, so nothing on the gateway feedsset-image).brand.name/logo.monoregrow theidp-logincapability together when that unblocks; the coverage report keeps name/logo Unsupported on the CSS surface honestly.Test-first at the render seam (
internal/clan/vmguest_test.go); the rendered fragmentnix-instantiate --parses clean. UNPROVEN LIVE until the next drive — the CLI auth flags (KANIDM_PASSWORDlogin,idm_adminpermission forset-displayname) are verified by the next smoke/private-path drive, as with every gateway render. STATUS.md updated (header + milestone log).