docs-editing: coolwsd admin-console secret carried with no producer + no defined env-var contract (split from #1247) #1250
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#1250
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?
Symptom
Split off from #1247 (per-port clan-vars secret generators). #1247 converted every routable
portAttachersport that carried a secret PATH as a Go string with no producer (archive, data-collections, whakapapa, newsletters, video) to declare its ownclan.core.vars.generators.<slug>-secrets. docs-editing was deliberately NOT converted — this ticket covers it.Why it was deferred, not done
Two facts set docs-editing apart from the five ports #1247 fixed:
It does not exhibit the #1247 eval-exclusion. docs-editing renders the coolwsd admin secret as
systemd.services.coolwsd.serviceConfig.EnvironmentFile = %q(internal/clan/docsediting.go:178) fromDocsEditingConfig.AdminSecretFile, which the attach path never fills — so it rendersEnvironmentFile = "". ButserviceConfig.EnvironmentFileis a systemd freeform string, NOTtypes.path: an empty string evaluates fine (it is a runtime no-op, not the eval preflight red archive hit). It is also not inportAttachers(it routes through its own coupled placement path), so #1247's central pinTestPortSecretsNeverRendersAnEmptyOrLiteralEnvFiledoes not cover it.Its consumer contract is undefined (needs-design). The five ports #1247 fixed each had a known env-var / secret-file the daemon reads (
GRIST_SESSION_SECRET,GRAMPSWEB_SECRET_KEY,LISTMONK_*,PT_INITIAL_ROOT_PASSWORD, PeerTube signing secret). docs-editing has NONE: the render sets anEnvironmentFilebut names no env var, no test pins one, and the nixpkgscollabora-onlinemodule handles no admin/username/password/env option at all (verified:/nix/store/…/nixos/modules/services/web-apps/collabora-online.nixexposes no such setting). So wiring a generator requires DECIDING what env var(s) coolwsd reads for its admin console — a design decision, not the mechanical carried-string→generator conversion.What to do
Decide the coolwsd admin-console credential contract (which env var(s) coolwsd actually consumes from the unit environment — confirm against a clan-lab drive, the way the archive reconciler's stdout shape is drive-confirmed), then declare a
docs-editing-secretsclan-vars generator (internal/clan/docsediting.go) minting the admin password into an env file, referenceconfig.clan.core.vars.generators.docs-editing-secrets.files.env.pathas a Nix expression (drop the%q), and deleteAdminSecretFilefromDocsEditingConfig/DocsEditingLiveSet. Follow the #1247 precedent (renderArchiveSecrets/renderPortSecretsEnvFile). Red-first render test + fold docs-editing into the render pin.Filed while working #1247.