feat(api): require an admin token for configuration changes
Group CRUD decides what the scanner sweeps, yet any client that reached the API could change it. Writes now need XEXEU_ADMIN_TOKEN (or a token generated at startup and printed as a ?token= link, like sabia ui), compared in constant time, and a browser Origin must match Host. The dashboard keeps the token for the tab and asks for it on 401. Reads are unchanged. Also track .env.example: '.env*' in .gitignore had kept it out of the repository, although the README tells operators to copy it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
36eadabc7c
commit
90ece32dac
17 files changed
+369
-28
No files matched your search
@@ -49,10 +49,10 @@
|
||||
<div class="side-foot">
|
||||
<div class="status-row">
|
||||
<span id="connection" class="pill"><span class="dot"></span><span id="connectionText">Conectando…</span></span>
|
||||
<span class="pill muted">v0.1.0</span>
|
||||
<span id="versionPill" class="pill muted">—</span>
|
||||
</div>
|
||||
<div class="status-row">
|
||||
<span id="version" class="mono">Xexéu v0.1.0</span>
|
||||
<span id="version" class="mono">Xexéu</span>
|
||||
<span class="mono" id="feedsStatus">—</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user