Files
dbildhauerandClaude Opus 5.5 64b3dfbb08 Meilenstein 4: Rate-Limit, Audit-Log und Backup
- Login-Rate-Limit (5 pro Benutzername, 20 pro IP in 15 Minuten), in SQLite gespeichert
- Audit-Log für Login, Fehlversuche, Logout und alle Änderungen an Verbindungen;
  fremde private Einträge bleiben verborgen; API /api/audit und Ansicht im Frontend
- scripts/backup.sh: konsistente Kopie per SQLite-Backup-API, Integritätsprüfung,
  gzip, Rechte 600, Aufräumen nach N Tagen
- Tests für Rate-Limit und Audit-Log, SETUP.md ergänzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:56:04 +01:00

104 lines
3.5 KiB
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>it-connect</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>it-connect</h1>
<div id="benutzer-bereich" hidden>
<span id="benutzer-name"></span>
<button id="ansicht-btn" type="button" class="sekundaer">Protokoll</button>
<button id="logout-btn" type="button">Abmelden</button>
</div>
</header>
<main>
<section id="login-bereich" hidden>
<form id="login-form" class="karte">
<h2>Anmelden</h2>
<label>Benutzername
<input name="benutzername" autocomplete="username" required>
</label>
<label>Passwort
<input name="passwort" type="password" autocomplete="current-password" required>
</label>
<p id="login-fehler" class="fehler" role="alert"></p>
<button type="submit">Anmelden</button>
</form>
</section>
<section id="dashboard" hidden>
<div class="werkzeugleiste">
<div class="filter" role="group" aria-label="Sichtbarkeit filtern">
<button type="button" data-filter="" class="aktiv">Alle</button>
<button type="button" data-filter="privat">Privat</button>
<button type="button" data-filter="team">Team</button>
</div>
<input id="suche" type="search" placeholder="Suchen …" aria-label="Suchen">
<button id="neu-btn" type="button">+ Neue Verbindung</button>
</div>
<p id="dashboard-fehler" class="fehler" role="alert"></p>
<div id="gruppen"></div>
</section>
<section id="protokoll" hidden>
<h2>Protokoll</h2>
<p class="hinweis">Die letzten 200 Aktionen. Aktionen an privaten Einträgen anderer Admins werden nicht angezeigt.</p>
<p id="protokoll-fehler" class="fehler" role="alert"></p>
<div class="tabelle-rahmen">
<table>
<thead><tr><th>Zeit</th><th>Admin</th><th>Aktion</th><th>Details</th><th>IP</th></tr></thead>
<tbody id="protokoll-zeilen"></tbody>
</table>
</div>
</section>
</main>
<dialog id="eintrag-dialog">
<form id="eintrag-form" method="dialog">
<h2 id="dialog-titel">Neue Verbindung</h2>
<label>Typ
<select name="typ">
<option value="rdp">RDP</option>
<option value="ssh">SSH</option>
<option value="web">Web</option>
</select>
</label>
<label>Anzeigename
<input name="anzeigename" maxlength="100" required>
</label>
<label><span id="ziel-label">Ziel (IP oder FQDN)</span>
<input name="ziel" maxlength="2048" required>
</label>
<div class="zeile nur-host">
<label>Port
<input name="port" type="number" min="1" max="65535">
</label>
<label>Benutzer
<input name="benutzer" maxlength="64" autocomplete="off">
</label>
</div>
<label>Notiz
<textarea name="notiz" maxlength="2000" rows="3"></textarea>
</label>
<label>Sichtbarkeit
<select name="sichtbarkeit">
<option value="privat">Privat (nur ich)</option>
<option value="team">Team (alle Admins)</option>
</select>
</label>
<p id="dialog-fehler" class="fehler" role="alert"></p>
<div class="dialog-knoepfe">
<button type="button" id="abbrechen-btn" class="sekundaer">Abbrechen</button>
<button type="submit">Speichern</button>
</div>
</form>
</dialog>
<script src="app.js"></script>
</body>
</html>