docs: validate NetBox configuration syntax
This commit is contained in:
@@ -28,6 +28,8 @@ netbox-plugin-store @ git+https://git.mrblake.cc/MrBlake/Netbox-Store.git@main#s
|
||||
<pre><code>API_TOKEN_PEPPERS = {
|
||||
1: "HIER_DEN_GENERIERTEN_WERT_EINTRAGEN",
|
||||
}</code></pre>
|
||||
<p>Achte auf den Doppelpunkt nach der numerischen ID (<code>1:</code>, nicht <code>1;</code>). Prüfe die Python-Syntax, bevor du das Upgrade fortsetzt; bei Erfolg erzeugt dieser Befehl keine Ausgabe:</p>
|
||||
<pre><code>sudo /opt/netbox/venv/bin/python -m py_compile /opt/netbox/netbox/netbox/configuration.py</code></pre>
|
||||
<aside class="notice warning"><strong>Geheimnis dauerhaft sichern:</strong> Der Pepper muss vertraulich und über Upgrades hinweg unverändert erhalten bleiben. Entferne oder ändere einen bereits verwendeten Pepper nicht, da davon bestehende v2-API-Tokens abhängen. Für eine spätere Rotation wird eine weitere numerische ID ergänzt.</aside>
|
||||
<h2>3. Plugin in NetBox aktivieren</h2>
|
||||
<p>Ergänze die NetBox-Konfiguration:</p>
|
||||
|
||||
@@ -497,6 +497,7 @@ test('public and admin templates render safely with complete artifact evidence',
|
||||
assertTrue(str_contains($installation, 'https://netbox.mrblake.cc'));
|
||||
assertTrue(str_contains($installation, 'API_TOKEN_PEPPERS'));
|
||||
assertTrue(str_contains($installation, '/opt/netbox/netbox/generate_secret_key.py'));
|
||||
assertTrue(str_contains($installation, 'python -m py_compile'));
|
||||
$admin = $view->render('admin/dashboard', [
|
||||
'title' => 'Admin', 'currentPath' => '/admin', 'adminEnabled' => true, 'adminUser' => 'admin',
|
||||
'csrf' => 'safe-token', 'ok' => '', 'error' => '', 'sources' => $state['sources'],
|
||||
|
||||
Reference in New Issue
Block a user