Logo references dangle on every surface except the IdP — nothing materialises LogoSource for portal/dashboard/nextcloud/mattermost #356
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#356
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 0147 landed the logo BYTES for the kanidm push at the fixed
ourcloud/brand/idp-login/logo. Everything else still consumeslogoVariants(LogoSource)reference strings (tokens.css --oc-logo url(brand/<file>), nextcloudlogo=, mattermost monoCustomBrandLogo=) that no step materialises — the refs dangle exactly as before (DDR 0124's gap, now closed only for idp-login). Also:LogoSourceis the RAW uploaded filename (brand/${file.name}— spaces, macrons,../all pass) used as a path in CSS url(), Nix literals and shell words; sanitise or replace with fixed-path conventions when materialising. And mono/favicon variants (<base>-mono.svg,<base>-favicon.png) are asserted by the kit but no upload ever produces them.Relates: DDR 0147's follow-up — the dashboard wearing the uploaded logo (NavChrome brand bar currently letter-mark only) belongs to this slice too; the S3 control-panel mini was made honest to today's chrome and should upgrade WITH the chrome.
Triage Notes
What we've established so far:
logoVariants(AssetRef)is consumed by nextcloud'slogofield and mattermost'sCustomBrandLogofield, but no code path ever writes the logo image bytes those references point at — the compiled-artifacts writer only lands CSS/conf, never the logo image files themselves.logoSource.value = \brand/${file.name}`is indeed the raw, unsanitized uploaded filename, used downstream in CSSurl(), Nix literals, and shell words. The-mono.svg/-favicon.png` variant convention is asserted at compile time but nothing produces those files. All confirmed by reading the code — this part of the issue is accurate and well-specified.STATUS.mdstates plainly "the logo half (set-image) stays blocked on the DDR 0124 logo-bytes gap," and the IdP brand module only carries the override-CSS path (the DDR 0145 skin) — there is no kanidm logo-bytes push atourcloud/brand/idp-login/logoor anywhere else.STATUS.mdcalls 0147 a free/unminted number. So the claim "DDR 0147 landed the logo BYTES for the kanidm push" doesn't hold either.What we still need from you (@ben):
Ruled (Ben, 2026-08-09): yes — carry the logo to every surface.
needs-info→ready-for-agent.Materialisation follows DDR 0147's fixed-path precedent: the raw uploaded filename never becomes a path. Adopt a fixed per-surface object path + sidecar convention (as
ourcloud/brand/idp-login/logo+logo.typedid) for each consumer — portal tokens (--oc-logo), dashboard, Nextcloudlogo=, MattermostCustomBrandLogo=— and retireLogoSource-as-path everywhere (its rawbrand/${file.name}never reaches CSS url(), Nix literals, or shell words).Fixed (materialisation half) in
09b1daaonmain.Following Ben's 2026-08-09 ruling, DDR 0147's fixed-path + sidecar precedent now extends to every logo-bearing surface, and
LogoSource-as-path is retired:brandkit.logoVariants()returns the fixed sibling objectlogofor full/mono/favicon — the raw uploaded filename (brand/${file.name}: spaces, macrons,../) never becomes a path in CSS url(), a Nix literal, or a shell word. The phantom-mono.svg/-favicon.pngderivations (bytes no upload produced) are retired; mono wears the full-colour mark (#357).brandkit.SurfaceLogoObjectPath/SurfaceLogoTypePath/LogoBearingSurfaces+clan.WriteSurfaceLogosland the uploaded bytes + alogo.typesidecar beside each logo-bearing surface's compiled artifact (ourcloud/brand/<surface>/logo), one idempotent commit, half-a-logo refused.idp-loginis excluded (no logo token in its capability — its logo stays on the runtimedomain set-imagepush).landBrandLogocarries the same decoded bytes to the branded surfaces on both legs (deploy + private path).compilePortalCssmirrors the seam (--oc-logo: url("logo")).So
--oc-logo, Nextcloudlogo=, and MattermostCustomBrandLogo=reference the bare sibling object and the deploy materialises real bytes behind them — no more dangling refs.Evidence: test-first seams —
internal/brandkit/logoobject_test.go(fixed sibling refs, no raw-source leak, idp excluded),internal/clan/surfacelogos_test.go(bytes+sidecar, idempotent, refusals),internal/founding/logo_internal_test.go(carried to portal/dashboard, idp excluded). Golden corpus regenerated. Fullgo test ./...green (incl. the pre-push gate),go vet+golangci-lintclean, app/dashboard/ui-kit vitest green. DDR 0147 known-debt note + STATUS.md updated.Remaining follow-ups (out of this slice, noted in DDR 0147 + STATUS):
occ/mmctl, and the portal/dashboard static serving must set the content type from thelogo.typesidecar.