Cepha.Web 3.0.0-preview.1
A new modular integration candidate, not an already published NuGet version or a cybersecurity certification.
Production and authoring are different modules
| Module | Responsibility | Boundary |
|---|---|---|
| Cepha.Web.Abstractions | Typed project, release and permission contracts | No provider implementation or keys |
| Cepha.Web.Mvc | Official Razor TagHelpers and optional Web Components | No automatic floating UI |
| Cepha.Web.Materials | Append-only CMUI versions, SQLite retrieval and bounded token CSS | Public design metadata, not learner/private data |
| Cepha.Web.Authoring | Server policy, unique-name publication, encrypted-store adapter, AI interface | Explicit opt-in and host authentication |
| Cepha.Web.Wasm | Small C# component renderer in a shared Worker | Not the full server ViewEngine |
Keep ASP.NET Core MVC native
Keep Microsoft.NET.Sdk.Web, the official ViewEngine, controllers, Areas, view models, TagHelpers, antiforgery, authentication and authorization on the host. Register the component library and add @addTagHelper *, Cepha.Web.Mvc to _ViewImports.cshtml.
<cepha-wasm-card application-id="my-app" heading="Summary" body="Shared model"></cepha-wasm-card> <cepha-assets></cepha-assets>
Optional assistant: <cepha-assistant policy="MyHostPolicy"></cepha-assistant>. Voice needs a separate user gesture and is off by default. <cepha-design-switcher> is an explicit inline setting, never an unsolicited floating gear.
Parent-owned native page projects declare CephaParentProject and one application ID; the parent must list CephaPageProject. Their compiled identity metadata is a deployment binding, not permission to change user claims.
Native Areas, layout, partials, ViewComponent, model binding and antiforgery example
Create a cmui-* material
Define an original material ID, exact version, provenance and bounded CSS tokens. Explicitly initialize a workspace-local SQLite store, append a version, read it back by ID/version, verify SHA-256, then emit CSS. Existing versions cannot be silently replaced.
var pack = new MaterialPack("cmui-studio", "3.0.0", "Original Cepha tokens",
new() { ["surface"] = "#101b2c", ["text"] = "#f5f8ff" });
store.Initialize();
var saved = store.Append(pack);
var retrieved = store.Read(pack.Id, pack.Version);
var css = MaterialPackStore.EmitCss(retrieved);
This public-token registry is not identical to all historical CMUI Fusion tables. A legacy pack importer must validate its schema, provenance and assets before use; no arbitrary JS, URL or CSS import is executed by token storage.
Developer studio and releases
Multi-file Monaco studio provides a file explorer, ready-made templates, plain-text logs, a command allowlist and real isolated HTML/JS preview. Project slugs are canonical lowercase identifiers reserved atomically by the server, not trusted from a browser-only uniqueness check.
Static releases live at /developers/release/<project-name> after explicit host authorization. Razor/C# export is source only until an isolated Linux/CPOLY builder compiles a reviewed project and the native host adopts that artifact. No runtime page body can elevate a role or inject a server signing key.
The existing Sbay.Copilot.Provider can implement IStudioDesignAssistant in trusted server code. Its identities, encrypted credentials and CLI JSON-RPC endpoint stay server-only. Missing provider configuration returns HTTP 503; no simulated AI answer or alternative model is substituted.
The real VS Code runs in the browser; your IDE is the development environment
Open the Cloudflare-hosted VS Code environment ↗. Upstream code-server, the pinned CPOLY C# toolchain and .NET 10 run in one isolated non-root cloud container. No tunnel passes through the development computer. The studio page links to this environment; its separate Monaco sketchpad remains deliberately limited and does not pretend to compile native Razor.
Build and delivery in the tested new image
The tested Cepha extension provides Build MVC, Deploy private preview, Prepare native deployment artifact, durable checkpoints, encrypted-browser-sync access and documentation. Its CLI runs cepha build | preview | publish | checkpoint. These new commands are not claimed available in the retained cloud image. Builds reuse workspace outputs and shared package caches. An occupied preview port is reported, not silently stopped.
MVC/WASM preview runs on cepha-web-ide-preview.2sa.workers.dev, a separate origin with single-use tickets and scoped HttpOnly cookies. IDE authentication cookies are not forwarded to the application, and same-origin IDE port proxies are disabled. The preview origin cannot access the IDE origin's Passkeys or IndexedDB.
cepha publish prepares a downloadable native package with source/artifact hashes; its receipt explicitly says deployed: false. An authorized production host must adopt it under its application/topology identity. No hosting-management credentials or host signing keys are installed in the editable environment.
Passkeys, encrypted source and browser synchronization: implemented, cloud upgrade pending
The following describes the implementation verified in isolated native and browser checks, not an accepted encrypted cloud IDE. No real owner OS Passkey or second physical device was enrolled in those checks. Native vault activation fails closed when the retained agent does not support the required protocol.
The existing administrator authenticates first enrollment. Each enrolled credential owns a separate vault with stable file IDs, immutable revisions, relational references and compare-and-swap heads. WebAuthn verifies the exact RP/origin, a single-use expiring challenge and required user verification. Signing private keys are never extracted: a supported PRF result derives a wrapping key through HKDF, wrapping a random AES-256-GCM data key. Public credential IDs are not encryption secrets, and PRF outputs are not sent to the authentication server.
The sync agent encrypts file bytes and paths before durable SQLite storage. While the workbench is open, its browser mirror retains ciphertext and wrapped-key metadata in IndexedDB, not raw encryption keys. The vault portal exports/imports encrypted checkpoints and includes a read-only offline recovery viewer. Retained source capacity is bounded; reaching a limit fails explicitly instead of purging history.
Another device must obtain the same credential/provider PRF output and successfully unwrap the existing key. This is conditional on browser/authenticator/provider support, not a promise that every OS syncs PRF secrets. Unsupported PRF and wrong keys fail closed without replacing the existing vault. Losing the original credential/provider secret can mean unrecoverable files.
The remote editor/compiler sees plaintext while unlocked; this is trusted remote execution, not zero-knowledge compilation. Save all editor buffers before switching keys or locking. Earlier administrator checkpoints remain separate plaintext legacy storage; creating a vault does not retroactively encrypt or remove them. Password bootstrap is retained until the owner actually enrolls and verifies a real Passkey. This deployment is single-owner, not Entra or untrusted multi-tenant hosting.
EntityCrypt boundary: EntityCrypt's .NET/EF Core APIs can be an explicitly configured native storage provider behind the host's envelope contract. The JavaScript Cloudflare Worker does not execute EntityCrypt; this vault stores WebCrypto ciphertext in relational SQLite. Those envelope formats are not automatically interchangeable. Native adapters must verify a known vault/key confirmation before opening data, rather than treating a wrong-key empty database as a successful restore.
Optional local gateway, independently of the cloud environment
The container runs upstream code-server bound to 127.0.0.1 inside its own network namespace. We do not publish that port. CpolyIdeGateway opens a loopback listener in the host process and relays each accepted connection as raw bytes through docker exec -i, so the container's HostConfig.PortBindings stays {} and docker port keeps printing nothing. ASP.NET Core then proxies HTTP and WebSocket traffic under the /developers/ide prefix, preserving the raw request target so code-server's relative asset paths resolve, and passing its own Content-Security-Policy through untouched.
Reaching it requires the Cepha.Studio.ApproveNativeBuild policy. Anonymous callers get 401 and a developer who can publish but not approve builds gets 403: opening a full editor over the workspace is build-approver power, not drafting power. When the container is absent the gateway fails closed with 503 studio.ide-container-required rather than falling back to anything.
npm run test:ide proves all of it in a real browser: the container is healthy and publishes no port, anonymous and non-approver identities are refused, the .monaco-workbench and file explorer load from our own origin, a keystroke typed into the editor and saved with Ctrl+S appears as bytes in the bind-mounted workspace on the host disk, and afterwards there is still no published port, no new credential and no third-party origin. The receipt records every assertion, including that the only upstream 404s are Microsoft's proprietary vsda assets, which code-server itself does not ship — verified by requesting them directly inside the container.
This local gateway remains for a host you control. The cloud IDE above is a separate Cloudflare deployment; it does not expose this computer or reuse its Docker socket, host mounts or Copilot credentials.
Or take a real project to your own machine
Download project on the studio page generates a complete ASP.NET Core net10.0 MVC application — Program.cs, a controller, a model, _ViewImports/_ViewStart/_Layout, views, wwwroot, appsettings, a NuGet.Config with package source mapping, .editorconfig, .gitignore, .vscode launch and build tasks, and a .devcontainer. It references Cepha.Web.Mvc; provide the preview packages through your approved package source, because this candidate is not yet a public NuGet release. It does not copy SDK source into your repository.
unzip my-first-page.zip && cd my-first-page code . # then press F5 to build, run and debug dotnet run # or run it directly
Generation is proved end to end by npm run test:scaffold, which writes the project to disk, restores it from the locally built packages, compiles it with zero warnings, boots it and verifies in a real browser that server Razor and browser C# WebAssembly render together at WCAG AA contrast, and that Program.cs, appsettings.json and compiled assemblies are not served.
You can also attach your local VS Code to the optional local container over the Docker socket, sharing the local gateway's workspace, not the separate Cloudflare workspace. This opens no network port and creates no credential.
npm run ide:start npm run ide:attach
ide:attach prints a vscode-remote://attached-container+…/workspace URI and writes an evidence receipt recording that the container still publishes no host ports. The documentation project serves static pages; the linked cloud Worker/container independently hosts the administrator IDE. The upgraded native tools and encrypted vault remain subject to the cloud acceptance status above.
Verified local CPOLY Linux IDE
The optional code-server profile runs a real non-root Linux IDE with .NET 10.0.300 and permitted C# language tooling. GUI save, cross-file definition navigation, the canonical MVC/WASM build, 31 SDK unit tests and local Wrangler/workerd execution were verified. Linux dependencies and writable build outputs are separate from retained read-only reference assets.
npm run ide:build npm run ide:start npm run ide:test
Run these commands from products\Cepha.Web in an approved source workspace. The profile publishes no host ports and creates no password. Host-browser access requires approved authentication; Copilot activation, session restoration, trainer tenancy, cloud high availability and production artifact adoption are not provided by this local IDE.
Security verification, not certification
Controls are mapped to OWASP ASVS 5.0.0 topics and checked with negative tests. The release does not claim complete ASVS L2, ISO 27001 certification, an independent penetration test or zero vulnerabilities.
- Host-owned authentication, known permissions and resource checks; deny unknown bits and operations.
- Antiforgery plus exact Origin/application/policy binding on authoring mutations.
- Opaque sandbox, no same-origin access, external network, forms or host credentials for submitted previews.
- Server-only compilation/identity; no
evalor raw shell command fallback in the host. - Unique immutable releases, bounded source input, retained evidence, source/artifact hashes and locked public dependencies.
- Encrypted durable state requires the host's approved EntityCrypt envelope, keys and residency configuration. The sample uses memory only.
Do not confuse source, public package and deployment versions
| Surface observed 2026-10-27 | Version |
|---|---|
| Original local NetWasmMvc.SDK source | 2.0.90 |
| Original local CLI / documentation knowledge | 2.0.89 |
| Public NuGet SDK / CLI indexes | 2.0.53 / 2.0.57 |
| Previously served documentation boot assets | 2.0.79 |
| This independent integration candidate | 3.0.0-preview.1 |
These are provenance records, not evidence that all old runtime surfaces became compatible. The independent sanitized source repository and public preview packages are not yet published. Full browser MVC/Razor parity, production authentication, live Copilot turns and an isolated cloud builder require separate evidence.