Expose OpsProof Jeannie client state
This commit is contained in:
parent
d9c7d4d90b
commit
0941304a25
|
|
@ -54,7 +54,9 @@ Jeannie API on the server side. Browser props contain only the status, area,
|
|||
check, and summary fields; the bearer token and raw diagnostic details remain
|
||||
on Debian. If the API, token, execution, or JSON contract is unavailable,
|
||||
OpsProof fails closed and labels the overview unavailable instead of presenting
|
||||
stale data as current. Warning and failing checks show a read-only focused
|
||||
stale data as current. The authenticated workspace makes this boundary visible
|
||||
with connection state, the read operation, and evidence time without revealing
|
||||
the endpoint or token. Warning and failing checks show a read-only focused
|
||||
Doctor command but cannot submit it.
|
||||
|
||||
Unhealthy Kubernetes applications link to
|
||||
|
|
|
|||
|
|
@ -186,6 +186,36 @@ function LiveOverview({ overview }: { overview: Overview }) {
|
|||
);
|
||||
}
|
||||
|
||||
function JeannieClient({ overview }: { overview: Overview }) {
|
||||
return (
|
||||
<section className="mb-8 grid gap-px overflow-hidden rounded-3xl border border-white/10 bg-white/10 lg:grid-cols-[1fr_1.4fr]">
|
||||
<div className="bg-[#0b1621] p-6">
|
||||
<p className="text-xs uppercase tracking-[0.2em] text-cyan-300">Jeannie client</p>
|
||||
<h2 className="mt-2 text-xl font-semibold text-white">Server-side, authenticated, fail-closed</h2>
|
||||
<p className="mt-3 text-sm leading-6 text-slate-400">
|
||||
OpsProof calls Jeannie from Debian. The API address, bearer token, and raw private response never enter browser props.
|
||||
</p>
|
||||
</div>
|
||||
<div className="grid gap-px bg-white/10 sm:grid-cols-3">
|
||||
<div className="bg-[#0a141e] p-5">
|
||||
<p className="text-xs text-slate-500">Connection</p>
|
||||
<p className={`mt-2 text-sm font-medium ${overview.available ? 'text-emerald-300' : 'text-rose-300'}`}>
|
||||
{overview.available ? 'Available' : 'Unavailable'}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-[#0a141e] p-5">
|
||||
<p className="text-xs text-slate-500">Read operation</p>
|
||||
<code className="mt-2 block text-xs text-cyan-200">status all --json</code>
|
||||
</div>
|
||||
<div className="bg-[#0a141e] p-5">
|
||||
<p className="text-xs text-slate-500">Evidence time</p>
|
||||
<p className="mt-2 font-mono text-xs text-slate-300">{overview.collectedAt || 'not collected'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Welcome({ laravelVersion, overview, operator }: Props) {
|
||||
return (
|
||||
<main className="min-h-screen bg-[#071019] text-slate-100 selection:bg-cyan-300 selection:text-slate-950">
|
||||
|
|
@ -248,6 +278,7 @@ export default function Welcome({ laravelVersion, overview, operator }: Props) {
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<JeannieClient overview={overview} />
|
||||
<LiveOverview overview={overview} />
|
||||
|
||||
<section className="overflow-hidden rounded-3xl border border-white/10 bg-[#0a141e]/95 shadow-2xl shadow-black/30">
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ class OpsProofPipelineTests(unittest.TestCase):
|
|||
)
|
||||
|
||||
self.assertIn("Turn infrastructure incidents", page)
|
||||
self.assertIn("Server-side, authenticated, fail-closed", page)
|
||||
self.assertIn("status all --json", page)
|
||||
self.assertIn("Command-backed evidence", page)
|
||||
self.assertIn("Operator approval required", page)
|
||||
self.assertIn("Demo mode cannot submit changes", page)
|
||||
|
|
|
|||
Loading…
Reference in New Issue