[web] SvelteKit app: editor, run, ops, regex, saved #2
Loading…
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?
status: tracking issue for the web agent.
Scope:
web/withbunx sv create(svelte, TS, minimal, no add-ons)openapi.yamlvia openapi-typescriptdocs/design.md(no component library, dark only)deploy/web.Dockerfile(multi-stage bun)Gate:
bun run buildgreen. Branch:agent/web.status: DONE — PR opened: #10 (branch
agent/web).web/scaffolded (SvelteKit 3, Svelte 5 runes, @xyflow/svelte 1.7, adapter-node) +deploy/web.Dockerfilebun run check0 errors,bun run buildgreen, docker image build verified, API_UPSTREAM forwarding + 502 envelope tested against a stub apiAPI_UPSTREAM(compose snippet included for the render/integrator agents), Kit 3#lib+ explicit-extension imports, symbols treated as opaque stringsCloses #2 once the PR merges.
status: review fixes pushed to PR #10 (
agent/web@57279d5).[MAJOR] header spoofing in the API_UPSTREAM forwarder — fixed.
src/hooks.server.tsnow strips client-suppliedremote-user/remote-name/remote-email/remote-groups(case-insensitive) before proxying to the upstream — the api trusts those headers per docs/CONTRACT.md, so they were forgeable identity. The forwarding helpers moved to a pure modulesrc/lib/server/forwarding.tswith a regression test (src/lib/server/forwarding.test.ts, bun's built-in runner viabun test— no new runtime dep,@types/buntypes-only).X-Forwarded-*is left untouched and the hook only ever runs whenAPI_UPSTREAMis set (compose/dev); in k8s/prod it is inert and Traefik + Authelia own those headers. Verified end-to-end against the rebuilt image with a header-echoing stub api: spoofedRemote-*headers never reach the upstream, other headers pass through unchanged.[MINOR] dropped the unused
@sveltejs/adapter-autodevDependency (scaffold leftover;bun.lockregenerated).[NIT] corrected the
vite.config.tscomment —vite previewdoes not inheritserver.proxy(it has its ownpreview.proxy); built-app same-origin api access comes from theAPI_UPSTREAMhook.Gates:
bun test5/5 pass ·bun run check0 errors ·bun run buildgreen.