Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

app/qa/trusted-https.mjs

1// Trusted-HTTPS verification against the PUBLIC hostname with full certificate validation (no ignoreHTTPSErrors, no pin).
2// Limitation: run from the VPS itself, so reachability from another network is NOT proven here.
3import tls from "node:tls"; import fs from "node:fs"; import path from "node:path"; import { chromium } from "playwright";
4const H = "cloud.zoobd.com", PORT = 8443, BASE = `https://${H}:${PORT}`; const out = path.resolve("../design/screenshots");
5const results = []; const rec = (n, ok, d = "") => { results.push({ name: n, ok: !!ok }); console.log((ok ? "PASS " : "FAIL ") + n + (ok ? "" : " -> " + d)); };
6const cert = await new Promise(r => { const s = tls.connect({ host: H, port: PORT, servername: H, rejectUnauthorized: true }, () => { const c = s.getPeerCertificate(true); r({ ok: s.authorized, c, proto: s.getProtocol() }); s.end(); }); s.on("error", e => r({ ok: false, err: e.message })); });
7rec("TLS handshake validates against the system CA store (chain + hostname)", cert.ok, cert.err);
8const c = cert.c ?? {}; const chain = []; for (let x = c; x && !chain.includes(x.fingerprint256); x = x.issuerCertificate) chain.push(x.fingerprint256);
9rec("certificate chain has leaf + intermediate (+ root cross-signed)", chain.length >= 2, String(chain.length));
10rec("subject/SAN is exactly cloud.zoobd.com and issuer is Let's Encrypt", /cloud\.zoobd\.com/.test(c.subjectaltname ?? "") && /Let's Encrypt/.test(c.issuer?.O ?? ""));
11const days = (Date.parse(c.valid_to) - Date.now()) / 864e5; rec(`certificate is valid and expires in ${days.toFixed(0)} days (> 30)`, days > 30);
12rec("TLS 1.2 or newer", ["TLSv1.2", "TLSv1.3"].includes(cert.proto), cert.proto);
13const b = await chromium.launch(); const bad = [];
14try {
15 for (const [name, vp] of [["desktop", { width: 1440, height: 900 }], ["mobile", { width: 390, height: 844 }]]) {
16 const ctx = await b.newContext({ viewport: vp, baseURL: BASE }); const pg = await ctx.newPage(); pg.on("requestfailed", r => bad.push(r.url()));
17 const r = await pg.goto("/login", { waitUntil: "networkidle" }); rec(`${name}: /login loads in a browser with NO certificate error`, r?.status() === 200);
18 rec(`${name}: password sign-in is the default on the trusted host`, (await pg.getByRole("tab", { name: /E-mail/ }).getAttribute("aria-selected")) === "true");
19 rec(`${name}: no horizontal overflow`, !(await pg.evaluate(() => document.documentElement.scrollWidth > innerWidth + 1)));
20 await pg.screenshot({ path: path.join(out, `zloud-login-trusted-${name}.png`) });
21 const lp = await ctx.newPage(); await lp.goto("/", { waitUntil: "networkidle" }); await lp.screenshot({ path: path.join(out, `zloud-trusted-landing-${name}.png`) });
22 if (name === "desktop") {
23 const res = await ctx.request.post("/api/auth/login", { data: { email: `nobody-${Date.now()}@example.test`, password: "not-a-real-password-1A!" }, headers: { origin: BASE } });
24 rec("trusted host: the password gate is OPEN (unknown e-mail gets the generic 401, not 403)", res.status() === 401, String(res.status()));
25 const cs = (await ctx.cookies()).filter(k => k.name === "zcs_session"); rec("no session issued for a failed sign-in", cs.length === 0);
26 }
27 await ctx.close();
28 }
29} finally { await b.close(); }
30rec("no failed sub-requests (mixed content / blocked resources)", bad.length === 0, bad.join(","));
31const http = await fetch("http://77.216.132.133:8080/api/auth/login", { method: "POST", headers: { "content-type": "application/json", origin: "http://77.216.132.133:8080" }, body: JSON.stringify({ email: "a@b.test", password: "x" }) }); rec("plain-HTTP preview endpoint refuses sign-in", http.status === 403);
32const f = results.filter(r => !r.ok); console.log(`${results.length - f.length}/${results.length} trusted-HTTPS checks passed`);
33fs.writeFileSync("../design/verification/trusted-https.json", JSON.stringify({ at: new Date().toISOString(), host: H, port: PORT, notAfter: c.valid_to, issuer: c.issuer?.O, port443: "unavailable: unprivileged user (ip_unprivileged_port_start=1024, no sudo); trusted HTTPS served on 8443", externalReachability: "NOT verified from another network; this run executes on the VPS itself", total: results.length, passed: results.length - f.length, results }, null, 1)); process.exit(f.length ? 1 : 0);
34

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 1c27633 on master.

Approval requests

None pending.