Skip to content

Studio configuration sweep: env matrix, images, docs, entry points #1778

Open

Description

@peppescg

Parent: #1774. Adjacent to the empty placeholder #1772 ("Studio README: add screenshots") under #1736 — fold it in here or keep it separate, but decide rather than duplicating the README edit.

Scope

One coherent configuration surface, read end to end rather than accreted per feature PR.

  • Environment. apps/.env.example against the real matrix: every MECATL_* (target) and STUDIO_* (Studio-owned) variable documented once, with default, required-ness, and the fail-closed behaviour — including RFC 9728 discovery when MECATL_RESOURCE_URL is absent, STUDIO_PUBLIC_URL deriving the cookie flags and the single OAuth callback, and the two image-only refusals (STUDIO_IMAGE=1, STUDIO_ALLOW_UNAUTHENTICATED=1).
  • Images. apps/Dockerfile (multi-stage, Chainguard node runtime pinned by digest), apps/docker/mecated.Dockerfile, apps/docker-compose.yml, apps/.dockerignore: layer caching and build context size, non-root, healthcheck, and a stated owner/cadence for refreshing the digest pin.
  • Docs. apps/README.md reconciled with user-docs/building/deployment/studio.md (docs(user-docs): Mecatl Studio web UI deployment page #1765) — one source of truth, the other a pointer, not a drifting duplicate. Screenshots per Studio README: add screenshots #1772 if folded in.
  • Entry points. apps/package.json scripts vs apps/Taskfile.yml vs root task studio:*: exactly one way to run each action (dev, build, lint, typecheck, test, test:integration, generate, image).
  • Toolchain. apps/biome.json, apps/tsconfig.base.json and the per-package tsconfig.jsons, .node-version, .npmrc, the pnpm workspace and lockfile policy (and whether the lockfile is CI-frozen).
  • CI/release re-read. The studio relevance category and job, and the publish-studio release job publishing ghcr.io/stacklok/mecatl/studio, re-read against whatever the other four axes change — including when the experimental label comes off.

Human decisions

  • Is .env.example the source of truth for the env matrix, or is it generated from the server's config schema (apps/server/src/config.ts) so the two cannot drift?
  • Who owns the Chainguard digest bump — Dependabot, the release flow, or a human?
  • Fold Studio README: add screenshots #1772's screenshots into apps/README.md, or keep that issue separate?

Contract

Expected Routine/Cleanup (documentation and configuration hygiene) — but becomes Bounded for any change that alters runtime behaviour, the env contract, or the published image. Classified at plan time per docs/development-process.md.

Verification

task studio:check, task lint:actions, task docs (strict link gate) and task generate for llms.txt; a from-scratch apps/.env.example → docker compose up → login → workspace smoke on a clean machine; a no-push image build in CI.

Activity

  1. added
    documentation
    enhancement
    WebUI
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIdevexdocumentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions