feat: secure frontend and provider ingress

This commit is contained in:
Codex
2026-05-04 11:40:56 +00:00
parent caa80ee5e7
commit 8726611b6f
25 changed files with 1491 additions and 450 deletions
+319 -125
View File
@@ -1,41 +1,46 @@
:root {
--bg: #111820;
--panel: #17212b;
--panel-2: #1d2a35;
--line: #30404d;
--line-soft: #24323e;
--text: #dce7ec;
--muted: #8496a3;
--accent: #e2a329;
--accent-2: #4bb7aa;
--danger: #d86b55;
--ok: #6fbe73;
--rail: #0c1218;
--shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
font-family: "DIN Condensed", "Aptos Narrow", "Liberation Sans Narrow", "Noto Sans", sans-serif;
--bg: #0d141a;
--bg-grid: rgba(255,255,255,0.025);
--rail: #080d12;
--panel: #131d26;
--panel-2: #182530;
--panel-3: #0f1820;
--line: #2b3a45;
--line-soft: #1f2d37;
--text: #d7e3e7;
--muted: #81939f;
--faint: #546672;
--accent: #d7a13a;
--accent-2: #4eb7a8;
--danger: #cf6a54;
--ok: #71bf78;
--warn: #d7a13a;
--shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
font-family: "Aptos Narrow", "DIN Condensed", "Liberation Sans Narrow", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
html, body, #root { min-height: 100%; }
body {
margin: 0;
color: var(--text);
background:
linear-gradient(135deg, rgba(226, 163, 41, 0.08), transparent 28%),
linear-gradient(315deg, rgba(75, 183, 170, 0.08), transparent 30%),
repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 36px),
linear-gradient(135deg, rgba(215, 161, 58, 0.08), transparent 28%),
linear-gradient(315deg, rgba(78, 183, 168, 0.07), transparent 32%),
repeating-linear-gradient(90deg, var(--bg-grid) 0, var(--bg-grid) 1px, transparent 1px, transparent 34px),
repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 28px),
var(--bg);
font-size: 13px;
letter-spacing: 0.01em;
}
button, input, select, textarea {
font: inherit;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code, pre, textarea { font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace; }
.shell {
display: grid;
grid-template-columns: 176px minmax(0, 1fr);
grid-template-columns: 184px minmax(0, 1fr);
min-height: 100vh;
}
@@ -45,14 +50,17 @@ button, input, select, textarea {
height: 100vh;
padding: 12px 10px;
border-right: 1px solid var(--line);
background: linear-gradient(180deg, #0a1015, var(--rail));
background: linear-gradient(180deg, #060a0f, var(--rail));
}
.brand {
.brand, .login-brand {
display: flex;
align-items: center;
gap: 9px;
height: 40px;
}
.brand {
height: 42px;
padding: 0 5px 12px;
border-bottom: 1px solid var(--line-soft);
margin-bottom: 10px;
@@ -61,8 +69,8 @@ button, input, select, textarea {
.brand-mark {
display: grid;
place-items: center;
width: 32px;
height: 26px;
width: 34px;
height: 27px;
border: 1px solid var(--accent);
color: var(--accent);
font-weight: 800;
@@ -75,20 +83,25 @@ button, input, select, textarea {
letter-spacing: 0.14em;
}
.module, .tab, .dispatch-form button {
.module {
display: grid;
grid-template-columns: 42px 1fr;
align-items: center;
width: 100%;
min-height: 34px;
margin: 4px 0;
padding: 6px 8px;
border: 1px solid transparent;
border-left: 3px solid transparent;
color: var(--muted);
background: transparent;
cursor: pointer;
text-align: left;
}
.module {
display: block;
width: 100%;
padding: 8px 10px;
margin: 4px 0;
text-align: left;
border-left: 3px solid transparent;
.module-code {
color: var(--faint);
font-size: 10px;
letter-spacing: 0.16em;
}
.module:hover, .module.active {
@@ -108,11 +121,11 @@ button, input, select, textarea {
align-items: center;
gap: 14px;
min-height: 54px;
padding: 0 0 10px;
padding-bottom: 10px;
border-bottom: 1px solid var(--line);
}
.eyebrow {
.eyebrow, .panel-eyebrow {
margin: 0 0 2px;
color: var(--accent);
font-size: 10px;
@@ -121,30 +134,36 @@ button, input, select, textarea {
}
h1, h2 { margin: 0; font-weight: 650; }
h1 { font-size: 22px; letter-spacing: 0.08em; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.09em; }
h1 { font-size: 21px; letter-spacing: 0.07em; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.status-strip {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 9px;
padding: 6px 8px;
border: 1px solid var(--line);
background: rgba(0,0,0,0.14);
background: rgba(0,0,0,0.16);
color: var(--muted);
white-space: nowrap;
}
.dot {
.dot, .pulse {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--muted);
box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--accent); }
.dot.fail { background: var(--danger); }
.dot.ok, .pulse.online { background: var(--ok); }
.dot.fail, .pulse.offline { background: var(--danger); }
.user-pill {
padding: 2px 7px;
border: 1px solid var(--line-soft);
color: var(--text);
background: var(--panel-3);
}
.tabs {
display: flex;
@@ -153,32 +172,44 @@ h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.09em; }
overflow-x: auto;
}
.tab {
padding: 7px 12px;
border-color: var(--line);
background: rgba(12, 18, 24, 0.58);
.tab, .ghost-btn {
border: 1px solid var(--line);
background: rgba(12, 18, 24, 0.62);
color: var(--muted);
min-width: 108px;
}
.tab {
min-width: 112px;
padding: 7px 12px;
}
.tab.active, .tab:hover {
color: var(--text);
border-color: var(--accent-2);
background: rgba(75, 183, 170, 0.12);
background: rgba(78, 183, 168, 0.12);
}
.content-grid {
display: grid;
grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.6fr);
gap: 10px;
align-items: stretch;
.ghost-btn {
min-height: 28px;
padding: 4px 8px;
}
.ghost-btn:hover { color: var(--text); border-color: var(--accent); }
.ghost-btn.danger:hover { border-color: var(--danger); color: #ffd7cf; }
.page-grid {
display: grid;
grid-template-columns: minmax(340px, 0.95fr) minmax(520px, 1.55fr);
gap: 10px;
align-items: start;
}
.overview-grid .panel:nth-child(3), .dispatch-grid .panel:first-child, .topology-grid .panel:nth-child(3) { grid-column: 1 / -1; }
.panel {
border: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)), var(--panel);
box-shadow: var(--shadow);
min-width: 0;
border: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--panel);
box-shadow: var(--shadow);
}
.panel-head {
@@ -186,50 +217,110 @@ h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.09em; }
justify-content: space-between;
align-items: center;
gap: 10px;
height: 38px;
padding: 0 10px;
min-height: 40px;
padding: 7px 10px;
border-bottom: 1px solid var(--line);
color: var(--muted);
}
.metrics-panel { grid-column: 1 / 2; }
.table-panel[data-panel="nodes"] { grid-column: 2 / 3; }
.table-panel[data-panel="events"], .dispatch-panel { grid-column: 1 / -1; }
.panel-actions { display: flex; gap: 6px; align-items: center; }
.panel-body { padding: 10px; }
.metric-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
padding: 10px;
}
.metric {
.metric-card {
min-height: 76px;
padding: 10px;
min-height: 74px;
border: 1px solid var(--line-soft);
background: var(--panel-2);
}
.metric .label {
.metric-card.ok { border-color: rgba(113, 191, 120, 0.42); }
.metric-card.warn { border-color: rgba(215, 161, 58, 0.45); }
.metric-label {
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.metric .value {
.metric-value {
margin-top: 8px;
color: var(--text);
font-size: 24px;
font-weight: 720;
font-size: 23px;
font-weight: 760;
}
.metric .hint {
margin-top: 3px;
color: var(--muted);
font-size: 11px;
.metric-hint { margin-top: 3px; color: var(--muted); font-size: 11px; }
.node-card-list, .compact-list, .log-list, .heartbeat-list, .endpoint-list, .policy-grid, .security-board, .result-grid {
display: grid;
gap: 8px;
}
.table-wrap { overflow: auto; max-height: 46vh; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
.node-card, .compact-row, .log-row, .heartbeat-row, .endpoint-list article, .policy-grid article, .security-board article, .result-card, .label-card {
border: 1px solid var(--line-soft);
background: var(--panel-3);
}
.node-card, .result-card { padding: 9px; }
.node-card-head {
display: flex;
justify-content: space-between;
gap: 10px;
margin-bottom: 8px;
}
.node-card code, .compact-row code, td code {
display: block;
margin-top: 2px;
color: #bcd2d7;
font-size: 12px;
}
.node-card-foot {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-top: 8px;
color: var(--muted);
}
.status-badge {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 2px 7px;
border: 1px solid var(--line);
color: var(--muted);
background: rgba(0,0,0,0.18);
text-transform: uppercase;
font-size: 11px;
}
.status-badge.online, .status-badge.succeeded, .status-badge.public { color: var(--ok); border-color: rgba(113, 191, 120, 0.45); }
.status-badge.offline, .status-badge.failed { color: var(--danger); border-color: rgba(207, 106, 84, 0.45); }
.status-badge.running, .status-badge.dispatched, .status-badge.accepted, .status-badge.internal { color: var(--accent-2); border-color: rgba(78, 183, 168, 0.45); }
.status-badge.queued, .status-badge.warn { color: var(--warn); border-color: rgba(215, 161, 58, 0.45); }
.chip-row, .summary-grid {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.data-chip, .summary-item, .summary-value {
display: inline-flex;
gap: 5px;
align-items: center;
min-height: 22px;
padding: 2px 6px;
border: 1px solid var(--line-soft);
background: rgba(255,255,255,0.03);
color: var(--muted);
}
.data-chip b, .summary-item b { color: var(--accent-2); font-weight: 650; }
.table-wrap { overflow: auto; max-height: calc(100vh - 174px); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
padding: 7px 9px;
border-bottom: 1px solid var(--line-soft);
@@ -239,37 +330,42 @@ th, td {
th {
position: sticky;
top: 0;
background: #121b24;
z-index: 1;
background: #111a22;
color: var(--accent);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.11em;
z-index: 1;
}
td { color: var(--text); }
.code, code {
font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
font-size: 12px;
color: #bfd7dc;
}
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 2px 7px;
border: 1px solid var(--line);
color: var(--muted);
background: rgba(0,0,0,0.18);
}
.badge.online { color: var(--ok); border-color: rgba(111, 190, 115, 0.45); }
.badge.offline { color: var(--danger); border-color: rgba(216, 107, 85, 0.45); }
.dispatch-panel { min-height: 230px; }
.compact-row, .heartbeat-row, .log-row, .endpoint-list article, .policy-grid article {
display: grid;
grid-template-columns: auto minmax(180px, 1fr) auto auto;
align-items: center;
gap: 10px;
padding: 8px;
}
.log-row { grid-template-columns: 150px 52px 160px minmax(220px, 1fr) auto; }
.log-row.error { border-color: rgba(207, 106, 84, 0.48); }
.log-row.warn { border-color: rgba(215, 161, 58, 0.48); }
.heartbeat-row { grid-template-columns: auto minmax(220px, 1fr) minmax(180px, auto) minmax(180px, auto); }
.heartbeat-row span, .endpoint-list span, .policy-grid span { color: var(--muted); }
.heartbeat-row b { display: block; margin-top: 2px; }
.label-matrix {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 8px;
}
.label-card { padding: 8px; }
.label-card span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.label-card strong { display: block; margin: 5px 0; }
.dispatch-form {
display: grid;
grid-template-columns: 1fr 180px auto;
grid-template-columns: 1.2fr 180px 150px 1fr 140px auto;
gap: 8px;
padding: 10px;
align-items: end;
}
.dispatch-form label {
@@ -280,50 +376,148 @@ td { color: var(--text); }
text-transform: uppercase;
letter-spacing: 0.12em;
}
.dispatch-form .wide { grid-column: 1 / -1; }
.dispatch-actions { display: flex; gap: 6px; align-items: end; }
.dispatch-actions button[type="submit"], .login-form button[type="submit"] {
min-height: 32px;
padding: 0 12px;
border: 1px solid var(--accent);
color: #151107;
background: var(--accent);
font-weight: 760;
}
.raw-editor-label, .wide { grid-column: 1 / -1; }
input, select, textarea {
width: 100%;
border: 1px solid var(--line);
color: var(--text);
background: #0d151c;
background: #0b1218;
padding: 7px 8px;
outline: none;
}
textarea { min-height: 76px; resize: vertical; font-family: "Cascadia Mono", "IBM Plex Mono", monospace; }
.dispatch-form button {
height: 33px;
padding: 0 14px;
border-color: var(--accent);
color: #130f08;
background: var(--accent);
font-weight: 700;
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
.result-card dl {
display: grid;
grid-template-columns: 90px 1fr;
gap: 5px 8px;
margin: 8px 0;
}
.result-block {
margin: 0 10px 10px;
padding: 8px;
max-height: 170px;
overflow: auto;
border: 1px solid var(--line-soft);
background: #0d151c;
color: #bfd7dc;
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; }
.result-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.endpoint-list article { grid-template-columns: 150px minmax(220px, 1fr) auto; }
.policy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.policy-grid article { grid-template-columns: 1fr; align-items: start; }
.policy-grid strong { font-size: 16px; }
.paragraph { margin: 10px 0 0; }
.security-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.security-board article { padding: 10px; display: grid; gap: 5px; }
.security-board .allow { border-color: rgba(113,191,120,0.45); }
.security-board .deny { border-color: rgba(207,106,84,0.45); }
.security-board span { color: var(--muted); }
.empty-state {
display: grid;
gap: 4px;
min-height: 88px;
place-content: center;
border: 1px dashed var(--line);
color: var(--muted);
text-align: center;
}
.empty-state strong { color: var(--text); }
.muted { color: var(--muted); }
.login-screen, .loading-screen {
min-height: 100vh;
display: grid;
place-items: center;
padding: 18px;
}
.loading-screen { gap: 10px; align-content: center; color: var(--muted); }
.login-card {
width: min(440px, 100%);
border: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), var(--panel);
box-shadow: var(--shadow);
padding: 18px;
}
.login-brand { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.login-brand h1 { font-size: 24px; }
.login-brand p { margin: 2px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.login-form { display: grid; gap: 10px; }
.login-form label { display: grid; gap: 5px; color: var(--muted); }
.login-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.form-error {
padding: 7px 8px;
border: 1px solid rgba(207,106,84,0.5);
color: #ffd7cf;
background: rgba(207,106,84,0.1);
}
@media (max-width: 980px) {
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
padding: 18px;
background: rgba(0,0,0,0.58);
}
.raw-dialog {
width: min(920px, 96vw);
max-height: 86vh;
border: 1px solid var(--line);
background: #0a1015;
box-shadow: var(--shadow);
}
.raw-dialog-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 10px;
border-bottom: 1px solid var(--line);
}
.raw-json {
max-height: calc(86vh - 58px);
overflow: auto;
margin: 0;
padding: 10px;
color: #c5dadd;
font-size: 12px;
line-height: 1.45;
}
@media (max-width: 1120px) {
.metric-grid, .policy-grid, .security-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dispatch-form { grid-template-columns: 1fr 1fr; }
.dispatch-actions { align-items: center; }
.page-grid { grid-template-columns: 1fr; }
.overview-grid .panel:nth-child(3), .dispatch-grid .panel:first-child, .topology-grid .panel:nth-child(3) { grid-column: 1; }
}
@media (max-width: 760px) {
body { font-size: 12px; }
.shell { grid-template-columns: 1fr; }
.rail {
position: static;
height: auto;
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.brand { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; flex: 0 0 auto; }
.module { width: auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
.module { width: auto; min-width: 120px; grid-template-columns: 1fr; border-left: 0; border-bottom: 2px solid transparent; }
.module.active, .module:hover { border-bottom-color: var(--accent); }
.content-grid { grid-template-columns: 1fr; }
.metrics-panel, .table-panel[data-panel="nodes"], .table-panel[data-panel="events"], .dispatch-panel { grid-column: 1; }
.dispatch-form { grid-template-columns: 1fr; }
.workspace { padding: 10px; }
.topbar { align-items: flex-start; flex-direction: column; }
.status-strip { flex-wrap: wrap; white-space: normal; }
.metric-grid, .policy-grid, .security-board, .dispatch-form { grid-template-columns: 1fr; }
.compact-row, .heartbeat-row, .log-row, .endpoint-list article { grid-template-columns: 1fr; align-items: start; }
.tab { min-width: 104px; }
}