mirror of
https://github.com/hanzoai/cloud.git
synced 2026-11-17 16:36:24 +00:00
/v1/kv is the store the console has always had a panel for: one key per
org, each write carrying its own revision, over the same cek-opened
SQLite that base and tasks use. clients/session was already in the tree
and is now named in Wire(). The console reads the summary and
description the live document gives a route and shows them above the
runner.
kv resolves its org through principal.Org, the read an untyped handler
uses. The picked version called principal.Tenant, which takes the caller
off a context that a *zip.Ctx handler does not carry, so every org — and
every caller with no principal at all — shared one empty namespace.
kv_test covers a key's life, the org boundary, and the refusal.
Left out of the pick:
- apps/sandbox: its runtime imports github.com/hanzoai/cloud/apps/k8s,
a package that exists in no tree, along with authz and the k8s
client libraries this module does not depend on. Nothing else in the
commit refers to it.
- /v1/sql, which ran caller-supplied SQL against base.db with no org
predicate, over the store whose isolation is that predicate.
- /v1/graphql, which answered every query with one fixed object and a
hand-written __schema, and claimed /graphql off the /v1 plane.
- the exec rewrite, which ran sh -c in this process instead of
forwarding to the executor, and did so whenever CODE_EXEC_UPSTREAM
was unset. The executor is the isolation boundary; cloud proxies it.
- plugin manifest discovery from the working directory: an unset
manifest mounts nothing, not even introspection, which is what
TestMountWithoutManifestMountsNothing states.
- the Hanzo mark, title and links in the console, and the per-subsystem
docs.hanzo.ai registry behind the doc card. One binary serves
console.lux.cloud and console.zoo.cloud (HIP-0111), so the brand
comes from the live document.
(cherry picked from commit 770df24781e82d551f1774f29670430041cce0cd)
Co-authored-by: Hanzo Dev <[email protected]>
70 lines
2.4 KiB
HTML
70 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="color-scheme" content="light dark">
|
|
<title>cloud console</title>
|
|
<link rel="icon" href="data:,">
|
|
<link rel="stylesheet" href="/console.css">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="bar">
|
|
<div class="brand"><i class="mark"></i><b id="title">cloud</b><span class="sub">console</span></div>
|
|
<span class="chip" id="version" title="build version">version …</span>
|
|
<span class="chip" id="origin"></span>
|
|
<nav class="tabs" id="tabs"></nav>
|
|
<button class="ghost" id="reload" title="re-read the live route table">reload</button>
|
|
<button class="ghost" id="theme" title="light / dark / follow the system">auto</button>
|
|
</header>
|
|
|
|
<div class="health" id="health"></div>
|
|
|
|
<main>
|
|
|
|
<section class="view api" id="view-api">
|
|
<aside class="routes">
|
|
<input id="filter" placeholder="filter routes" spellcheck="false" autocomplete="off">
|
|
<div id="tree" class="tree"></div>
|
|
<div class="count" id="count"></div>
|
|
</aside>
|
|
|
|
<section class="runner">
|
|
<div id="doc-card" class="doc-card"></div>
|
|
|
|
<div class="line">
|
|
<select id="method" aria-label="method">
|
|
<option>GET</option><option>POST</option><option>PUT</option>
|
|
<option>PATCH</option><option>DELETE</option>
|
|
</select>
|
|
<input id="path" value="/v1/openapi.json" spellcheck="false" autocomplete="off" aria-label="path">
|
|
<button class="primary" id="send">send</button>
|
|
</div>
|
|
|
|
<div id="params" class="params"></div>
|
|
|
|
<div class="line thin">
|
|
<label for="body">body</label>
|
|
<span class="grow"></span>
|
|
<button class="ghost" id="format">format</button>
|
|
<button class="ghost" id="curl">copy curl</button>
|
|
<button class="ghost" id="agent">use in agent</button>
|
|
</div>
|
|
<textarea id="body" rows="6" spellcheck="false" placeholder="{ }"></textarea>
|
|
|
|
<details class="opt">
|
|
<summary>headers</summary>
|
|
<textarea id="headers" rows="3" spellcheck="false" placeholder="X-Org-Id: acme Authorization: Bearer …"></textarea>
|
|
</details>
|
|
|
|
<div id="out" class="out"><p class="muted">pick a route on the left, or type a path. ctrl/cmd + enter sends.</p></div>
|
|
</section>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<script src="/console.js" defer></script>
|
|
</body>
|
|
</html>
|