@conarium-ai/core 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -1
- package/README.md +13 -1
- package/SECURITY.md +15 -0
- package/bin/conarium-console.mjs +148 -0
- package/bin/conarium-init.mjs +11 -2
- package/dist/console.d.ts +26 -11
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +54 -14
- package/dist/console.js.map +1 -1
- package/dist/http.d.ts +0 -5
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +36 -9
- package/dist/http.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -1
- package/dist/server.js.map +1 -1
- package/dist/update-check.d.ts +14 -0
- package/dist/update-check.d.ts.map +1 -0
- package/dist/update-check.js +82 -0
- package/dist/update-check.js.map +1 -0
- package/examples/demo-bank/README.md +61 -0
- package/examples/demo-bank/conarium.config.json +26 -0
- package/examples/demo-bank/docker-compose.yml +16 -0
- package/examples/demo-bank/prove-mask.mjs +58 -0
- package/examples/demo-bank/prove-receipt.mjs +192 -0
- package/examples/demo-bank/seed.sql +55 -0
- package/package.json +11 -3
- package/public/app.js +289 -0
- package/public/index.html +131 -0
- package/public/style.css +490 -0
- package/test-vectors/keys/vector-key.SECRET-TEST-ONLY.pem +0 -6
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Conarium Governance Console</title>
|
|
7
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
8
|
+
<link rel="stylesheet" href="style.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div class="app-container">
|
|
12
|
+
<!-- Sidebar -->
|
|
13
|
+
<aside class="sidebar glass-panel">
|
|
14
|
+
<div class="logo">
|
|
15
|
+
<div class="logo-icon"></div>
|
|
16
|
+
<h2>Conarium</h2>
|
|
17
|
+
</div>
|
|
18
|
+
<nav>
|
|
19
|
+
<a href="#" class="nav-item active" data-tab="dashboard">Dashboard</a>
|
|
20
|
+
<a href="#" class="nav-item" data-tab="playground">Playground</a>
|
|
21
|
+
<a href="#" class="nav-item" data-tab="governance">Governance</a>
|
|
22
|
+
<a href="#" class="nav-item" data-tab="audit">Audit Logs</a>
|
|
23
|
+
</nav>
|
|
24
|
+
</aside>
|
|
25
|
+
|
|
26
|
+
<!-- Main Content -->
|
|
27
|
+
<main class="main-content">
|
|
28
|
+
<header class="header glass-panel">
|
|
29
|
+
<h1>Conarium Control Center</h1>
|
|
30
|
+
<div class="status-badge pulse"><span class="dot"></span> System Active</div>
|
|
31
|
+
</header>
|
|
32
|
+
|
|
33
|
+
<div class="tab-content active" id="tab-dashboard">
|
|
34
|
+
<div class="dashboard-grid">
|
|
35
|
+
<div class="card glass-panel span-2">
|
|
36
|
+
<h3>Connectors Health</h3>
|
|
37
|
+
<div class="connector-list" id="connector-list">
|
|
38
|
+
<div class="loader">Loading connectors...</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="tab-content" id="tab-playground">
|
|
45
|
+
<div class="card glass-panel">
|
|
46
|
+
<h3>Live Playground</h3>
|
|
47
|
+
<p class="pg-sub">An AI assistant queries your data. Watch Conarium <strong>mask the secrets</strong> and <strong>block forbidden tables</strong> — live.</p>
|
|
48
|
+
<div class="pg-samples">
|
|
49
|
+
<button class="chip" data-q="SELECT * FROM customers">customers <span>(PII)</span></button>
|
|
50
|
+
<button class="chip" data-q="SELECT * FROM orders">orders</button>
|
|
51
|
+
<button class="chip chip-danger" data-q="SELECT * FROM secrets">secrets <span>(denied)</span></button>
|
|
52
|
+
<button class="chip chip-danger" data-q="DELETE FROM customers">DELETE <span>(write)</span></button>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="pg-input-row">
|
|
55
|
+
<input type="text" id="pg-query" class="glass-input" value="SELECT * FROM customers" placeholder="SELECT * FROM customers">
|
|
56
|
+
<button class="btn primary-btn" id="pg-run">Run through Conarium ▸</button>
|
|
57
|
+
</div>
|
|
58
|
+
<div id="pg-result" class="pg-result"></div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="tab-content" id="tab-governance">
|
|
63
|
+
<div class="card glass-panel">
|
|
64
|
+
<h3>Governance Policy</h3>
|
|
65
|
+
<form id="config-form" class="config-form">
|
|
66
|
+
<div class="form-group">
|
|
67
|
+
<label for="maxRows">Max rows</label>
|
|
68
|
+
<input type="number" id="maxRows" name="maxRows" class="glass-input" min="1" max="10000">
|
|
69
|
+
</div>
|
|
70
|
+
<div class="form-group">
|
|
71
|
+
<label for="allowTables">Allow tables <span class="hint">schema-qualified, one per line or comma-separated — public.accounts</span></label>
|
|
72
|
+
<textarea id="allowTables" name="allowTables" class="glass-input list-input" rows="4" placeholder="public.accounts public.transactions"></textarea>
|
|
73
|
+
<p id="allowTables-warn" class="policy-warn" hidden>allowTables is empty — fail-closed: the gateway will deny every table. Add schema-qualified names if that is not what you meant.</p>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="form-group">
|
|
76
|
+
<label for="denyTables">Deny tables</label>
|
|
77
|
+
<textarea id="denyTables" name="denyTables" class="glass-input list-input" rows="3" placeholder="public.card_vault"></textarea>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="form-group">
|
|
80
|
+
<label for="maskColumns">Mask columns <span class="hint">*.tckn, public.accounts.iban</span></label>
|
|
81
|
+
<textarea id="maskColumns" name="maskColumns" class="glass-input list-input" rows="3" placeholder="*.tckn *.iban *.email"></textarea>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="form-group">
|
|
84
|
+
<label for="allowTools">Allow tools (optional)</label>
|
|
85
|
+
<input type="text" id="allowTools" name="allowTools" class="glass-input">
|
|
86
|
+
</div>
|
|
87
|
+
<div class="form-group">
|
|
88
|
+
<label for="denyTools">Deny tools (optional)</label>
|
|
89
|
+
<input type="text" id="denyTools" name="denyTools" class="glass-input">
|
|
90
|
+
</div>
|
|
91
|
+
<button type="submit" class="btn primary-btn">Save Policy</button>
|
|
92
|
+
</form>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div class="tab-content" id="tab-audit">
|
|
97
|
+
<div class="card glass-panel">
|
|
98
|
+
<div class="card-header">
|
|
99
|
+
<h3>Audit Logs</h3>
|
|
100
|
+
<button class="btn secondary-btn" id="refresh-audit">Refresh</button>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="table-container">
|
|
103
|
+
<table class="audit-table">
|
|
104
|
+
<thead>
|
|
105
|
+
<tr>
|
|
106
|
+
<th>Timestamp</th>
|
|
107
|
+
<th>Actor</th>
|
|
108
|
+
<th>Tool</th>
|
|
109
|
+
<th>Query (SQL)</th>
|
|
110
|
+
<th>Rows</th>
|
|
111
|
+
<th>Masked</th>
|
|
112
|
+
<th>Status</th>
|
|
113
|
+
<th>Hash</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</thead>
|
|
116
|
+
<tbody id="audit-body">
|
|
117
|
+
<tr><td colspan="8" class="text-center">Loading...</td></tr>
|
|
118
|
+
</tbody>
|
|
119
|
+
</table>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</main>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<!-- Notification Toast -->
|
|
127
|
+
<div id="toast" class="toast">Saved successfully</div>
|
|
128
|
+
|
|
129
|
+
<script src="app.js"></script>
|
|
130
|
+
</body>
|
|
131
|
+
</html>
|
package/public/style.css
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg-color: #0f172a;
|
|
3
|
+
--text-primary: #f8fafc;
|
|
4
|
+
--text-secondary: #94a3b8;
|
|
5
|
+
--accent: #3b82f6;
|
|
6
|
+
--accent-hover: #2563eb;
|
|
7
|
+
--glass-bg: rgba(30, 41, 59, 0.7);
|
|
8
|
+
--glass-border: rgba(255, 255, 255, 0.1);
|
|
9
|
+
--success: #10b981;
|
|
10
|
+
--danger: #ef4444;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
* {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
font-family: 'Inter', sans-serif;
|
|
21
|
+
background-color: var(--bg-color);
|
|
22
|
+
background-image:
|
|
23
|
+
radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
|
|
24
|
+
radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
|
|
25
|
+
color: var(--text-primary);
|
|
26
|
+
min-height: 100vh;
|
|
27
|
+
overflow-x: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.app-container {
|
|
31
|
+
display: flex;
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Glassmorphism utility */
|
|
36
|
+
.glass-panel {
|
|
37
|
+
background: var(--glass-bg);
|
|
38
|
+
backdrop-filter: blur(12px);
|
|
39
|
+
-webkit-backdrop-filter: blur(12px);
|
|
40
|
+
border: 1px solid var(--glass-border);
|
|
41
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Sidebar */
|
|
45
|
+
.sidebar {
|
|
46
|
+
width: 260px;
|
|
47
|
+
padding: 2rem;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: 2rem;
|
|
51
|
+
border-right: 1px solid var(--glass-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.logo {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 1rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.logo-icon {
|
|
61
|
+
width: 32px;
|
|
62
|
+
height: 32px;
|
|
63
|
+
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
|
|
64
|
+
border-radius: 8px;
|
|
65
|
+
box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sidebar nav {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nav-item {
|
|
75
|
+
color: var(--text-secondary);
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
padding: 0.75rem 1rem;
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
transition: all 0.3s ease;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nav-item:hover {
|
|
84
|
+
background: rgba(255, 255, 255, 0.05);
|
|
85
|
+
color: var(--text-primary);
|
|
86
|
+
transform: translateX(5px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nav-item.active {
|
|
90
|
+
background: rgba(59, 130, 246, 0.1);
|
|
91
|
+
color: var(--accent);
|
|
92
|
+
border-left: 3px solid var(--accent);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Main Content */
|
|
96
|
+
.main-content {
|
|
97
|
+
flex: 1;
|
|
98
|
+
padding: 2rem;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 2rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.header {
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
align-items: center;
|
|
108
|
+
padding: 1.5rem 2rem;
|
|
109
|
+
border-radius: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.status-badge {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 0.5rem;
|
|
116
|
+
font-size: 0.875rem;
|
|
117
|
+
background: rgba(16, 185, 129, 0.1);
|
|
118
|
+
color: var(--success);
|
|
119
|
+
padding: 0.5rem 1rem;
|
|
120
|
+
border-radius: 20px;
|
|
121
|
+
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.dot {
|
|
125
|
+
width: 8px;
|
|
126
|
+
height: 8px;
|
|
127
|
+
background-color: var(--success);
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.pulse .dot {
|
|
132
|
+
animation: pulse 2s infinite;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes pulse {
|
|
136
|
+
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
|
|
137
|
+
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
|
|
138
|
+
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Tabs */
|
|
142
|
+
.tab-content {
|
|
143
|
+
display: none;
|
|
144
|
+
animation: fadeIn 0.4s ease forwards;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.tab-content.active {
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes fadeIn {
|
|
152
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
153
|
+
to { opacity: 1; transform: translateY(0); }
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Cards */
|
|
157
|
+
.card {
|
|
158
|
+
border-radius: 16px;
|
|
159
|
+
padding: 2rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.card-header {
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
align-items: center;
|
|
166
|
+
margin-bottom: 1.5rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.card h3 {
|
|
170
|
+
font-size: 1.25rem;
|
|
171
|
+
color: var(--text-primary);
|
|
172
|
+
margin-bottom: 1.5rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Forms */
|
|
176
|
+
.form-group {
|
|
177
|
+
margin-bottom: 1.5rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.flex-row {
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
align-items: center;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
label {
|
|
187
|
+
display: block;
|
|
188
|
+
color: var(--text-secondary);
|
|
189
|
+
margin-bottom: 0.5rem;
|
|
190
|
+
font-size: 0.875rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.glass-input {
|
|
194
|
+
width: 100%;
|
|
195
|
+
background: rgba(0, 0, 0, 0.2);
|
|
196
|
+
border: 1px solid var(--glass-border);
|
|
197
|
+
color: var(--text-primary);
|
|
198
|
+
padding: 0.75rem 1rem;
|
|
199
|
+
border-radius: 8px;
|
|
200
|
+
font-family: inherit;
|
|
201
|
+
transition: all 0.3s ease;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.glass-input:focus {
|
|
205
|
+
outline: none;
|
|
206
|
+
border-color: var(--accent);
|
|
207
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
textarea.list-input {
|
|
211
|
+
min-height: 5rem;
|
|
212
|
+
font-family: ui-monospace, Consolas, monospace;
|
|
213
|
+
resize: vertical;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.hint {
|
|
217
|
+
display: block;
|
|
218
|
+
font-weight: 400;
|
|
219
|
+
font-size: 0.75rem;
|
|
220
|
+
color: var(--text-secondary);
|
|
221
|
+
opacity: 0.8;
|
|
222
|
+
margin-top: 0.15rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.policy-warn {
|
|
226
|
+
margin: 0.5rem 0 0;
|
|
227
|
+
font-size: 0.8rem;
|
|
228
|
+
color: #f59e0b;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Buttons */
|
|
232
|
+
.btn {
|
|
233
|
+
padding: 0.75rem 1.5rem;
|
|
234
|
+
border-radius: 8px;
|
|
235
|
+
border: none;
|
|
236
|
+
font-family: inherit;
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
transition: all 0.3s ease;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.primary-btn {
|
|
243
|
+
background: var(--accent);
|
|
244
|
+
color: white;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.primary-btn:hover {
|
|
248
|
+
background: var(--accent-hover);
|
|
249
|
+
transform: translateY(-2px);
|
|
250
|
+
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.secondary-btn {
|
|
254
|
+
background: rgba(255, 255, 255, 0.1);
|
|
255
|
+
color: var(--text-primary);
|
|
256
|
+
border: 1px solid var(--glass-border);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.secondary-btn:hover {
|
|
260
|
+
background: rgba(255, 255, 255, 0.2);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Switch Toggle */
|
|
264
|
+
.switch {
|
|
265
|
+
position: relative;
|
|
266
|
+
display: inline-block;
|
|
267
|
+
width: 48px;
|
|
268
|
+
height: 24px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.switch input {
|
|
272
|
+
opacity: 0;
|
|
273
|
+
width: 0;
|
|
274
|
+
height: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.slider {
|
|
278
|
+
position: absolute;
|
|
279
|
+
cursor: pointer;
|
|
280
|
+
top: 0; left: 0; right: 0; bottom: 0;
|
|
281
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
282
|
+
transition: .4s;
|
|
283
|
+
border: 1px solid var(--glass-border);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.slider:before {
|
|
287
|
+
position: absolute;
|
|
288
|
+
content: "";
|
|
289
|
+
height: 18px;
|
|
290
|
+
width: 18px;
|
|
291
|
+
left: 2px;
|
|
292
|
+
bottom: 2px;
|
|
293
|
+
background-color: white;
|
|
294
|
+
transition: .4s;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
input:checked + .slider {
|
|
298
|
+
background-color: var(--accent);
|
|
299
|
+
border-color: var(--accent);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
input:checked + .slider:before {
|
|
303
|
+
transform: translateX(24px);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.slider.round {
|
|
307
|
+
border-radius: 24px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.slider.round:before {
|
|
311
|
+
border-radius: 50%;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Tables */
|
|
315
|
+
.table-container {
|
|
316
|
+
overflow-x: auto;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.audit-table {
|
|
320
|
+
width: 100%;
|
|
321
|
+
border-collapse: collapse;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.audit-table th {
|
|
325
|
+
text-align: left;
|
|
326
|
+
padding: 1rem;
|
|
327
|
+
color: var(--text-secondary);
|
|
328
|
+
font-weight: 500;
|
|
329
|
+
font-size: 0.875rem;
|
|
330
|
+
border-bottom: 1px solid var(--glass-border);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.audit-table td {
|
|
334
|
+
padding: 1rem;
|
|
335
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
336
|
+
font-size: 0.875rem;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.audit-table tbody tr {
|
|
340
|
+
transition: background 0.2s ease;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.audit-table tbody tr:hover {
|
|
344
|
+
background: rgba(255, 255, 255, 0.02);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.status-badge-sm {
|
|
348
|
+
padding: 0.25rem 0.5rem;
|
|
349
|
+
border-radius: 4px;
|
|
350
|
+
font-size: 0.75rem;
|
|
351
|
+
font-weight: 600;
|
|
352
|
+
}
|
|
353
|
+
.status-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
|
|
354
|
+
.status-rejected { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
|
|
355
|
+
|
|
356
|
+
/* Connectors */
|
|
357
|
+
.connector-list {
|
|
358
|
+
display: flex;
|
|
359
|
+
flex-direction: column;
|
|
360
|
+
gap: 1rem;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.connector-item {
|
|
364
|
+
display: flex;
|
|
365
|
+
justify-content: space-between;
|
|
366
|
+
align-items: center;
|
|
367
|
+
padding: 1rem;
|
|
368
|
+
background: rgba(0,0,0,0.2);
|
|
369
|
+
border-radius: 8px;
|
|
370
|
+
border: 1px solid var(--glass-border);
|
|
371
|
+
transition: transform 0.2s ease;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.connector-item:hover {
|
|
375
|
+
transform: scale(1.01);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.connector-info h4 { margin-bottom: 0.25rem; }
|
|
379
|
+
.connector-info span { color: var(--text-secondary); font-size: 0.75rem; }
|
|
380
|
+
|
|
381
|
+
/* Toast */
|
|
382
|
+
.toast {
|
|
383
|
+
position: fixed;
|
|
384
|
+
bottom: 2rem;
|
|
385
|
+
right: 2rem;
|
|
386
|
+
background: var(--success);
|
|
387
|
+
color: white;
|
|
388
|
+
padding: 1rem 2rem;
|
|
389
|
+
border-radius: 8px;
|
|
390
|
+
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
391
|
+
transform: translateY(100px);
|
|
392
|
+
opacity: 0;
|
|
393
|
+
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.toast.show {
|
|
397
|
+
transform: translateY(0);
|
|
398
|
+
opacity: 1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* --- Live Playground --- */
|
|
402
|
+
.pg-sub { color: var(--text-secondary); margin: 0.25rem 0 1.25rem; font-size: 0.95rem; }
|
|
403
|
+
.pg-samples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
|
|
404
|
+
.chip { background: rgba(59,130,246,0.12); border: 1px solid var(--glass-border); color: var(--text-primary); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.85rem; cursor: pointer; transition: all .15s; font-family: inherit; }
|
|
405
|
+
.chip:hover { background: rgba(59,130,246,0.25); border-color: var(--accent); }
|
|
406
|
+
.chip span { color: var(--text-secondary); font-size: 0.78rem; }
|
|
407
|
+
.chip-danger { background: rgba(239,68,68,0.12); }
|
|
408
|
+
.chip-danger:hover { background: rgba(239,68,68,0.25); border-color: var(--danger); }
|
|
409
|
+
.pg-input-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
|
|
410
|
+
.pg-input-row .glass-input { flex: 1; font-family: Consolas, monospace; }
|
|
411
|
+
#pg-run { white-space: nowrap; }
|
|
412
|
+
.pg-result { min-height: 50px; }
|
|
413
|
+
.pg-compare { display: flex; align-items: stretch; gap: 1rem; }
|
|
414
|
+
.pg-col { flex: 1; border-radius: 12px; padding: 1rem; border: 1px solid var(--glass-border); overflow: auto; }
|
|
415
|
+
.pg-raw { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.3); }
|
|
416
|
+
.pg-gov { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.3); }
|
|
417
|
+
.pg-col-head { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }
|
|
418
|
+
.pg-col pre { font-family: Consolas, monospace; font-size: 0.8rem; line-height: 1.5; white-space: pre; color: var(--text-primary); margin: 0; }
|
|
419
|
+
.pg-arrow { display: flex; align-items: center; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
|
|
420
|
+
.jk { color: #7dd3fc; }
|
|
421
|
+
.jv { color: #f8fafc; }
|
|
422
|
+
.jmask { color: var(--danger); font-weight: 700; background: rgba(239,68,68,0.15); padding: 0 4px; border-radius: 4px; }
|
|
423
|
+
.pg-logged { display: inline-block; margin-top: 1rem; color: var(--success); font-size: 0.85rem; font-weight: 500; }
|
|
424
|
+
.pg-blocked { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35); border-radius: 12px; }
|
|
425
|
+
.pg-blocked-icon { font-size: 2rem; }
|
|
426
|
+
.pg-blocked h4 { color: var(--danger); margin-bottom: 0.4rem; }
|
|
427
|
+
.pg-blocked p { color: var(--text-secondary); margin-bottom: 0.6rem; }
|
|
428
|
+
|
|
429
|
+
/* --- Responsive Design (Mobile & Tablet) --- */
|
|
430
|
+
@media (max-width: 768px) {
|
|
431
|
+
.app-container {
|
|
432
|
+
flex-direction: column;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.sidebar {
|
|
436
|
+
width: 100%;
|
|
437
|
+
padding: 1rem;
|
|
438
|
+
border-right: none;
|
|
439
|
+
border-bottom: 1px solid var(--glass-border);
|
|
440
|
+
flex-direction: row;
|
|
441
|
+
justify-content: space-between;
|
|
442
|
+
align-items: center;
|
|
443
|
+
gap: 1rem;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.sidebar nav {
|
|
447
|
+
flex-direction: row;
|
|
448
|
+
overflow-x: auto;
|
|
449
|
+
white-space: nowrap;
|
|
450
|
+
padding-bottom: 0.25rem;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.nav-item {
|
|
454
|
+
padding: 0.5rem 0.75rem;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.nav-item:hover {
|
|
458
|
+
transform: translateY(-2px);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.nav-item.active {
|
|
462
|
+
border-left: none;
|
|
463
|
+
border-bottom: 3px solid var(--accent);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.main-content {
|
|
467
|
+
padding: 1rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.header {
|
|
471
|
+
flex-direction: column;
|
|
472
|
+
align-items: flex-start;
|
|
473
|
+
gap: 1rem;
|
|
474
|
+
padding: 1.25rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.pg-input-row {
|
|
478
|
+
flex-direction: column;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.pg-compare {
|
|
482
|
+
flex-direction: column;
|
|
483
|
+
align-items: center;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.pg-arrow {
|
|
487
|
+
transform: rotate(90deg);
|
|
488
|
+
margin: 0.5rem 0;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# TEST VECTOR KEY — PUBLISHED ON PURPOSE, NEVER USE FOR ANYTHING REAL.
|
|
2
|
-
# Anyone reading this repository has the private half. It signs nothing
|
|
3
|
-
# but the frozen vectors in this directory.
|
|
4
|
-
-----BEGIN PRIVATE KEY-----
|
|
5
|
-
MC4CAQAwBQYDK2VwBCIEII/aitZbtkTrKP348FUMbsV6glU6gHFUMUIlHJxP3W62
|
|
6
|
-
-----END PRIVATE KEY-----
|