feat: register NOUS_API_KEY in dashboard keystore
This commit is contained in:
parent
5b23578302
commit
f50268ef81
2 changed files with 6 additions and 6 deletions
|
|
@ -57,10 +57,10 @@ KEY_REGISTRY: dict[str, dict] = {
|
||||||
"pattern": r"^[0-9a-fA-F]{32}$",
|
"pattern": r"^[0-9a-fA-F]{32}$",
|
||||||
"example": "32-char hex string (e.g. 5f3c…9a02)",
|
"example": "32-char hex string (e.g. 5f3c…9a02)",
|
||||||
},
|
},
|
||||||
"GEMINI_API_KEY": {
|
"NOUS_API_KEY": {
|
||||||
"description": "Google Gemini API key — LLM event analysis / summarization.",
|
"description": "Nous Portal API key — hourly news summarizer (inference-api.nousresearch.com).",
|
||||||
"pattern": r"^AIza[0-9A-Za-z_-]{35}$",
|
"pattern": r"^.{16,}$",
|
||||||
"example": "AIza… (Google API key, 39 chars)",
|
"example": "key from https://portal.nousresearch.com (API keys page)",
|
||||||
},
|
},
|
||||||
"TELEGRAM_TOKEN": {
|
"TELEGRAM_TOKEN": {
|
||||||
"description": "Telegram bot token — push alert notifications to a channel.",
|
"description": "Telegram bot token — push alert notifications to a channel.",
|
||||||
|
|
|
||||||
|
|
@ -955,7 +955,7 @@
|
||||||
<section class="view" id="view-keys" aria-label="API keys">
|
<section class="view" id="view-keys" aria-label="API keys">
|
||||||
<div class="subview">
|
<div class="subview">
|
||||||
<h2><span class="tick">⚿</span> API Keys</h2>
|
<h2><span class="tick">⚿</span> API Keys</h2>
|
||||||
<p class="sub">Keys used by ingest services (FIRMS, Gemini, Telegram, …). Stored in Postgres, never shown again — only status + last 4 chars.</p>
|
<p class="sub">Keys used by ingest services (FIRMS, Nous Portal, Telegram, AIS, …). Stored in Postgres, never shown again — only status + last 4 chars.</p>
|
||||||
<div class="key-grid" id="keys-grid"></div>
|
<div class="key-grid" id="keys-grid"></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1486,7 +1486,7 @@ function sentimentBadge(label) {
|
||||||
/* ═══════════════ API KEYS ═══════════════ */
|
/* ═══════════════ API KEYS ═══════════════ */
|
||||||
const KEY_PATTERNS = {
|
const KEY_PATTERNS = {
|
||||||
'FIRMS_MAP_KEY': /^[0-9a-fA-F]{32}$/,
|
'FIRMS_MAP_KEY': /^[0-9a-fA-F]{32}$/,
|
||||||
'GEMINI_API_KEY': /^AIza[0-9A-Za-z_-]{35}$/,
|
'NOUS_API_KEY': /^.{16,}$/,
|
||||||
'TELEGRAM_TOKEN': /^\d{8,10}:[0-9A-Za-z_-]{35}$/,
|
'TELEGRAM_TOKEN': /^\d{8,10}:[0-9A-Za-z_-]{35}$/,
|
||||||
};
|
};
|
||||||
async function loadKeys() {
|
async function loadKeys() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue